IPv6 Static Routing
IPv6 routing works the same as IPv4 routing.
However, the two processes are separate on the router, and the two routing tables are separate as well.
IPv4 routing is enabled by default.
IPv6 routing is disabled by default, and must be enabled with:
ipv6 unicast-routingIf IPv6 routing is disabled, the router will be able to send and receive IPv6 traffic, but will not route IPv6 traffic (=will not forward it between networks).


A connected network route is automatically added for each connected network.
A local host route is automatically added for each address configured on the router.
Commands

ipv6 router <destination/prefix-length> {<next-hop>|<exit-interface [next-hop]>} [<ad>]Directly attached static route
Only the exit interface is specified.
ipv6 route <destination/prefix-length> <exit-interface>R1(config)# ipv6 route 2001:db8:0:3::/64 g0/0In IPv6, you can't use directly attached static routes if the interface is an Ethernet interface. So this command wouldn't work.
Recursive static route
Only the next hop is specified.
ipv6 route <destination/prefix-length> <next-hop>R1(config)# ipv6 route 2001:db8:0:3::/64 2001:db8:0:12::2Fully specified static route
Both the exit interface and next hop are specified.
ipv6 route <destination/prefix-length> <exit-interface> <next-hop>R1(config)# ipv6 route 2001:db8:0:3::/64 g0/0 2001:db8:0:12::2Network route
R1(config)# ipv6 route 2001:db8:0:3::/64 2001:db8:0:12::2Host route
R2(config)# ipv6 route 2001:db8:0:1::100/128 2001:db8:0:12::1R2(config)# ipv6 route 2001:db8:0:1::100/128 2001:db8:0:23::2Default route
R2(config)# ipv6 route ::0/0 2001:db8:0:23::1Floating Static
Using the ad to set floating static.
If the main route to the destination was learned via OSPF, for example, you'll need to set the static route's AD to higher than 110, because OSPF's AD is 110.
Link-local Next-Hops

Last updated