Cisco Certified Network Associate (CCNA 200-301) · Cisco

IP Connectivity

12 practice questions covering 25% of the official Cisco Certified Network Associate (CCNA 200-301) blueprint. Every item includes a worked explanation of the correct answer.

View all 6 domains in Cisco Certified Network Associate (CCNA 200-301)

Syllabus Coverage & Domain Overview

IP Connectivity is the largest domain in the current CCNA 200-301 blueprint, at 25 percent of the exam. It tests whether you can read a routing table and predict what a router will do with a packet. It also tests whether you can configure the routing that fills that table. The official outline covers five areas: the components of a routing table, how a router makes its default forwarding decision, IPv4 and IPv6 static routing, single-area OSPFv2, and the purpose of first hop redundancy protocols.

Start with the routing table. You should be able to read a line from the output and identify the routing protocol code, the prefix and mask, the next hop, the administrative distance, the metric and the exit interface. You also need to recognise the gateway of last resort. The forwarding decision follows a fixed order. The router first picks the most specific matching prefix, which is the longest prefix match. Administrative distance only decides between routes to the same prefix learned from different sources, and the metric only decides between routes from the same protocol. Many candidates apply distance or metric too early and ignore prefix length.

Static routing covers default routes, network routes, host routes and floating static routes, in both IPv4 and IPv6. A floating static route is a backup. It is given an administrative distance higher than the dynamic route it protects, so it only enters the table when the preferred route disappears. Know the difference between pointing a route at a next-hop address and pointing it at an exit interface, and remember that IPv6 routing has to be enabled before IPv6 static routes will forward traffic.

OSPFv2 is limited to a single area. You need to know how neighbours form adjacencies and which parameters must match for that to happen, including area, timers, subnet and authentication. You also need to know how a router chooses its router ID, how the designated and backup designated router are elected on broadcast segments, and why point-to-point links do not hold an election. Cost is derived from interface bandwidth relative to a reference value, so you should be able to work out what changes when that reference is altered. For first hop redundancy, the outline asks for purpose and concepts rather than deep configuration. Understand how a virtual gateway address lets hosts keep one default gateway while the routers behind it fail over, and know the broad differences between HSRP, VRRP and GLBP.

Questions usually give you show command output, such as a routing table, an OSPF neighbour list or an interface summary. They then ask which route is used, why a neighbour is stuck in a state, or what a configuration change will do. Typical traps include a wildcard mask written as a subnet mask, a router ID taken from a loopback rather than a physical interface, a mismatched timer or subnet that blocks an adjacency, and a floating route whose distance is set too low. Read the exact destination address and compare it against every prefix in the table before you choose an answer.

For preparation, build a small lab in a simulator and configure static routes, a default route and a floating backup. Then bring up OSPF between several routers and break it in different ways to see the symptoms. Practise reading routing tables aloud, stating the matching prefix, the source and the next hop. Work through binary and subnet arithmetic until choosing the longest match feels automatic.

In the official Cisco Certified Network Associate (CCNA 200-301) examination blueprint, IP Connectivity carries a weightage of 25%. Out of the total examination duration of 2 hr, candidates should budget approximately 30 min for questions from this domain to maintain pace across the paper.

How to Master IP Connectivity for Cisco Certified Network Associate (CCNA 200-301)

Our 12 published questions in IP Connectivity are written for PrepIQ Hub and checked as set out in our editorial policy. Each item is written to the medium difficulty level of the Cisco exam:

  • Targeted Topic Drills: Launch Topic Practice mode to work exclusively through IP Connectivity items and review the step-by-step derivation after each submission.
  • Negative Marking Discipline: The Cisco Certified Network Associate (CCNA 200-301) applies no negative marking penalty, so practice eliminating the three distractors systematically on every IP Connectivity item.
  • Benchmark Target: Aim for at least 82.5% accuracy in IP Connectivity drills before moving to full-paper simulations.

IP Connectivity worked examples

