Module 3.2 55 minIntermediate

Routes you write by hand — static, default and backup

Static routes give predictable behaviour with zero overhead. This chapter covers next-hop and exit-interface forms, default routes, host routes (/32), floating statics, and the IPv6 versions of all of them.

Course plan — preview

What you'll learn

  • Configure a next-hop static route and an exit-interface static route.
  • Configure a default route and an IPv6 default route.
  • Configure a host route (/32 or /128).
  • Use a floating static route as a backup to a dynamic protocol.

Next-hop vs exit-interface forms

Next-hop form is preferred on multi-access links because the router will ARP for the next-hop's MAC. Exit-interface form is fine on point-to-point links where there's only one possible neighbor.

R1(config)# ip route 10.2.0.0 255.255.255.0 10.99.0.2
R1(config)# ip route 10.3.0.0 255.255.255.0 Serial0/0/1
R1(config)# ip route 0.0.0.0 0.0.0.0 10.99.0.2          ! default route
R1(config)# ipv6 route ::/0 2001:db8::1                 ! IPv6 default

Default routes — the lifeline to 'everything else'

0.0.0.0/0 is the catch-all default route. Any destination not matched by a more specific route falls through to it. Every router connecting to an upstream provider needs one.

Endpoints don't need a routing table — they only need one default gateway, which is the router IP that owns their subnet.

14 more sections in this chapter, plus a 4-question quiz and a hands-on lab.

Course plan

Modules 2–8 are part of the Course & Lab Pass and All-Access Max — start with a free account

You can see the title, summary, learning objectives and the opening sections. The rest of this chapter, like all of modules 2–8, comes with the Course & Lab Pass and All-Access Max. A free account opens Module 1: How Networks Work end-to-end and saves your labs — start there, no card required.

  • Read every chapter in Module 1 — How Networks Work
  • Save labs of up to 5 devices
  • Save up to 3 topologies
  • See the full course syllabus + chapter titles

Free account · no card required · compare plans any time

Build it step by step