Difficulty: Easy
Correct Answer: 2 and 5
Explanation:
Introduction / Context:
To advertise a subnet into OSPF, you must enter the OSPF process and add a matching network statement with an appropriate wildcard mask and area assignment. Precision matters: typos such as 'area0' will not work.
Given Data / Assumptions:
Concept / Approach:
The two necessary commands are: (2) router ospf 10 to enter the process, and (5) network 10.2.3.0 0.0.0.255 area 0 to match the /24 and bind it to area 0. Using the classful 'network 10.0.0.0' overmatches and is not specific; 'area0' without a space is invalid syntax.
Step-by-Step Solution:
Verification / Alternative check:
Run show ip ospf interface and show ip route ospf to confirm that interfaces matching 10.2.3.0/24 join area 0 and routes appear with OSPF codes (O).
Why Other Options Are Wrong:
(3) network 10.0.0.0 classful match is not the precise /24 specification.
(4) 'area0' is syntactically wrong; IOS requires a space: area 0.
Common Pitfalls:
Using classful network statements unintentionally; forgetting wildcard masks; misplacing the OSPF process ID and area number formatting.
Final Answer:
2 and 5
Discussion & Comments