A branch router with two links to headquarters. Write network, default, host and floating static routes for IPv4 and IPv6, predict which route wins, then drill the routing table.
3.3 Configure and verify IPv4 and IPv6 static routing
3.3.a Default route
3.3.b Network route
3.3.c Host route
3.3.d Floating static
Live network · static routes · simulated
Call it first. This setup loads on the network as soon as you answer.
.1Link up
.1Link down
×Shut down
Drill · simulated output
The green cable carries traffic right now, and its chip says what for. Click a router to add and remove routes, a cable to unplug it, a host to ping. Inspect shows R1's installed routes and a button to fail the primary link.
Simulated: the routers, hosts, addresses (10.x.x.x private space and the 2001:db8::/32 documentation prefix) and console output are Loopback's simulation of IOS routers. R2 already has a default route to R3, and R3 knows the way back to 10.0.0.0/8.
02Recall sheet
The whole topic on one sheet.
The numbers, orders and commands the network runs on. Cover a column and say it before you look.
The four kinds
IPv4
IPv6
Default
ip route 0.0.0.0 0.0.0.0 10.0.12.2
ipv6 route ::/0 2001:db8:12::2
Network
ip route 10.2.2.0 255.255.255.0 10.0.12.2
ipv6 route 2001:db8:2:2::/64 2001:db8:12::2
Host
ip route 10.2.2.100 255.255.255.255 10.0.21.2
ipv6 route 2001:db8:2:2::100/128 2001:db8:21::2
Floating
ip route 0.0.0.0 0.0.0.0 10.0.21.2 5
ipv6 route ::/0 2001:db8:21::2 5
Picking a route
Longest matching prefix wins, always.
Same prefix from two sources: lowest administrative distance goes in the table.
Same prefix, same AD, same metric: both are installed and share the load.
Administrative distance
Connected
0
Static
1
eBGP
20
EIGRP
90
OSPF
110
RIP
120
A floating static uses a higher number than the route it backs up, so it stays out of the table until that route is gone.
When it installs
A next-hop route needs its next hop reachable. If not, IOS keeps the command but leaves the route out.
An exit-interface route needs that interface up.
When the interface toward the next hop goes down, the route is withdrawn and a floating one can take over.
Routing is one-way: every router on the path, and on the way back, needs a route.
IPv6 differences
ipv6 unicast-routing first, or the router forwards no IPv6 at all.
Prefix and length in one: 2001:db8:2:2::/64.
A link-local next hop needs the exit interface too: ipv6 route ::/0 gi0/1 fe80::2.
Reading the table
S*
Static, candidate default
[1/0]
[administrative distance / metric]
L
The router's own address, as a /32 or /128
Gateway of last resort
The installed default route's next hop
Commands
IPv4
ip route 10.2.2.0 255.255.255.0 10.0.12.2
ip route 0.0.0.0 0.0.0.0 gi0/1 10.0.12.2
ip route 0.0.0.0 0.0.0.0 10.0.21.2 5
no ip route 10.2.2.0 255.255.255.0 10.0.12.2