IP Connectivity: CCNA practice questions
IP Connectivity is 26% of the free CCNA mock (13 of 50 questions). Pick an answer to see right away whether it is correct, with the explanation and the documentation section it comes from.
CN.III · CCNA practice question
A router has a static host route 'ip route 192.168.100.50 255.255.255.255 10.0.0.1' and an OSPF route for '192.168.100.0/24' via 10.0.0.2. Where is a packet to 192.168.100.50 sent?
Check answer and explanation
Correct answer: To 10.0.0.1 because /32 is a longer prefix match than /24
Explanation
The static host route has a /32 mask, which is more specific than the /24 OSPF route; longest prefix match selects the /32 route to 10.0.0.1.
Common trap
A common trap is choosing “Dropped because host routes cannot be configured statically” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
A router has routes to 192.168.0.0/16, 192.168.16.0/20, and 192.168.20.0/22. For a packet destined to 192.168.21.55, which prefix wins longest prefix match?
Check answer and explanation
Correct answer: 192.168.20.0/22
Explanation
192.168.21.55 falls within 192.168.20.0/22 (192.168.20.0–192.168.23.255), which has a /22 mask—more specific than /20 and /16.
Common trap
A common trap is choosing “192.168.16.0/20” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
A router has the following routes to 10.50.0.0/16: OSPF 10.50.0.0/16 [110/20] via 10.1.1.1 and Static 10.50.0.0/16 [1/0] via 10.1.1.2. Which route is installed in the routing table and why?
Check answer and explanation
Correct answer: The Static route because both have the exact same prefix length (/16) and Static has a lower AD (1 vs. 110)
Explanation
Because both routes match the exact same prefix and mask (/16), longest prefix match ties and administrative distance breaks the tie; Static (AD 1) beats OSPF (AD 110).
Common trap
A common trap is choosing “Neither route is installed because 10.50.0.0/16 is a private address” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
How does OSPFv2 determine its Router ID if neither the 'router-id' command nor any active/up IPv4 loopback interface is configured?
Check answer and explanation
Correct answer: It uses the highest IPv4 address among active (up/up) non-loopback interfaces
Explanation
OSPF Router ID precedence is: (1) explicit 'router-id' command, (2) highest IPv4 address on an active loopback interface, and (3) highest IPv4 address on an active physical/up interface.
Common trap
A common trap is choosing “It uses the lowest IPv4 address among active (up/up) non-loopback interfaces” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
In an IPv4 routing table entry such as 'O 10.10.1.0/24 [110/15] via 172.16.1.1, 00:04:12, GigabitEthernet0/1', what does the number 15 represent?
Check answer and explanation
Correct answer: OSPF metric (cost)
Explanation
Inside [AD/metric], the first number (110) is the administrative distance and the second number (15) is the routing protocol metric (OSPF cost).
Common trap
A common trap is choosing “Hop count” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
In HSRP, which router actively forwards packets sent to the virtual IP address under normal operation?
Check answer and explanation
Correct answer: The Active router
Explanation
In HSRP, the Active router responds to ARP requests for the virtual IP using the virtual MAC address and forwards packets sent to that virtual gateway.
Common trap
A common trap is choosing “The Standby router” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
On a broadcast Ethernet link running OSPFv2, R1 (Priority 1, RID 1.1.1.1), R2 (Priority 1, RID 2.2.2.2), and R3 (Priority 1, RID 3.3.3.3) all come online at the same time. Which router becomes DR and which becomes BDR?
Check answer and explanation
Correct answer: R3 is DR; R2 is BDR
Explanation
With equal priority (1), the highest Router ID wins DR (R3 with 3.3.3.3) and the second-highest Router ID wins BDR (R2 with 2.2.2.2).
Common trap
A common trap is choosing “R3 is DR; R1 is BDR” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
On an Ethernet broadcast multi-access network running OSPFv2, four routers (R1, R2, R3, R4) form adjacencies. Which DR/BDR election behavior applies when a router is configured with 'ip ospf priority 0' on the segment?
Check answer and explanation
Correct answer: It does not participate in DR or BDR elections and remains a DROTHER
Explanation
Setting OSPF interface priority to 0 prevents that router from being elected Designated Router (DR) or Backup Designated Router (BDR), leaving it as a DROTHER.
Common trap
A common trap is choosing “It prevents all other routers from forming OSPF neighbor relationships” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
Two OSPF routers are connected over a point-to-point serial link in Area 0. What happens regarding DR and BDR election on this link?
Check answer and explanation
Correct answer: No DR or BDR is elected on a point-to-point network type
Explanation
Point-to-point OSPF network types do not elect a Designated Router (DR) or Backup Designated Router (BDR) because there are only two endpoints on the link.
Common trap
A common trap is choosing “OSPF requires a static neighbor statement before electing a DR” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
Two OSPF routers on an Ethernet segment have Hello interval 10s and Dead interval 40s on R1, while R2 has Hello interval 5s and Dead interval 20s. What happens?
Check answer and explanation
Correct answer: They fail to form an adjacency because Hello and Dead timers must match
Explanation
OSPF Hello and Dead intervals must match between neighbors on a link; mismatched timers prevent adjacency formation.
Common trap
A common trap is choosing “R2 automatically adjusts its Hello and Dead intervals to match R1's timers” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
What happens when a router receives a packet whose destination IP does not match any route in the routing table and no gateway of last resort exists?
Check answer and explanation
Correct answer: The router drops the packet and may send an ICMP Destination Unreachable message to the source
Explanation
If a router has no matching route and no default route/gateway of last resort, it discards the packet and typically sends an ICMP Destination Unreachable (host/network unreachable) back to the sender.
Common trap
A common trap is choosing “The router floods the packet out all interfaces” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
What is the default administrative distance of single-area OSPFv2 on a Cisco router?
Check answer and explanation
Correct answer: 110
Explanation
Administrative distance (AD) measures the trustworthiness of a routing source, with lower values preferred when multiple protocols advertise the same prefix. OSPFv2 has a default AD of 110, making it less trusted than e.g. EIGRP (90) or static (1) and more trusted than RIP (120) when those sources advertise the same prefix.
Common trap
A common trap is choosing “1” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
What is the purpose of First Hop Redundancy Protocols (FHRPs) such as HSRP, VRRP, or GLBP?
Check answer and explanation
Correct answer: To provide default gateway redundancy so hosts can reach remote networks if one gateway router fails
Explanation
FHRPs allow multiple routers to share a virtual IP and virtual MAC as a default gateway so end hosts maintain off-subnet connectivity if the active gateway fails.
Common trap
A common trap is choosing “To dynamically summarize external BGP routes into OSPF” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
What is the role of the 'gateway of last resort' in a router's routing table?
Check answer and explanation
Correct answer: It provides a fallback forwarding path when no more specific route matches a destination IP
Explanation
The gateway of last resort (typically derived from a default route such as 0.0.0.0/0) forwards packets whose destination does not match any more specific entry in the routing table.
Common trap
A common trap is choosing “It is used only for traffic destined to directly connected subnets” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
What is the standard OSPF multicast address used by all OSPF-speaking routers on a link?
Check answer and explanation
Correct answer: 224.0.0.5
Explanation
224.0.0.5 is the AllSPFRouters multicast address used for OSPF Hellos and general updates to all OSPF routers on the segment.
Common trap
A common trap is choosing “224.0.0.9” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
When two OSPFv2 neighbors remain stuck in the EXSTART or EXCHANGE state over an Ethernet link, what should an engineer check first?
Check answer and explanation
Correct answer: IP MTU mismatch on the connecting interfaces
Explanation
An MTU mismatch between OSPF neighbors commonly causes Database Description (DBD) packets to fail negotiation, stalling the adjacency in EXSTART or EXCHANGE.
Common trap
A common trap is choosing “A static route with AD 250” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
Which command configures a floating static route for 172.16.10.0/24 via 192.168.12.2 that remains inactive while an OSPF (AD 110) route to the same prefix is present?
Check answer and explanation
Correct answer: ip route 172.16.10.0 255.255.255.0 192.168.12.2 125
Explanation
Setting an administrative distance of 125 (greater than OSPF's 110) keeps the static route out of the routing table until the OSPF route is withdrawn.
Common trap
A common trap is choosing “ip route 172.16.10.0 255.255.255.0 192.168.12.2 110” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
Which command configures an IPv6 static route for network 2001:DB8:100::/48 using next-hop address 2001:DB8:1::2?
Check answer and explanation
Correct answer: ipv6 route 2001:DB8:100::/48 2001:DB8:1::2
Explanation
The global configuration command ipv6 route <prefix/length> <next-hop> (for example, ipv6 route 2001:DB8:100::/48 2001:DB8:1::2) installs a static IPv6 route.
Common trap
A common trap is choosing “ipv6 route 2001:DB8:1::2 2001:DB8:100::/48” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
Which command displays active OSPF neighbors, their priority, state, and dead timer on a Cisco router?
Check answer and explanation
Correct answer: show ip ospf neighbor
Explanation
show ip ospf neighbor lists OSPF neighbor IDs, priorities, adjacency states (such as FULL or 2WAY), dead timers, and local interfaces.
Common trap
A common trap is choosing “show ip protocols” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
Which condition prevents two OSPFv2 routers on the same subnet from forming a neighbor adjacency?
Check answer and explanation
Correct answer: Different Hello or Dead timer intervals
Explanation
OSPF routers must agree on Hello and Dead intervals (as well as subnet mask, Area ID, and authentication settings) to form a valid neighbor adjacency.
Common trap
A common trap is choosing “Different line vty transport input settings” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
Which IPv6 host route prefix length matches a single specific IPv6 address?
Check answer and explanation
Correct answer: /128
Explanation
An IPv6 address is 128 bits long, so a /128 prefix matches a single exact host address.
Common trap
A common trap is choosing “/64” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
Which routing table code typically denotes an OSPF-learned route in Cisco IOS output?
Check answer and explanation
Correct answer: O
Explanation
In a Cisco IOS IP routing table, the code 'O' identifies routes dynamically learned via Open Shortest Path First (OSPF) rather than directly connected ('C'), local ('L'), or static ('S') routes. Knowing these codes lets you confirm how a prefix was installed.
Common trap
A common trap is choosing “S” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
Which statement about IPv6 default routing is accurate?
Check answer and explanation
Correct answer: IPv6 uses ::/0 as its default route prefix
Explanation
In IPv6, ::/0 is the default route prefix matching all IPv6 destinations when no more specific route is present.
Common trap
A common trap is choosing “IPv6 default routes must always point to a public global address” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
Which wildcard mask matches host 10.1.5.25 specifically in an OSPF network statement or ACL?
Check answer and explanation
Correct answer: 0.0.0.0
Explanation
In wildcard masks, 0 means 'must match' and 1 means 'ignore'; 0.0.0.0 requires an exact match on all 32 bits of a single host address.
Common trap
A common trap is choosing “0.0.255.255” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.
CN.III · CCNA practice question
Why is a floating static route configured with an administrative distance higher than the dynamic routing protocol it backs up?
Check answer and explanation
Correct answer: So the dynamic route stays active normally and the static route installs only if the dynamic route is lost
Explanation
A higher AD makes the floating static route less preferred than the primary dynamic route, so it enters the routing table only as a backup when the primary route disappears.
Common trap
A common trap is choosing “Because administrative distance must always exceed 200 for static routes” instead of the answer required by the cited rule.
Source: CCNA exam topics — IP Connectivity
Checked against the cited text on 2026-12-01.