IP Connectivity questions from the Cisco Certified Network Associate (CCNA 200-301) syllabus, answered in full. Try each one before opening the explanation.

  1. Example 1 · IP Connectivity · hard

    Two core routers (R1 and R2) are configured in HSRP (Hot Standby Router Protocol) Group 10 on VLAN 10 (10.10.10.0/24) with virtual IP 10.10.10.1. - R1 is configured with standby 10 priority 150 (but no standby 10 preempt command). - R2 is configured with the default priority (100). R1 reboots for a maintenance upgrade, causing R2 to become the Active HSRP router. When R1 finishes booting and its interface comes back up/up with priority 150, what happens to the HSRP Active role?

    • AR1 immediately takes over as Active because priority 150 beats 100 by default
    • BBoth R1 and R2 transition to Active simultaneously and load-balance packets
    • CThe virtual IP 10.10.10.1 is shut down until an administrator clears ARP caches
    • DR2 remains the Active router because standby 10 preempt is not configured
    Show answer and explanation

    Correct answer: D. R2 remains the Active router because standby 10 preempt is not configured

    Why

    In Cisco HSRP, preemption is disabled by default. Even though R1 has a higher priority (150 > 100), when R1 rejoins the network after R2 is already Active, R2 remains the Active router and R1 becomes Standby unless standby 10 preempt is explicitly configured on R1.

    • A. R1 immediately takes over as Active because priority 150 beats 100 by default — Unlike VRRP (where preemption is on by default), HSRP disables preemption unless standby <group> preempt is configured.
    • B. Both R1 and R2 transition to Active simultaneously and load-balance packets — HSRP uses a single Active router and a single Standby router per group; GLBP is the protocol that load-balances across multiple forwarders.
    • C. The virtual IP 10.10.10.1 is shut down until an administrator clears ARP caches — HSRP maintains continuous virtual IP availability without shutting down.
  2. Example 2 · IP Connectivity · medium

    An enterprise branch router learns its primary route to the headquarters subnet 10.0.0.0/16 via OSPF (Gig0/0). The engineer wants to configure a floating static backup route over an LTE cellular interface (Gig0/1, next-hop 172.30.1.1) that stays hidden from the routing table while OSPF is up, and automatically installs into the RIB if the OSPF route disappears. Which command achieves this?

    • Aip route 10.0.0.0 255.255.0.0 172.30.1.1 1 (using default static AD 1)
    • Bip route 10.0.0.0 255.255.0.0 172.30.1.1 90 (matching internal EIGRP AD 90)
    • Cip route 10.0.0.0 255.255.0.0 172.30.1.1 115 (setting AD higher than OSPF's 110)
    • Dip route 10.0.0.0 255.255.0.0 172.30.1.1 105 (setting AD just below OSPF's 110)
    Show answer and explanation

    Correct answer: C. ip route 10.0.0.0 255.255.0.0 172.30.1.1 115 (setting AD higher than OSPF's 110)

    Why

    Single-area OSPF has a default Administrative Distance (AD) of 110, whereas a standard static route defaults to an AD of 1. To make the static route act as a floating static backup to OSPF, you must append an Administrative Distance strictly greater than 110 (such as 115 or 200): ip route 10.0.0.0 255.255.0.0 172.30.1.1 115.

    • A. ip route 10.0.0.0 255.255.0.0 172.30.1.1 1 (using default static AD 1) — With AD 1 (< 110), the static route immediately preempts OSPF and forces primary traffic over the LTE link.
    • B. ip route 10.0.0.0 255.255.0.0 172.30.1.1 90 (matching internal EIGRP AD 90) — An AD of 90 is still lower than OSPF's 110, so the static route would still override OSPF.
    • D. ip route 10.0.0.0 255.255.0.0 172.30.1.1 105 (setting AD just below OSPF's 110) — Because 105 < 110, the router would prefer the static route over OSPF during normal operation.
  3. Example 3 · IP Connectivity · hard

    Two routers (R1 and R2) are connected over a shared GigabitEthernet broadcast segment (10.1.12.0/24) running OSPFv2 Area 0. Both routers try to form a full OSPF neighbor adjacency, but show ip ospf neighbor remains stuck in the EXSTART / EXCHANGE state and logs %OSPF-4-DUP_RTRID or DBD retransmissions. Which two interface mismatches will prevent two OSPF routers on the same subnet from reaching the FULL state? (Select two.)

    • AMismatched OSPF Hello or Dead timer intervals between R1 and R2
    • BDifferent OSPF process IDs (router ospf 1 on R1 vs router ospf 10 on R2)
    • CDifferent interface OSPF link cost metrics (ip ospf cost 10 vs ip ospf cost 50)
    • DMismatched Layer 3 interface IP MTU values (1500 bytes on R1 vs 9000 on R2)
    Show answer and explanation

    Correct answers: A. Mismatched OSPF Hello or Dead timer intervals between R1 and R2; D. Mismatched Layer 3 interface IP MTU values (1500 bytes on R1 vs 9000 on R2)

    Why

    For two OSPF neighbors on a broadcast link to reach the FULL adjacency state: (B) their Hello and Dead timer intervals (plus Area ID, subnet mask, authentication, and stub flags) must match to reach 2WAY (A), and (C) their interface IP MTU must match so Database Description (DBD) packets are accepted during EXSTART/EXCHANGE (D).

    • B. Different OSPF process IDs (router ospf 1 on R1 vs router ospf 10 on R2) — The OSPF process ID is only locally significant on each router and does not need to match between neighbors.
    • C. Different interface OSPF link cost metrics (ip ospf cost 10 vs ip ospf cost 50) — Mismatched OSPF costs affect path selection asymmetrically but do not prevent the adjacency from reaching FULL.
  4. Example 4 · IP Connectivity · hard

    A Cisco router receives a packet destined for IPv4 address 10.16.1.50. The router has the following four routes in its routing Information sources: 1. OSPF (AD 110): 10.16.0.0/16 via 192.168.1.1 2. EIGRP (AD 90): 10.16.0.0/20 via 192.168.1.2 3. RIP (AD 120): 10.16.1.0/26 via 192.168.1.3 4. Static (AD 1): 10.16.1.0/24 via 192.168.1.4 Which next-hop IP address will the router use to forward the packet to 10.16.1.50?

    • A192.168.1.4 because the Static route has the lowest AD (1)
    • B192.168.1.2 because EIGRP (AD 90) beats OSPF (AD 110)
    • C192.168.1.3 because 10.16.1.0/26 is the longest matching prefix
    • D192.168.1.1 because OSPF link-state metrics take priority
    Show answer and explanation

    Correct answer: C. 192.168.1.3 because 10.16.1.0/26 is the longest matching prefix

    Why

    First, verify which prefixes match 10.16.1.50: /16 (10.16.0.0–10.16.255.255), /20 (10.16.0.0–10.16.15.255), /24 (10.16.1.0–10.16.1.255), and /26 (10.16.1.0–10.16.1.63) all contain 10.16.1.50. Routers always evaluate Longest Prefix Match (LPM) before Administrative Distance. Because 10.16.1.0/26 is the longest matching prefix (/26 > /24 > /20 > /16), the packet is forwarded via 192.168.1.3 regardless of RIP's higher AD (120).

    • A. 192.168.1.4 because the Static route has the lowest AD (1) — Administrative Distance only breaks ties between routes with the exact same prefix length; /26 is more specific than /24.
    • B. 192.168.1.2 because EIGRP (AD 90) beats OSPF (AD 110) — The /20 prefix is shorter than both /24 and /26, so Longest Prefix Match selects /26.
    • D. 192.168.1.1 because OSPF link-state metrics take priority — The /16 prefix is the least specific match of the four routes.
  5. Example 5 · IP Connectivity · medium

    In an enterprise network, the OSPF auto-cost reference-bandwidth has been increased on all routers to 10000 (10,000 Mbps = 10 Gbps) so OSPF can distinguish between 10 Gbps and 1 Gbps interfaces. Using the OSPF cost formula $\text{Cost} = \frac{\text{Reference Bandwidth}}{\text{Interface Bandwidth}}$, what is the OSPF interface cost of a 1 Gbps (1,000 Mbps) GigabitEthernet link and a 100 Mbps FastEthernet link?

    • ACost 1 for GigabitEthernet and Cost 1 for FastEthernet (default 100 Mbps ref)
    • BCost 10 for GigabitEthernet (1 Gbps) and Cost 100 for FastEthernet (100 Mbps)
    • CCost 100 for GigabitEthernet (1 Gbps) and Cost 1,000 for FastEthernet (100 Mbps)
    • DCost 1 for GigabitEthernet (1 Gbps) and Cost 10 for FastEthernet (100 Mbps)
    Show answer and explanation

    Correct answer: B. Cost 10 for GigabitEthernet (1 Gbps) and Cost 100 for FastEthernet (100 Mbps)

    Why

    OSPF calculates interface cost by dividing the reference bandwidth by the interface bandwidth, with the result rounded down and a minimum of 1. The question states the reference bandwidth was raised to 10000 Mbps on all routers, for example with the auto-cost reference-bandwidth 10000 command under the OSPF process. A 1000 Mbps GigabitEthernet interface therefore gets 10000 / 1000 = 10, and a 100 Mbps FastEthernet interface gets 10000 / 100 = 100. This is the purpose of the change. With the default 100 Mbps reference, GigabitEthernet and 10 Gigabit links all collapse to cost 1 and OSPF cannot tell them apart. With 10000, a 10 Gbps link gets cost 1, a 1 Gbps link gets 10, and a 100 Mbps link gets 100. The common trap is mixing up the units or reusing the default reference value. Always convert everything to Mbps first. The reference bandwidth must also match on every router so that path costs are consistent.

    • A. Cost 1 for GigabitEthernet and Cost 1 for FastEthernet (default 100 Mbps ref) — Cost 1 for both links is what the default 100 Mbps reference bandwidth produces, because both speeds are at or above 100 Mbps and hit the minimum cost of 1. The question says the reference was raised to 10000, so this does not apply.
    • C. Cost 100 for GigabitEthernet (1 Gbps) and Cost 1,000 for FastEthernet (100 Mbps) — Costs of 100 and 1000 would result from a reference bandwidth of 100000 Mbps (100 Gbps), which is ten times larger than the 10000 Mbps configured here. It comes from an extra factor of ten in the calculation.
    • D. Cost 1 for GigabitEthernet (1 Gbps) and Cost 10 for FastEthernet (100 Mbps) — Costs of 1 and 10 correspond to a reference bandwidth of 1000 Mbps (1 Gbps), since 1000/1000 = 1 and 1000/100 = 10. The configured reference is 10000 Mbps, so each cost is ten times larger than this.
  6. Example 6 · IP Connectivity · medium

    An OSPF router is booted with no manual router-id command configured under router ospf 1. Its active IPv4 interfaces are: - GigabitEthernet0/0: 192.168.250.1/24 (up/up) - GigabitEthernet0/1: 172.16.100.1/24 (up/up) - Loopback0: 10.1.1.1/32 (up/up) - Loopback1: 10.99.99.1/32 (up/up) Which IPv4 address does OSPF select as its Router ID (RID)?

    • A192.168.250.1 because it is the numerically highest IPv4 address on the router
    • B10.99.99.1 because it is the highest IPv4 address among active Loopback interfaces
    • C10.1.1.1 because Loopback0 has a lower interface index than Loopback1
    • D172.16.100.1 because Class B private addresses are preferred by OSPF
    Show answer and explanation

    Correct answer: B. 10.99.99.1 because it is the highest IPv4 address among active Loopback interfaces

    Why

    OSPF selects its 32-bit Router ID using a strict 3-step precedence: (B) an explicitly configured router-id <ip> command, (C) the highest IPv4 address on any active Loopback interface, and (D) the highest IPv4 address on any active physical interface. Between Loopback0 (10.1.1.1) and Loopback1 (10.99.99.1), 10.99.99.1 is the highest active loopback IP.

    • A. 192.168.250.1 because it is the numerically highest IPv4 address on the router — Active Loopback interfaces always take precedence over physical interfaces regardless of numeric value.
    • C. 10.1.1.1 because Loopback0 has a lower interface index than Loopback1 — Among multiple Loopback interfaces, OSPF selects the highest IPv4 address (10.99.99.1), not the lowest interface number.
    • D. 172.16.100.1 because Class B private addresses are preferred by OSPF — OSPF Router ID selection does not prefer Class B over Loopback interfaces.

Every worked example on this page passed our independent verification before publication — how that works is set out in our editorial policy. Spotted an error? Tell us through the contact page and we will correct it.

All 6 IP Connectivity questions with answers

All Syllabus Domains in Cisco Certified Network Associate (CCNA 200-301)

Cisco and CCNA are trademarks of Cisco Systems, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Cisco Systems, Inc.