CCNA Routing and Switching (legacy) — Question 151
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.)
Answer options
- A. Router(config)# router ospf 1
- B. Router(config)# router ospf 0
- C. Router(config)# router ospf area 0
- D. Router(config-router)# network 192.168.16.0 0.0.0.255 area 0
- E. Router(config-router)# network 192.168.16.0 0.0.0.255 0
- F. Router(config-router)# network 192.168.16.0 255.255.255.0 area 0
Correct answer: A, D
Explanation
The correct commands to configure OSPF and add the specified network are 'Router(config)# router ospf 1' and 'Router(config-router)# network 192.168.16.0 0.0.0.255 area 0'. The other options are incorrect because they either specify an invalid OSPF process number, an incorrect command syntax, or a wrong wildcard mask for the network configuration.