200-301 Question 329
Select 3You are tasked with configuring OSPFv2 in a single area on a router named Router1. The router has three interfaces: GigabitEthernet0/0 (192.168.1.1/24), GigabitEthernet0/1 (192.168.2.1/24), and GigabitEthernet0/2 (192.168.3.1/24). You need to ensure that OSPF is properly configured and operational on all three interfaces. Which of the following commands must be included in your configuration?
- A
router ospf 1
- B
network 192.168.1.0 0.0.0.255 area 0
- C
network 192.168.2.0 0.0.0.255 area 0
- D
ip ospf 1 area 0 under each interface
- E
network 192.168.3.0 0.0.0.255 area 1
Show answer and explanation
Correct answers: A, B, C
Explanation
To configure a router for OSPFv2 in a single area, you need to enable the OSPF process (e.g., using 'router ospf 1') and advertise the networks connected to the router using the 'network' statement with the correct wildcard mask and area number. In this case, all networks must belong to area 0. The 'ip ospf 1 area 0' command is not suitable for this scenario as it typically applies to OSPF configurations on a per-interface basis, while the 'network' command is preferred in single-area OSPF setups. Configuring area 1 for any network violates the single-area requirement.
- A. Correct.
This command is required to enter OSPF router configuration mode, where you can specify additional OSPF-related commands.
- B. Correct.
This command ensures that the OSPF process advertises the 192.168.1.0/24 network and assigns it to area 0.
- C. Correct.
This command ensures that the OSPF process advertises the 192.168.2.0/24 network and assigns it to area 0.
- D. Incorrect.
This command is incorrect for this scenario because single-area OSPF configuration typically uses the 'network' command instead of enabling OSPF per interface.
- E. Incorrect.
This command incorrectly assigns the 192.168.3.0/24 network to area 1, but the requirement is for all interfaces to be in a single area (area 0).