StudyToCert

All certifications / Network+ / Lessons

CompTIA Network+ N10-009 · Domain 2: Network implementation

Static vs dynamic routing; OSPF, EIGRP and BGP; route selection (longest prefix, administrative distance, metrics)

▶ Watch the overview video

Last reviewed October 6, 2026 · Leer en español

Explain it simpler

A router is like a mail sorter. Every packet has a destination address, and the router looks at a list called the routing table to decide which door to send it out of. Entries get onto the list three ways: networks plugged directly into the router, routes a person types in by hand (static), and routes the router learns by chatting with other routers (dynamic). When several entries could work, the router follows simple rules. First it picks the most specific match, the way a letter to "12 Oak Street, Apartment 4" goes to that apartment rather than just the street. If two entries are equally specific, it trusts the source it considers most reliable. If that still ties, it picks the cheapest path.

It is 2 a.m. and your phone buzzes. Priya, the on-call engineer at Lakeside Freight, says the warehouse in Dayton can reach the internet but not the new inventory server at headquarters. She has checked the cables and the firewall. On the core router she sees two routes that both seem to cover the server's subnet: one learned through OSPF and one static route someone added last month during a migration. Traffic is clearly following one of them into a dead end. Which route is the router actually using, and why did it pick that one over the other?

Every routing decision starts with the routing table. A router forwards each packet by looking up the destination IP address in that table, and routes get into it in three ways: directly connected networks, which come from the router's own configured and active interfaces; static routes that an administrator types in; and dynamic routes learned from routing protocols. A default route, written 0.0.0.0/0 in IPv4 or ::/0 in IPv6, matches anything that is not otherwise known and is often called the gateway of last resort. If no route matches and there is no default, the router drops the packet and sends back an ICMP (Internet Control Message Protocol) Destination Unreachable message, which is what a user sees as "destination net unreachable" in ping output.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 8 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study Network+ for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the Network+ study plan