Exam Center · Question Bank 3

IP Connectivity — Question Bank

Thirty-six questions covering CCNA Domain 3.0 (IP Connectivity, 25% of the exam — the largest domain): the routing table and longest-prefix match, static and default routes, single-area OSPFv2, administrative distance, and first-hop redundancy with HSRP. Each answer includes a full explanation.

CCNA 200-301 v1.1 Domain 3.0 · Weighting 25% Verified 2026-10-11
How to use this bank
Definition — IP connectivity How a router decides where to send a packet (the routing table and longest-prefix match), how routes get there (connected, static, and OSPF), and how hosts keep a working default gateway even when one router fails (first-hop redundancy).

Part 1 — Routing table & forwarding

Routing table codes and forwarding logic
  1. Which routing table code represents a directly connected network?

    • S
    • C
    • O
    • D

    C marks a connected route (the interface is up and addressed). S is static, O is OSPF, and D is EIGRP.

  2. A router has three routes for 10.1.1.0/24, 10.1.0.0/16, and 0.0.0.0/0. A packet is destined for 10.1.1.5. Which route is used?

    • 10.1.1.0/24
    • 10.1.0.0/16
    • 0.0.0.0/0
    • It is load-balanced across all three.

    The router uses the longest-prefix match — the most specific route. /24 is longer than /16 and /0, so 10.1.1.0/24 wins.

  3. What is the administrative distance of a static route?

    • 0
    • 90
    • 110
    • 1

    Administrative distance ranks the trustworthiness of a route source: connected 0, static 1, EIGRP 90, OSPF 110, RIP 120. Lower is preferred.

  4. What is the default administrative distance of OSPF?

    • 1
    • 90
    • 110
    • 120

    OSPF has an AD of 110. It is less preferred than static (1) or EIGRP (90) but more preferred than RIP (120).

  5. What does the gateway of last resort represent in a routing table?

    • A default route (0.0.0.0/0) used when no more specific route matches.
    • The router's management address.
    • The highest-AD route in the table.
    • The route to the DNS server.

    The gateway of last resort is the default route, shown with code S* for a static default. It catches every destination that has no better match.

  6. Two OSPF routes to the same network have equal cost. What does the router do by default?

    • Discards both and sends an ICMP redirect.
    • Installs both and load-balances across them (equal-cost multipath).
    • Keeps only the route with the higher router ID.
    • Recalculates the OSPF cost.

    When multiple routes have the same prefix length, AD, and metric, OSPF installs them all and load-balances (up to the configured maximum, default 4).

  7. Which command displays the IPv4 routing table on a Cisco router?

    • show arp
    • show ip interface brief
    • show running-config
    • show ip route

    show ip route lists all known routes with their codes, AD/metric, and next hop or exit interface. It is the definitive connectivity check.

  8. A packet arrives for a network that is not in the routing table and there is no default route. What happens?

    • The router floods it out all interfaces.
    • The router holds it until a route appears.
    • The router drops it and may send an ICMP unreachable message.
    • The router forwards it to the DNS server.

    With no matching route the router discards the packet and normally returns an ICMP "destination unreachable" message. This is why a default route is so useful at the edge.

Part 2 — Static & default routes

Configuring static and default routes
  1. R1 must reach 192.168.2.0/24 via next hop 10.0.0.2. Which command does this?

    • ip route 192.168.2.0 255.255.255.0 10.0.0.2
    • ip route 192.168.2.2 255.255.255.0 10.0.0.2
    • route add 192.168.2.0 10.0.0.2
    • ip static 192.168.2.0/24 10.0.0.2

    The syntax is ip route NETWORK MASK NEXT-HOP. Answer B routes to a single host address, C is not IOS syntax, and D is not valid.

  2. Which static route sends all unmatched traffic out interface Gi0/0?

    • ip route 192.168.0.0 255.255.0.0 gi0/0
    • ip route 0.0.0.0 0.0.0.0 gi0/0
    • ip route default gi0/0
    • ip route 255.255.255.255 0.0.0.0 gi0/0

    A default route is 0.0.0.0 0.0.0.0 pointing at the next hop or exit interface. On an Ethernet link, an explicit next-hop IP is preferred so the router can resolve the neighbour.

  3. What advantage does a floating static route provide?

    • It load-balances with OSPF.
    • It automatically summarises routes.
    • It acts as a backup by using a higher administrative distance so it is used only if the primary fails.
    • It removes the need for a default route.

    A floating static route has an AD higher than the dynamic route (for example, AD 111 above OSPF 110), so it stays dormant until the preferred route disappears.

  4. Why is a directly attached static route (pointing at a local interface) on a broadcast medium often avoided?

    • It has an AD of 0.
    • It is always preferred over OSPF.
    • It cannot be removed.
    • It can cause the router to ARP for every destination, raising overhead and memory use.

    Pointing at an interface makes the route recursive/ARP-based: the router must resolve each destination individually. Using the next-hop IP lets one ARP entry cover the prefix.

  5. Which command creates an IPv6 default route?

    • ipv6 route ::/0 2001:db8::1
    • ip route ::/0 2001:db8::1
    • ipv6 route 0.0.0.0/0 2001:db8::1
    • ipv6 static default 2001:db8::1

    An IPv6 default route uses ::/0 with the ipv6 route command. The ip route form is IPv4 only.

  6. What happens if you configure a static route to a next hop that is not reachable by any interface?

    • The router creates the next hop network automatically.
    • The route is marked connected.
    • The route stays in the table but is unusable until the next hop becomes reachable.
    • The router reboots.

    A static route to an unreachable next hop is recursive: the router must find a route to the next hop first. Until that exists, the route is not actively used.

