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.
- Each part is a separate self-scoring quiz; complete them in order.
- Where routes are involved, sketch the topology before you answer.
- Read the explanation even when you are right — it names the near misses.
- Answers are saved locally, so progress survives a refresh.
Part 1 — Routing table & forwarding
-
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.
-
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.
-
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.
-
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).
-
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.
-
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).
-
Which command displays the IPv4 routing table on a Cisco router?
show arpshow ip interface briefshow running-configshow ip route
show ip routelists all known routes with their codes, AD/metric, and next hop or exit interface. It is the definitive connectivity check. -
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
-
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.2ip route 192.168.2.2 255.255.255.0 10.0.0.2route add 192.168.2.0 10.0.0.2ip 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. -
Which static route sends all unmatched traffic out interface Gi0/0?
ip route 192.168.0.0 255.255.0.0 gi0/0ip route 0.0.0.0 0.0.0.0 gi0/0ip route default gi0/0ip 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.
-
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.
-
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.
-
Which command creates an IPv6 default route?
ipv6 route ::/0 2001:db8::1ip route ::/0 2001:db8::1ipv6 route 0.0.0.0/0 2001:db8::1ipv6 static default 2001:db8::1
An IPv6 default route uses ::/0 with the
ipv6 routecommand. Theip routeform is IPv4 only. -
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
Which command enables OSPF process 1 on a router?
ospf 1 enablerouter ospf 1ip ospf 1 area 0network 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. -
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 wanip ospf network 10.1.1.0network 10.1.1.0 0.0.0.255 area 0area 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 0on the interface. -
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.
-
Which command verifies that two routers have formed an OSPF adjacency?
show ip routeshow ip protocolsshow interfacesshow ip ospf neighbor
show ip ospf neighborlists neighbours and their state. A healthy broadcast adjacency reaches FULL (or 2-WAY toward non-DR routers). -
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.
-
Which command sets the OSPF router ID to 1.1.1.1 explicitly?
ip ospf 1.1.1.1 1ospf router-id enablerouter-id 1.1.1.1(under router ospf)network 1.1.1.1 0.0.0.0 area 0
Under
router ospf 1, therouter-id 1.1.1.1command sets the ID explicitly. It takes effect on the next OSPF process restart or withclear ip ospf process. -
Which command shows the OSPF link-state database of all routers and networks?
show ip ospf databaseshow ip route ospfshow ip protocolsshow ip interface brief
show ip ospf databaselists all LSAs the router has learned, grouped by type.show ip route ospfshows only the resulting routes.
Part 5 — First-hop redundancy (HSRP)
-
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.
-
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.
-
Which command makes a router the active HSRP router by raising its priority?
hsrp 1 priority 200standby 1 activestandby 1 group 200standby 1 priority 200
On the interface,
standby GROUP priority VALUEsets the priority. Addingstandby GROUP preemptlets a returning router reclaim the active role. -
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.
-
Which command sets the HSRP virtual IP address on an interface for group 1?
ip address 10.0.0.1 virtualhsrp ip 10.0.0.1standby 1 ip 10.0.0.1virtual-router 10.0.0.1
standby 1 ip 10.0.0.1configures the virtual IP for HSRP group 1. The group number ties the routers together; they must use the same group and virtual IP. -
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
| Part | Topic | Where it is covered |
|---|---|---|
| Part 1 | Routing table, longest-prefix match, AD | Week 6 · Network Layer |
| Part 2 | Static, default and floating static routes | Week 3 · Static routing lab; Week 6 |
| Part 3 | OSPF neighbours, timers, DR/BDR, areas | Week 6 · OSPF single-area lab |
| Part 4 | OSPF configuration and verification | Week 6 · OSPF single-area lab |
| Part 5 | HSRP, VRRP, first-hop redundancy | Week 6 · HSRP lab |
Sources & references
- Cisco. CCNA (200-301) Exam Topics, Domain 3.0 IP Connectivity. cisco.com.
- Moy, J. RFC 2328: OSPF Version 2 (1998). rfc-editor.org/rfc/rfc2328.
- Li, T. et al. RFC 5798: Virtual Router Redundancy Protocol (VRRP) Version 3 (2010). rfc-editor.org/rfc/rfc5798.
- 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.