Configuring IPv6 Static Routing on Cisco Routers
To configure an IPv6 static route in Cisco IOS, use the command 'ipv6 route [prefix/length] [next-hop-address or exit-interface]'. Remember to enable 'ipv6 unicast-routing' globally first.
Enabling IPv6 Routing
Before a Cisco router will forward IPv6 traffic, you must explicitly enable IPv6 routing globally. If you forget this step, the router acts only as an IPv6 host.
Command: ``` Router(config)# ipv6 unicast-routing ``` This simple command is one of the most common "gotchas" in CCNA labs.
Basic IPv6 Static Routes
The syntax for IPv6 static routing is nearly identical to IPv4, replacing `ip route` with `ipv6 route`.
To route to network `2001:db8:acad:2::/64` via the next-hop IP `2001:db8:acad:1::2`: ``` Router(config)# ipv6 route 2001:db8:acad:2::/64 2001:db8:acad:1::2 ``` Alternatively, you can use an exit interface: ``` Router(config)# ipv6 route 2001:db8:acad:2::/64 GigabitEthernet0/0 ```
Fully Specified Static Routes
If you are using a Link-Local Address (LLA) as your next hop, you **must** use a fully specified static route. This includes both the exit interface AND the next-hop LLA. Because LLAs are unique only on a specific link, the router needs to know which interface to use to reach that LLA.
Example: ``` Router(config)# ipv6 route 2001:db8:acad:2::/64 GigabitEthernet0/0 fe80::2 ``` An IPv6 default route is configured using the prefix `::/0`.
❓ Frequently Asked Questions
What command enables IPv6 routing on a Cisco router?
The global configuration command 'ipv6 unicast-routing' enables IPv6 routing.
What is the IPv6 equivalent of the IPv4 default route (0.0.0.0 0.0.0.0)?
The IPv6 default route is represented by the prefix ::/0.
Why do you need a fully specified static route when using a Link-Local next-hop?
Link-Local addresses are not globally unique. The router needs the exit interface to know which specific link to use to reach that Link-Local address.