Part 3 — OSPF concepts

OSPFv2 fundamentals
  1. Which multicast address do all OSPFv2 routers listen on?

    • 224.0.0.6
    • 224.0.0.5
    • 224.0.0.9
    • 224.0.0.10

    All OSPF routers use 224.0.0.5; DR and BDR use 224.0.0.6. RIPv2 uses 224.0.0.9 and EIGRP uses 224.0.0.10.

  2. What are the default OSPF hello and dead intervals on a broadcast network?

    • 5 s and 15 s
    • 30 s and 120 s
    • 10 s and 40 s
    • 2 s and 20 s

    OSPF sends hellos every 10 seconds and declares a neighbour dead after 40 seconds on broadcast and point-to-point links. The dead interval is 4 times the hello by default.

  3. Which value must match for two OSPF routers to become neighbours?

    • Area ID, hello/dead intervals, and authentication (and matching subnet on the link)
    • Only the router ID
    • Only the process ID
    • Only the interface MTU

    Hello packets must agree on area ID, hello/dead timers, authentication, stub flags, and network type. The MTU also matters for adjacency formation on some platforms.

  4. How does OSPF choose its router ID?

    • Lowest interface IP address
    • Highest MAC address
    • The process number
    • The highest loopback address, else the highest active interface IP

    OSPF prefers an explicitly configured router ID, then the highest loopback IP, then the highest IP of an active interface. A loopback is common to keep the ID stable.

  5. Which metric does OSPF use, and what is its default reference bandwidth?

    • Hop count; not applicable
    • Cost based on bandwidth; 100 Mbps reference by default
    • Delay; 10 microseconds
    • Composite (bandwidth and delay)

    OSPF cost = reference bandwidth / interface bandwidth (108 / bandwidth by default). The 100 Mbps reference makes links of 100 Mbps or faster cost 1 unless it is redefined.

  6. What is the purpose of a designated router (DR) on a multi-access OSPF network?

    • It assigns IP addresses to neighbours.
    • It blocks redundant OSPF routes.
    • It reduces the number of adjacencies by exchanging routing information on behalf of all routers.
    • It encrypts all OSPF hellos.

    On a broadcast network, routers form full adjacencies only with the DR and BDR (state 2-WAY with the rest). The DR floods LSAs to reduce the O(n2) adjacency count.

  7. Which OSPF packet type establishes and maintains neighbour relationships by advertising routers?

    • Hello
    • Link State Update
    • Database Description
    • Link State Acknowledgment

    Hellos discover and keep neighbours alive and carry the parameter list that must match. Database Description, Link State Request, Update, and Acknowledgment exchange the topology database.

  8. What is an OSPF area used for?

    • To assign IP addresses
    • To select the root bridge
    • To encrypt routing updates
    • To limit how far topology changes and LSAs propagate, improving scalability

    Areas partition a large OSPF domain so that LSAs stay local. All areas connect to the backbone, area 0 (0.0.0.0).

Part 4 — OSPF configuration & verification

