An OSPF router has three directly connected networks; 10.0.0.0/16, 10.1.0.0/16, and 10.2.0.0/16. Which OSPF network command would advertise only the 10.1.0.0 network to neighbors?
- router(config-router)# network 10.1.0.0 0.0.255.255 area 0
- router(config-router)# network 10.1.0.0 0.0.15.255 area 0
- router(config-router)# network 10.1.0.0 255.255.255.0 area 0
- router(config-router)# network 10.1.0.0 0.0.0.0 area 0
Explanation & Hint:
The OSPF network command requires the use of a wildcard mask, which is the inverse of the subnet mask. For the network 10.1.0.0/16, the subnet mask is 255.255.0.0. The inverse of this mask is 0.0.255.255. Therefore, the correct command to advertise only the 10.1.0.0/16 network to OSPF neighbors is: router(config-router) This command uses the correct wildcard mask corresponding to the /16 subnet mask and will match only the 10.1.0.0 network. |