Static IPv6 Routing
Just like in IPv4, static routes are used for network or host targeting and establishing a "gateway of last resort." In addition, backup routes (floating static routes) with a greater administrative distance than the primary route can also be used to achieve redundancy.
IPv6 static route configuration is similar to IPv4 static route configuration. Next-hop addresses or exit interfaces are defined in both cases, with a preference for next-hop addresses. In IPv6, the next hop can be link-local or global, with link-local requiring an interface as an extra parameter.
To configure a static IPv6 route on a Cisco router, use the “ipv6 route ipv6-network/ipv6-mask [exit_interface] ipv6-next-hop” command in global configuration mode. The following example provides two methods for configuring a static IPv6 route pointing to the same network, using a link-local address and a global address as the next hop.
The first static route to the 2001:db8:0:1::/32 network uses a link-local address as the next hop, denoted by the fe80 prefix. Because a link-local address can be used on any interface, an exit interface must be included as the next hop, GigabitEthernet0/1. The second static route points to the global IPv6 address 2001:db8:0:2::1 as the next hop.
To configure a static default IPv6 route, you need to use the same format, with the difference of the destination network being identified as “::/0”. For example, to create a static default IPv6 route using the 2001:db8:0:2::1 IPv6 address as the next hop, you should use the “ipv6 route ::/0 2001:db8:0:2::1” command.
NOTE: To verify IPv6 configuration, such as IPv6 addresses on interfaces, the IPv6 routing table, or other IPv6-related information, use the same sho commands (as for IPv4), with the exception of using "IPv6" instead of only "IP" in the commands, for instance, show ipv6 route instead of show ip route.