CCNP 350-401 ENCOR Question 597 DISCUSSION
« Back to Main MenuRefer to the exhibit. An engineer configures OSPF and wants to verify the configuration. Which configuration is applied to this device?
A.
R1(config)#router ospf 1
R1(config-router)#network 192.168.50.0 0.0.0.255 area 0
B.
R1(config)#interface Gi0/1
R1(config-if)#ip ospf 1 area 0
R1(config-if)#no shutdown
C.
R1(config)#interface Gi0/1
R1(config-if)#ip ospf enable
R1(config-if)#ip ospf network broadcast
R1(config-if)#no shutdown
D.
R1(config)#router ospf 1
R1(config-router)#network 0.0.0.0 0.0.0.0 area 0
R1(config-router)#no passive-interface Gi0/1
Refer to the exhibit. An engineer configures OSPF and wants to verify the configuration. Which configuration is applied to this device?
A.
R1(config)#router ospf 1
R1(config-router)#network 192.168.50.0 0.0.0.255 area 0
B.
R1(config)#interface Gi0/1
R1(config-if)#ip ospf 1 area 0
R1(config-if)#no shutdown
C.
R1(config)#interface Gi0/1
R1(config-if)#ip ospf enable
R1(config-if)#ip ospf network broadcast
R1(config-if)#no shutdown
D.
R1(config)#router ospf 1
R1(config-router)#network 0.0.0.0 0.0.0.0 area 0
R1(config-router)#no passive-interface Gi0/1
Correct Answer: B
There are two ways to configure OSPF:
Under global config:
router osfp 1
network ip wildcard-mask >> Attached via Network Statement
Under interface:
R1(config-if)#ip ospf 1 area 0 >> Attached via Interface Enable