Chapter 8: Quiz – OSPF (Answers) CCNPv8 ENCOR

1. What are two characteristics of OSPF areas? (Choose two.)

  • Area 0 is called the backbone area.
  • All OSPF networks require the use of multiple areas.
  • OSPF areas create a three-layer hierarchical design.
  • All OSPF areas must be directly connected to Area 0.
  • Single area OSPF networks must be configured in Area 1.
  • Each OSPF area must be configured with a loopback interface.

Explanation: OSPF is designed with a hierarchical architecture using the concept of areas. An area is a collection of connected networks and is identified with the network command. Area 0 is a special area known as the backbone. All other areas must connect to Area 0.

2. Which statement is true about OSPF DR and BDR elections?

  • A new DR/BDR election occurs each time a new OSPF neighbor is added.
  • The router with the highest OSPF priority setting wins the election for DR.
  • The default priority value for a router connected to a multiaccess network is 0.
  • The router with the highest MAC address is elected as the DR when the default priority values are used.

Explanation: The default OSPF priority is value 1 but can be configured from 1 to 255. The router with the highest priority will win the OSPF DR election.

3. Which OSPF network type requires the election of a DR/BDR?

  • broadcast
  • point-to-point
  • point-to-multipoint
  • point-to-multipoint nonbroadcast

Explanation: OSPF routers elect a DR and a BDR on mutliaccess broadcast networks.

4. Which two Layer 2 multicast addresses are used for Layer 2 frames carrying OSPF messages? (Choose two.)

  • 01:00:5E:00:00:06
  • 01:00:5E:00:00:05
  • 01:00:5E:00:00:0A
  • 01:00:5E:00:00:02
  • 01:00:5E:00:00:0F

Explanation: 01:00:5E:00:00:05 is the multicast MAC address used to reach all OSPF routers and 01:00:5E:00:00:06 is the multicast MAC address used to reach OSPF DRs.

5. Which OSPF neighbor state indicates that bidirectional communication has been established prior to LSDB synchronization?

  • Init
  • 2-Way
  • Loading
  • Full

Explanation: When an OSPF interface has received Hello packets from another OSPF router, it transitions to the 2-Way state. LSDB synchronization does not begin until after the 2-Way state.

6. A router with two LAN interfaces, two WAN interfaces, and one configured loopback interface is operating with OSPF as its routing protocol. What does the router OSPF process use to assign the router ID?

  • the IP address of the interface that is configured with priority 0
  • the OSPF area ID that is configured on the interface with the highest IP address
  • the loopback interface IP address
  • the highest IP address on the LAN interfaces
  • the highest IP address that is configured on the WAN interfaces

Explanation: OSPF requires a unique router ID on each router. The router ID can be configured manually with the # router-id command. If this command is not issued, then the OSPF process will use the highest IPv4 address on an active interface as the router ID, with preference give to loopback interfaces.

7. Which IP protocol number is reserved for OSPF by the IANA?

  • 6
  • 88
  • 89
  • 112

Explanation: IP protocol numbers are found in the the Protocol field of the IPv4 header and the Next Header field of the IPv6 header. The protocol number for OSPF is 89

8. Refer to the exhibit. R1 is configured properly for a single area OSPF, and R2 has been recently installed in the network. Which set of commands is required to configure a single area OSPF for the networks that are connected to R2?

  • R2(config)# router ospf 1
    R2(config-router)# network area 0
    R2(config-router)# network area 0
  • R2(config)# router ospf 1
    R2(config-router)# network area 0
    R2(config)# router ospf 2
    R2(config-router)# network area 0
  • R2(config)# router ospf 1
    R2(config-router)# network area 0
    R2(config-router)# network area 1
  • R2(config)# router ospf 1
    R2(config-router)# network area 0
    R2(config-router)# network area 1

Explanation: To configure R2 for OSPF in area 0 first enable OSPF with the router ospf 1 command. Then apply OSPF to the serial and LAN interfaces with the network area 0 and network area 0 commands.

