2.15 Static Routes

IPv6 Static Route Command

IPv6 Static Routes can be configured very similarly to IPv4 Static Routes as per below:

IPv6 Static Route Configuration Command

R1(config)# ipv6 route ipv6-prefix/prefix-length { [ipv6-address] | [exit-interface] [ipv6-address] } [distance]

[NOTE] As mentioned earlier, most of the parameters are identical or very similar to the IPv4 ones.

Parameters explained in detail:

ipv6-prefix
This identifies the destination IPv6 Network Address of the Remote Network to enlist in the Routing Table.
/prefix-length
This identifies the prefix length of the Remote Network.
ipv6-address
This identifies the next-hop Router IPv6 address.

Typically used with broadcast networks (i.e., Ethernet).

This could create a recursive static route where the router performs an additional lookup to find the exit interface.
exit-interface
This identifies the exit interface to forward packets.

Creates a directly connected static route.

Typically used in a point-to-point configuration.
exit-interface ipv6-address
This is known as a fully specified static route since it specifies both the Exit Interface and a Next-Hop IPv6 address.
distance
This is an optional parameter that can be used to assign an administrative distance value between 1 and 255.

Usually used to configure a floating static route by setting an administrative distance that is higher than a dynamically learned route.
IPv6 Static Route Complete Configuration Example
(Next-Hop Router IP Address)
R1> enable
R1# Configure Terminal
R1(config)#
R1(config)# ip route 2001:db8:acad:2::/64 2001:db8:acad:2::1/64 121
IPv6 Static Route Complete Configuration Example
(Exit Interface)
R1> enable
R1# Configure Terminal
R1(config)#
R1(config)# ip route 2001:db8:acad:3::/64 fastEthernet0/0 121
IPv6 Static Route Complete Configuration Example
(Fully Specified Static Route)
R1> enable
R1# Configure Terminal
R1(config)#
R1(config)# ip route 2001:db8:acad:4::/64 fastEthernet0/1 2001:db8:acad:4::1/64 121

[NOTE] It’s of utmost importance to keep in mind that the “ipv6 unicast-routing” global configuration command must be enabled for the Router to be able to forward IPv6 packets.

[NOTE] Static Routes works just as well within a Dual-Stack Topology