Skip to content
Getting Digital

Routing

Also: router, routing table, default gateway, static route, dynamic routing, OSPF, BGP

Routing is how packets move between networks: each router holds a table of known destinations and the next hop toward each, learned by configuration or by a protocol, and forwards each packet to the most specific match.

Our take. Routing is deterministic and engineers treat it as mysterious because they never look at the table. Every routing problem is answered by the same two commands on the machines along the path: show me the table, show me the path this packet takes. The exams reward that habit and so does every outage.

A host that wants to reach an address outside its own subnet sends the packet to its default gateway, a router, and stops thinking. The router looks at the destination address and consults its table, a list of network prefixes each paired with a next hop or an interface. It picks the most specific entry that matches, the longest prefix, and forwards the packet there. The next router does the same. Nobody plans the whole path; each router makes one local decision, and the path is the sum of them. That is why a routing problem is found by walking the path and asking each router what it would do with this packet, rather than by reasoning about the network as a whole.

How the table is filled

Static routes are typed in by an administrator and never change unless a person changes them; they are right for small networks and for the default route toward the internet. Dynamic routing protocols let routers tell each other what they can reach and recompute paths when a link fails. Inside an organisation that is usually OSPF, which floods link state and computes shortest paths; between organisations on the internet it is BGP, which exchanges reachability and policy rather than distance, and whose misconfigurations make the news. Cloud networks hide most of this behind route tables you edit in a console, which are static routes with a nicer interface.

Two properties decide most behaviour. The longest match wins, so a specific route to one small subnet overrides a broad route that also covers it, which is how traffic is steered and how a stray specific route hijacks it. And the default route, written as a prefix of length zero, matches everything not matched by anything else, which is why a missing default route means the internet is unreachable while everything local works. The certifications examine both: the vendor-neutral paper asks which route a packet takes given a table; the Cisco exams ask you to configure and troubleshoot the protocols that build it; the cloud exams ask which route table entry a subnet needs to reach a gateway.

In practice

Users in one office can reach the internet and the head-office servers but not the new branch office. Walking the path, the office router's table has a default route to the internet and a specific route to head office, and nothing for the branch's subnet, so branch traffic follows the default route out to the internet, where a public router discards a packet addressed to a private range. The fix is one route on the office router pointing the branch's prefix at the VPN tunnel. The symptom looked like a firewall or a VPN fault; the table said, in one line, that the router had never been told the branch existed.

Often confused with

Switching
Switches forward frames within one network by hardware address and learn who is where by listening. Routers forward packets between networks by IP address using a table. Layer two against layer three, and most devices sold as routers do both.
Subnetting
Subnetting creates the network boundaries; routing crosses them. A routing table is, in effect, a list of subnets and where to send traffic for each.
NAT (Network Address Translation)
Translation rewrites addresses at a network's edge so private ones can reach the internet. Routing decides where a packet goes; translation changes what the packet says about where it came from, and the two are usually done by the same box.

Key takeaways

  • Each router makes one local decision from its table; the path is the sum of them.
  • Longest prefix wins; the default route catches everything else.
  • Every routing problem is solved by showing the table and tracing the path.

Certifications that test this

Vendor exams whose syllabus covers this concept — facts, cost and a preparation path on each page.

More courses from these shelves

A rotating selection from the course directory, drawn from the subcategories where this concept is taught rather than picked for it. Details, price and the provider link are on the course page.

Networking Full Course & Network + certification

This Class of Full Networking Fundamentals, will be fully illustrated with video lessons and sample to which it will ma…

Udemy

Microsoft Dynamics 365 Business Central- Manufacturing

Learn Every thing about getting started with Manufacturing in Microsoft Dynamics 365 Business Central.Dynamics 365 Busi…

Udemy

The Ultimate AWS Networking Training Course: All In One

Unlock the Future of Cloud: Master AWS Networking and Propel Your Career Forward!In a world powered by the cloud, Amazo…

Udemy

Linux & Networking: Real-World Scenarios - Practice Tests

Networking is a critical skill for any Linux administrator, security expert, or DevOps professional. This course provid…

Udemy

The Basics of DAO (Autonomous Organization) in Blockchain

You might have heard about Blockchain & Other Cryptocurrencies. Do you know Blockchain can run a completely automated d…

Udemy

Master Full stack .NET Architecture using C#

.NET is a modern, innovative, open source development platform and developers love it. NET best suits businesses that l…

Udemy

FAQ

What is a default gateway?
The router a host sends everything to that is not on its own subnet. If a machine can reach its neighbours but nothing beyond them, the default gateway is missing, wrong or down, and that is the first thing to check.
Static or dynamic routing?
Static for small networks and for the default route; dynamic wherever there is more than one path or the topology changes, so routers can reroute around a failure without a person typing. Most real networks use both.
Why do BGP mistakes take down large parts of the internet?
Because BGP is trust between organisations: a network announcing that it can reach a prefix is believed, and if it announces a prefix it does not own, or announces too much, traffic follows the announcement. The protocol is being hardened with cryptographic validation, slowly.

Sources

The primary text this definition rests on. Read it before you trust ours.

Last reviewed 13 September 2026 · Getting Digital