9. A network administrator is implementing OSPF in a portion of the network and must ensure that only specific routes are advertised via OSPF. Which network statement would configure the OSPF process for networks,,, and, now located in the backbone area, and inject them into the OSPF domain?

  • r1(config-router)# network area 0
  • r1(config-router)# network area 1
  • r1(config-router)# network area 1
  • r1(config-router)# network area 0
  • r1(config-router)# network area 1
  • r1(config-router)# network area 0

Explanation: The network area 0 command has the correct network and wildcard mask combination to capture the four networks and activate the associated interfaces for area 0.

10. How does OSPF exchange routing updates when the passive-interface command is applied?

  • OSPF forms neighbor adjacencies on that interface.
  • The OSPF interface enters an active state.
  • OSPF stops sending routing updates out that interface.
  • OSPF only receives routing updates on that interface.
  • OSPF neither sends nor receives routing updates through that interface.

Explanation: When the passive-interface command is applied, the interface does not send out any OSPF hello messages nor will it process any received OSPF packets.

11. Refer to the exhibit. An administrator has entered the commands shown on R1. However, the default route is not propagating to other OSPF routers. What configuration would likely correct this problem?

  • Change the administrative distance on the static route to less than that of OSPF.
  • Issue the default-information originate command.
  • Issue the redistribute static command.
  • Use the network command to put network into area 0.

Explanation: The default-information originate command is used to propagate a default route to OSPF neighbors.

12. What is the OSPF link cost of a Gigabit Ethernet interface if the reference bandwidth is configured as 10000 Mbps?

  • 1
  • 10
  • 100
  • 1000

Explanation: The formula for calculating cost is Cost = Reference Bandwidth in Mbps/Interface Bandwidth in Mbps. So Cost = 10000/1000 or 10.

“Do I Know This Already?” Quiz Answers:

1. OSPF uses the protocol number ___________ for its inter-router communication.

  • 87
  • 88
  • 89
  • 90

Explanation: OSPF uses protocol number 89.

2. OSPF uses ___________ packet types for inter-router communication.

  • three
  • four
  • five
  • six
  • seven

Explanation: OSPFv2 use five packet types for communication: hello, database description, link state request, link state update, and link state acknowledgment.

3. What destination addresses does OSPF use, when feasible? (Choose two.)

  • IP address
  • IP address
  • IP address
  • MAC address 01:00:5E:00:00:05
  • MAC address 01:00:5E:00:00:0A

Explanation: OSPF uses the multicast IP address or the MAC address 01:00:5e:00:00:05 for the AllSPFRouters group.

4. True or false: OSPF is only enabled on a router interface by using the command network ip-address wildcard-mask area area-id under the OSPF router process.

  • True
  • False

Explanation: OSPF can also be enabled with the interface parameter command ip ospf process-id area area-id.

5. True or false: The OSPF process ID must match for routers to establish a neighbor adjacency.

  • True
  • False

Explanation: The OSPF process ID is locally significant and is not required to match for neighbor adjacency.

6. True or false: A default route advertised with the command default informationoriginate in OSPF will always appear as an OSPF inter-area route.

  • True
  • False

Explanation: An OSPF advertised default route always appears as an external route.

7. True or false: The router with the highest IP address is the designated router when using a serial point-to-point link.

  • True
  • False

Explanation: Serial point-to-point links are automatically set as an OSPF point-to-point network type, which does not have a designated router.

8. OSPF automatically assigns a link cost to an interface based on a reference bandwidth of ___________.

  • 100 Mbps
  • 1 Gbps
  • 10 Gbps
  • 40 Gbps

Explanation: IOS XE uses a reference bandwidth of 100 Mbps for dynamic metric assignment to an interface.

9. What command is configured to prevent a router from becoming the designated router for a network segment?

  • The interface command ip ospf priority 0
  • The interface command ip ospf priority 255
  • The command dr-disable interface-id under the OSPF process
  • The command passive interface interface-id under the OSPF process
  • The command dr-priority interface-id 255 under the OSPF process

Explanation: Setting the interface priority to 0 removes the interface from the DR election process.

10. What is the advertised network for the loopback interface with IP address


Explanation: The loopback address is classified as an OSPF loopback interface type, which is always advertised as a /32 address, regardless of the subnet mask.


Inline Feedbacks
View all comments
Would love your thoughts, please comment.x