Loopback Cert Guide

Lab 3.3Static routes

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
  • Link up
  • Link down
  • Shut down

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

IPv4IPv6
Defaultip route 0.0.0.0 0.0.0.0 10.0.12.2ipv6 route ::/0 2001:db8:12::2
Networkip route 10.2.2.0 255.255.255.0 10.0.12.2ipv6 route 2001:db8:2:2::/64 2001:db8:12::2
Hostip route 10.2.2.100 255.255.255.255 10.0.21.2ipv6 route 2001:db8:2:2::100/128 2001:db8:21::2
Floatingip route 0.0.0.0 0.0.0.0 10.0.21.2 5ipv6 route ::/0 2001:db8:21::2 5

Picking a route

  1. Longest matching prefix wins, always.
  2. Same prefix from two sources: lowest administrative distance goes in the table.
  3. Same prefix, same AD, same metric: both are installed and share the load.

Administrative distance

Connected0
Static1
eBGP20
EIGRP90
OSPF110
RIP120

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

IPv6

ipv6 unicast-routing
ipv6 route ::/0 2001:db8:12::2
ipv6 route 2001:db8:1:1::/64 2001:db8:21::1 5

Verify

show ip route static
show ip route 10.2.2.100
show ipv6 route
show ipv6 interface brief
traceroute 10.3.3.10

All of these work in the network's consoles, along with ?, Tab, do and ping.

Jump to a page

  1. Gi0/1HomeconnectedHow the exam works and a sample of every station
  2. Gi0/2Practice Testsconnected18 tests by domain, every answer explained
  3. Gi0/3Flashcardsconnected401 cards on every objective, plus your own
  4. Gi0/4CLI LabconnectedCommand drills and config tasks, checked like IOS
  5. Gi0/5Concept LabsconnectedYou're in Lab 3.3 Static routes. All labs.
  6. Gi0/6Study PlanconnectedAll 53 objectives, graded from your progress