Courseiva
IP RoutingmediumDrag & DropObjective-mapped

CCNA IP Routing Practice Question

Drag and drop the following steps into the correct order to configure single‑area OSPFv2 on a router, advertise the 192.168.10.0/24 and 10.0.0.0/24 networks in area 0, and set the GigabitEthernet0/0 interface as passive.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
6Step 6

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Enter global configuration mode using the 'configure terminal' command.

The correct sequence is: (1) Enter global configuration mode with 'configure terminal' – this is required before any configuration commands. (2) Initiate the OSPF process with 'router ospf 1' – this places the CLI into OSPF router configuration mode where the remaining commands are issued. (3) Advertise the 192.168.10.0/24 network in area 0 – the 'network' command must be issued under OSPF router mode to inject the connected network into OSPF. (4) Advertise the 10.0.0.0/24 network – a second 'network' statement; the order of network commands is interchangeable but they must be configured before setting passive interfaces in a logical workflow. (5) Configure GigabitEthernet0/0 as a passive interface – this prevents OSPF Hello packets and neighbor adjacency on that interface while still advertising its subnet, and it is configured under OSPF router mode. (6) Return to privileged EXEC mode with 'end' – exits configuration mode and returns to the enable prompt. While setting a passive interface before the network statement does not break the configuration, Cisco documentation suggests adding networks first to clearly define which interfaces participate in OSPF before applying passive-interface restrictions.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Enter global configuration mode using the 'configure terminal' command.

    Why this is correct

    The 'configure terminal' command is the mandatory first step in any OSPF configuration because it transitions the device from privileged EXEC mode (Router#) to global configuration mode (Router(config)#). Without it, OSPF commands cannot be entered, as they require the global configuration modifier. This mode allows subsequent router-level and interface-level commands to be processed.

  • Enter OSPF router configuration mode with the 'router ospf 1' command.

    Why this is correct

    The 'router ospf 1' command creates an OSPF routing process with process ID 1 and moves the device into OSPF router configuration mode (Router(config-router)#). The process ID is locally significant, meaning it only matters on this router and does not need to match neighboring routers. This command is essential because it defines the OSPF instance that will carry all subsequent network and passive-interface configurations.

  • Advertise the 192.168.10.0/24 network in area 0 using the 'network 192.168.10.0 0.0.0.255 area 0' command.

    Why this is correct

    The 'network 192.168.10.0 0.0.0.255 area 0' command tells OSPF to advertise the directly connected subnet 192.168.10.0/24 and to include it in area 0 (the backbone area). The wildcard mask 0.0.0.255 matches the first three octets exactly, ensuring only this specific subnet is activated for OSPF. This command causes OSPF to start sending hello packets on interfaces whose IP addresses fall within this range.

  • Advertise the 10.0.0.0/24 network in area 0 using the 'network 10.0.0.0 0.0.0.255 area 0' command.

    Why this is correct

    The 'network 10.0.0.0 0.0.0.255 area 0' command similarly advertises the 10.0.0.0/24 subnet into OSPF area 0. Because this network is also directly connected to the router, OSPF will include it in its LSAs. This step is distinct from the 192.168.10.0/24 advertisement because it covers a different interface segment, ensuring all directly connected LAN segments are reachable via OSPF.

  • Set the GigabitEthernet0/0 interface as passive with the 'passive-interface GigabitEthernet0/0' command.

    Why this is correct

    The 'passive-interface GigabitEthernet0/0' command prevents OSPF from sending Hellos on that interface, so no adjacency will form there. However, the network address of that interface is still advertised in OSPF's LSAs, making the subnet reachable. This is typically applied to a LAN-facing interface where no OSPF neighbor exists, reducing unnecessary protocol traffic and preventing potential neighbor instability.

  • Return to privileged EXEC mode with the 'end' command.

    Why this is correct

    The 'end' command is used to exit OSPF router configuration mode and return to privileged EXEC mode (Router#). It is a convenient way to exit all configuration modes at once, equivalent to entering 'exit' multiple times. This step verifies that the configuration is complete and prepares the device for verification or saving commands like 'show ip ospf neighbor'.

Visual reference

R1 R2 R3 R4 10 100 10 100 OSPF picks R1→R2→R4 (cost 20) over R1→R3→R4 (cost 200)

Quick reference

Routing Protocol Comparison

ProtocolMetricMax HopsAlgorithmType
RIP v2Hop count15Bellman-FordDistance vector
OSPFCost (bandwidth)UnlimitedDijkstra (SPF)Link state
EIGRPComposite metricUnlimitedDUALHybrid
IS-ISCostUnlimitedDijkstraLink state
BGPPolicy / attributesUnlimitedPath vectorPath vector

RIP's 15-hop limit makes it unsuitable for large networks. OSPF and EIGRP dominate modern enterprise deployments.

About these practice questions

One of 1,389 original 200-301 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This 200-301 practice question is part of Courseiva's free Cisco certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 200-301 exam.