Which commands are required to properly configure a router to run OSPF and to add network 192.168.16.0/24 to OSPF area 0? (Choose two.)
Click on the arrows to vote for the correct answer
A. B. C. D. E. F.AD
To properly configure a router to run OSPF and to add network 192.168.16.0/24 to OSPF area 0, the following two commands are required:
A. Router(config)# router ospf 1 D. Router(config-router)# network 192.168.16.0 0.0.0.255 area 0
Explanation:
A. Router(config)# router ospf 1 This command enables the OSPF process on the router and assigns it a process ID of 1. OSPF process IDs are locally significant and used only on the router on which they are configured. If there are multiple OSPF processes running on a router, each process must have a unique process ID.
D. Router(config-router)# network 192.168.16.0 0.0.0.255 area 0 This command tells OSPF to advertise the network 192.168.16.0/24 into OSPF area 0. The network command specifies the network address and wildcard mask of the network to be advertised. In this case, the wildcard mask 0.0.0.255 indicates that all hosts on the 192.168.16.0/24 network should be included. The area 0 parameter specifies that the network should be advertised into OSPF area 0.
Option B. Router(config)# router ospf 0 is incorrect because the OSPF process ID cannot be 0.
Option C. Router(config)# router ospf area 0 is incorrect because the router ospf command requires a process ID.
Option E. Router(config-router)# network 192.168.16.0 0.0.0.255 0 is incorrect because it does not specify the area parameter. The area parameter is required to properly configure OSPF.
Option F. Router(config-router)# network 192.168.16.0 255.255.255.0 area 0 is incorrect because the wildcard mask should be 0.0.0.255, not 255.255.255.0. The wildcard mask specifies which bits in the IP address should be matched to determine the range of hosts on the network. In this case, the last octet of the IP address should be matched, so the wildcard mask should be 0.0.0.255.