IPv6 routing table and static routes: link-local and global next hop, default route ::/0
Sign in to read this lesson
A router configured for IPv6 builds a routing table just like in IPv4. In show ipv6 route there is a C entry for every connected prefix and a /128 L entry for each of the router's own addresses; link-local addresses never appear in the table. Static routes are configured with the ipv6 route command. If the next hop is a link-local address, the exit interface must be given too (fully specified). With a global next hop no interface is needed (recursive). The default route is ::/0, the equivalent of 0.0.0.0/0. Verify with show ipv6 route static, ping and traceroute.
What you will learn
- A router needs
ipv6 unicast-routingto forward IPv6 packets.show ipv6 route: C = connected prefix, L = the router's own interface address (/128). Link-local addresses never appear in the routing table. - Static route:
ipv6 route <prefix/length> [interface] <next-hop>. Its AD is 1: the table showsS ... [1/0]. - If the next hop is a link-local address, the exit interface is mandatory, because a link-local address is only unique on its own link:
ipv6 route 2001:DB8:AA::2/128 Gi0/0 FE80::E4E:7AFF:FE30:2(fully specified). - If the next hop is a global address, no interface is needed:
ipv6 route 2001:DB8:AA::2/128 2001:DB8:AB::2(recursive). - Default route:
ipv6 route ::/0 <next-hop>.::is all zeros and/0is a prefix length of 0: the same as 0.0.0.0/0 in IPv4. Verify withshow ipv6 route static,ping,traceroute.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.