Multiple choice

Refer to the exhibit. What configuration statements would give the results that are shown in the output of the show ip protocols command?

  1. B(config)# int fa0/0 B(config-if)# router-id 192.168.1.5

  2. B(config)# int lo0 B(config-if)# ip address 192.168.1.5

  3. B(config)# router ospf 1 B(config-router)# router-id 192.168.1.5

  4. B (config)# router ospf 1 B(config-router)# ip address 192.168.1.5

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The router-id command must be configured under OSPF router configuration mode, not under interface configuration mode. Option A incorrectly attempts to set router-id on an interface, Option B only assigns an IP address to a loopback interface, and Option D uses the wrong command (ip address) under router mode. Only Option C correctly enters OSPF router mode with 'router ospf 1' and then sets the router-id.