Which command sequence creates Loopback0 with address 172.22.2.1/24 and advertises it in OSPF?
Choose an answer
Tap an option to check your answer.
Correct answer: R2(config)#interface Loopback0 R2(config-if)#ip address 172.22.2.1 255.255.255.0 R2(config-if)#ip ospf network point-to-point R2(config-if)#ip ospf 100 area 0.
Why this is the answer
The correct sequence configures Loopback0 with the specified IP address and then enables OSPF on that interface. For loopback interfaces, OSPF by default advertises them as /32 host routes. To advertise the full subnet (e.g., /24), the ip ospf network point-to-point command is used, which changes the OSPF network type for that interface and includes the subnet mask in the advertisement. Finally, ip ospf 100 area 0 enables OSPF process 100 in area 0 on the interface. The first incorrect option uses ip ospf network broadcast, which is not typically used for loopback interfaces and would still advertise a /32 host route by default unless other specific configurations are applied. The third option incorrectly uses router ospf 100 in interface configuration mode; OSPF process configuration is done in global configuration mode. The fourth option attempts to configure OSPF via the network command under router ospf mode, which is an alternative method, but the question asks for interface-level configuration and the provided sequence is mixed and incomplete for that approach.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed