Skip to content
FALCON CORETECHNOLOGIES

// Lesson 29 of 49 · IP routing

Static and default routes

Next-hop, exit-interface and fully specified static routes, default routes, floating statics and host routes, for IPv4 and IPv6.
2 min read#static-routing#default-route

A static route is a route you type in. It never changes on its own, uses no CPU or bandwidth for updates, and is completely predictable — ideal for small networks, stub sites and default routes towards the internet.

Syntax

ip route <destination network> <mask> {next-hop-ip | exit-interface [next-hop-ip]} [administrative-distance]

Three styles

! 1. Next hop (most common)
R1(config)# ip route 192.168.30.0 255.255.255.0 10.1.12.2

! 2. Exit interface only — only sensible on point-to-point links
R1(config)# ip route 192.168.30.0 255.255.255.0 Serial0/1/0

! 3. Fully specified — exit interface and next hop (best on Ethernet)
R1(config)# ip route 192.168.30.0 255.255.255.0 GigabitEthernet0/1 10.1.12.2

On Ethernet, avoid exit-interface-only routes: the router would ARP for every destination address and rely on the neighbour answering for them (proxy ARP).

Static routes need a route back too — on the remote router — or replies will not return.

Default route

R1(config)# ip route 0.0.0.0 0.0.0.0 203.0.113.1

Shown as S* and "Gateway of last resort" in show ip route.

Floating static route (backup)

Give a static route a higher administrative distance than the primary route so it is installed only if the primary disappears:

! Primary path learned by OSPF (AD 110). Backup via the 4G router:
R1(config)# ip route 0.0.0.0 0.0.0.0 192.168.99.1 200

Host route

A /32 route to a single address:

R1(config)# ip route 192.168.30.10 255.255.255.255 10.1.13.3

IPv6 equivalents

R1(config)# ipv6 route 2001:db8:acad:30::/64 2001:db8:acad:12::2
R1(config)# ipv6 route ::/0 GigabitEthernet0/1 fe80::2
R1(config)# ipv6 route ::/0 2001:db8:acad:99::1 200        ! floating

Verify and troubleshoot

R1# show ip route static
R1# show ip route 192.168.30.10
R1# traceroute 192.168.30.10

A static route is removed from the routing table if its exit interface goes down or its next hop becomes unreachable — then a floating static can take over.

Key points

  • ip route network mask next-hop — and add the return route on the other side.
  • Default route: 0.0.0.0 0.0.0.0 (IPv4) or ::/0 (IPv6).
  • Floating static = static with a higher AD, used as backup.
  • On Ethernet, prefer next-hop or fully specified routes.

Sign in to save your lesson progress across devices. You can read every published lesson without an account.