Implementing and Operating Cisco Enterprise Network Core Technologies (ENCOR) — Question 1012
An engineer must configure a new loopback interface on a router and advertise the interface as a /24 in OSPF. Which command set accomplishes this task?
Answer options
- A. R2(config)#interface Loopback0 R2(config-if)#ip address 172.22.2.1 255.255.255.0 R2(config-if)#ip ospf network broadcast R2(config-if)#ip ospf 100 area 0
- B. 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
- C. 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-multipoint R2(config-if)#router ospf 100
- D. R2(config-router)#network 172.22.2.0 0.0.0.255 area 0 R2(config)#interface Loopback0 R2(config-if)#ip address 172.22.2.1 255.255.255.0 R2(config-if)#ip ospf 100 area 0
Correct answer: B
Explanation
The correct answer is B because it properly sets the OSPF network type to point-to-point, which is suitable for loopback interfaces. Option A uses the broadcast network type, which is not appropriate for loopback interfaces. Option C specifies point-to-multipoint, which is also not suitable for a loopback interface, and D incorrectly configures OSPF with a network command instead of the interface command.