Configuring and verifying OSPFv2
  1. Which command enables OSPF process 1 on a router?

    • ospf 1 enable
    • router ospf 1
    • ip ospf 1 area 0
    • network ospf 1

    Enter OSPF configuration mode with router ospf PROCESS-ID. The process ID is locally significant and does not need to match on neighbours.

  2. Which command advertises the 10.1.1.0/24 network into area 0 from OSPF process 1?

    • network 10.1.1.0 0.0.0.255 wan
    • ip ospf network 10.1.1.0
    • network 10.1.1.0 0.0.0.255 area 0
    • area 0 network 10.1.1.0/24

    The classic method uses a network statement with a wildcard mask and the area. The newer method is ip ospf 1 area 0 on the interface.

  3. What is the wildcard mask for the network statement matching 192.168.1.0 255.255.255.0?

    • 0.0.0.255
    • 255.255.255.0
    • 0.0.255.0
    • 255.255.255.255

    A wildcard mask inverts the subnet mask: 255.255.255.0 becomes 0.0.0.255. It is used in network statements and ACLs.

  4. Which command verifies that two routers have formed an OSPF adjacency?

    • show ip route
    • show ip protocols
    • show interfaces
    • show ip ospf neighbor

    show ip ospf neighbor lists neighbours and their state. A healthy broadcast adjacency reaches FULL (or 2-WAY toward non-DR routers).

  5. Two routers are directly connected and configured with different MTUs. Which OSPF state are they likely to be stuck in?

    • FULL
    • EXSTART/EXCHANGE
    • DOWN
    • INIT

    A mismatch in MTU prevents database description packets from agreeing, so the adjacency stalls in EXSTART or EXCHANGE. A mismatch in hello/dead timers or area keeps it in DOWN or INIT.

  6. Which command sets the OSPF router ID to 1.1.1.1 explicitly?

    • ip ospf 1.1.1.1 1
    • ospf router-id enable
    • router-id 1.1.1.1 (under router ospf)
    • network 1.1.1.1 0.0.0.0 area 0

    Under router ospf 1, the router-id 1.1.1.1 command sets the ID explicitly. It takes effect on the next OSPF process restart or with clear ip ospf process.

  7. Which command shows the OSPF link-state database of all routers and networks?

    • show ip ospf database
    • show ip route ospf
    • show ip protocols
    • show ip interface brief

    show ip ospf database lists all LSAs the router has learned, grouped by type. show ip route ospf shows only the resulting routes.

Part 5 — First-hop redundancy (HSRP)

HSRP and first-hop redundancy
  1. What problem does HSRP solve?

    • It prevents Layer 2 loops.
    • It assigns IP addresses to hosts.
    • It gives hosts a resilient default gateway shared between two routers.
    • It encrypts routing updates.

    First-hop redundancy presents a single virtual IP and MAC so hosts keep one default gateway even if the active router fails. HSRP, VRRP, and GLBP do this.

  2. What is the default HSRP priority, and does higher or lower win?

    • 100; higher wins
    • 100; lower wins
    • 1; higher wins
    • 255; lower wins

    HSRP priority defaults to 100 and the highest priority becomes the active router. Preemption (off by default) is needed if a higher-priority router returns after a failover.

  3. Which command makes a router the active HSRP router by raising its priority?

    • hsrp 1 priority 200
    • standby 1 active
    • standby 1 group 200
    • standby 1 priority 200

    On the interface, standby GROUP priority VALUE sets the priority. Adding standby GROUP preempt lets a returning router reclaim the active role.

  4. What virtual MAC address pattern does HSRP use?

    • 0000.5e00.01xx
    • 0000.0c07.acxx
    • 00:00:0c:07:ac:xx as an IP
    • FFFF.FFFF.FFFF

    HSRP uses virtual MAC 0000.0C07.ACxx where xx is the hex group number. VRRP uses 0000.5E00.01xx.

  5. Which command sets the HSRP virtual IP address on an interface for group 1?

    • ip address 10.0.0.1 virtual
    • hsrp ip 10.0.0.1
    • standby 1 ip 10.0.0.1
    • virtual-router 10.0.0.1

    standby 1 ip 10.0.0.1 configures the virtual IP for HSRP group 1. The group number ties the routers together; they must use the same group and virtual IP.

  6. Which of these is an open-standard first-hop redundancy protocol, unlike HSRP?

    • VRRP
    • HSRP
    • GLBP
    • PAgP

    VRRP is the IEEE-backed open standard (RFC 5798). HSRP and GLBP are Cisco proprietary. VRRP also defaults to priority 100 and higher wins.

Missed-question review map

PartTopicWhere it is covered
Part 1Routing table, longest-prefix match, ADWeek 6 · Network Layer
Part 2Static, default and floating static routesWeek 3 · Static routing lab; Week 6
Part 3OSPF neighbours, timers, DR/BDR, areasWeek 6 · OSPF single-area lab
Part 4OSPF configuration and verificationWeek 6 · OSPF single-area lab
Part 5HSRP, VRRP, first-hop redundancyWeek 6 · HSRP lab

Sources & references

  1. Cisco. CCNA (200-301) Exam Topics, Domain 3.0 IP Connectivity. cisco.com.
  2. Moy, J. RFC 2328: OSPF Version 2 (1998). rfc-editor.org/rfc/rfc2328.
  3. Li, T. et al. RFC 5798: Virtual Router Redundancy Protocol (VRRP) Version 3 (2010). rfc-editor.org/rfc/rfc5798.
  4. Li, T. & Cole, B. RFC 2281: Cisco Hot Standby Router Protocol (HSRP) (1998). rfc-editor.org/rfc/rfc2281.

Target exams: CCNA 200-301 v1.1 · CyberOps Associate 200-201. Last content verification: 2026-10-11.