The Cisco IOS ipv6 route command creates a static IPv6 route. It maps a destination prefix to a next-hop IPv6 address, an exit interface, or both. Use IPv6 slash notation, such as /64, for the destination prefix. section 21.3.1 section 20.6
Choose the route form according to the forwarding information available:
- Recursive static route: ipv6 route destination-prefix next-hop. The router first finds the next hop, then looks up the connected interface for that next hop. section 21.3.1
- Directly connected static route: ipv6 route destination-prefix exit-interface. This form does not work on Ethernet interfaces because IPv6 has no proxy-NDP equivalent. section 21.4
- Fully specified static route: ipv6 route destination-prefix exit-interface next-hop. This identifies both the forwarding interface and the next-hop address. section 21.3.1
Configure and verify a recursive route
R2(config)# ipv6 route 2001:db8:3::/64 2001:db8:23::2 R2(config)# do show ipv6 route static S 2001:DB8:3::/64 [1/0] via 2001:DB8:23::2 The route points toward the remote network through the specified next hop. Use show ipv6 route connected to confirm that the next hop is reachable through a connected interface. section 21.3.1
Use a fully specified route
R3(config)# ipv6 route 2001:db8:1::/64 g0/0 2001:db8:23::1 A route using /128 targets one IPv6 address and is therefore a host route. A route using ::/0 is a default route; adding a higher distance can make it a floating backup route. section 21.3.4
R2(config)# ipv6 route 2001:db8:1::/64 2001:db8:12::1
R2(config)# ipv6 route 2001:db8:3::/64 2001:db8:23::2
R2(config)# do show ipv6 route static
. . .
S 2001:DB8:1::/64 [1/0]
via 2001:DB8:12::1
S 2001:DB8:3::/64 [1/0]
via 2001:DB8:23::2
Inspect the IOS configuration and routing-table output for recursive IPv6 static routes between remote networks. section 21.3.1
