IPv6 Static Routing
Once hosts have IPv6 addresses, routers must advertise the paths between them. IPv6 static routes mirror IPv4 static routes but with a slash prefix instead of a mask, and a next hop that is often a link-local address. Get the four flavours straight and the command stops being scary.
- Enable IPv6 routing with ipv6 unicast-routing and address an interface with ipv6 address .../64 or ipv6 enable.
- Configure a static IPv6 route with the ipv6 route command.
- Distinguish the directly connected, recursive next-hop, and fully specified static route forms.
- Configure the IPv6 default route ::/0.
- Read IPv6 routes and codes in show ipv6 route.
Enabling IPv6 routing
IPv6 is disabled for routing by default on Cisco IOS. Before a router will forward IPv6 packets or send Router Advertisements, you must enable it globally with one command:
Router(config)# ipv6 unicast-routing
Without this command an interface can still have an IPv6 address and answer pings locally, but the
router will not route between IPv6 networks and will not act as a default gateway for IPv6 hosts. A
classic exam trap is a fully addressed topology where nothing routes because
ipv6 unicast-routing was never entered — and there is no equivalent error message to
warn you.
ipv6 unicast-routing is global and off by default. If IPv6 hosts cannot
reach other subnets and the routing table is empty of dynamic routes, check this command first.
Addressing an interface: /64 and ipv6 enable
An IPv6 interface can be configured in three useful ways:
- Static global address:
ipv6 address 2001:db8:acad:1::1/64. This sets the prefix and adds a link-local address automatically. - Autoconfigured global address:
ipv6 address autoconfig(host side) or EUI-64 withipv6 address 2001:db8:acad:1::/64 eui-64. - Link-local only:
ipv6 enable. This creates just theFE80::address, which is all that is needed on a transit link that uses link-local next hops.
! enable routing, then address the link
R1(config)# ipv6 unicast-routing
R1(config)# interface GigabitEthernet0/0
R1(config-if)# ipv6 address 2001:db8:acad:1::1/64
R1(config-if)# no shutdown
! a transit interface may need only a link-local address
R1(config-if)# ipv6 enable
Two connected routes appear automatically for each configured address: a C route for the
prefix and an L local /128 host route for the interface address itself. Just as in IPv4,
the router already knows how to reach its own directly connected networks without a static route.
The ipv6 route command
The syntax is:
Router(config)# ipv6 route <prefix/length> {<next-hop> | <exit-interface> [<next-hop>]}
! example: reach the remote LAN via the neighbour
R1(config)# ipv6 route 2001:db8:acad:2::/64 2001:db8:acad:1::2
Compare this with IPv4. The destination is written as prefix/length (never a dotted mask), and the next hop is an IPv6 address. As in IPv4 you can point at an exit interface instead of a next hop, or provide both. The next hop is frequently the neighbour's link-local address, which is more robust because it does not change if the neighbour's global prefix changes.
FE80:: and is not
unique across the router. You must therefore also specify the exit interface, e.g.
ipv6 route 2001:db8:acad:2::/64 GigabitEthernet0/0 fe80::2. IOS will reject a
link-local next hop with no exit interface.
The four static route forms
IPv6 static routes come in the same families as IPv4, plus the link-local nuance:
| Type | Command form | Notes |
|---|---|---|
| Directly connected (exit interface) | ipv6 route 2001:db8:acad:2::/64 Gi0/0 | Best on point-to-point links; avoids a next-hop lookup. |
| Recursive (next hop only) | ipv6 route 2001:db8:acad:2::/64 2001:db8:acad:1::2 | Preferred on Ethernet; the router resolves the next hop. |
| Fully specified | ipv6 route 2001:db8:acad:2::/64 Gi0/0 2001:db8:acad:1::2 | Exit interface plus next hop; unambiguous and preferred for link-local hops. |
| Floating static | ipv6 route 2001:db8:acad:2::/64 2001:db8:acad:3::2 200 | Trailing number is the administrative distance; a higher value waits as backup. |
As in IPv4, a static route’s default administrative distance is 1, so it beats any dynamic protocol for the same prefix. The floating form deliberately raises the AD (for example to 200) so the route stays out of the table while a dynamic route exists and takes over only if that route disappears.
The IPv6 default route (::/0)
The IPv6 default route is the prefix ::/0 — a prefix length of zero matching every address. It is the IPv6 equivalent of 0.0.0.0/0:
! send everything unknown to the ISP router
R1(config)# ipv6 route ::/0 2001:db8:acad:1::2
! or via the neighbour's link-local address on the exit interface
R1(config)# ipv6 route ::/0 GigabitEthernet0/0 fe80::2
The default route appears in the table with the code S*. Because longest-prefix match
rules, it is chosen only when no more specific route exists. It is the standard way to point an edge
router at its ISP, and it is used with a single command where an IPv4 design would write
ip route 0.0.0.0 0.0.0.0.
Reading show ipv6 route
The IPv6 routing table is displayed with the familiar route codes. Learn the ones you will see most:
| Code | Meaning |
|---|---|
| C | Connected — a directly attached network. |
| L | Local — the /128 address configured on the interface itself. |
| S | Static route. |
| S* | Static default route (::/0). |
| O | OSPF (OSPFv3 for IPv6). |
| ND | Neighbour discovery default (a device that learned a default via an RA). |
R1# show ipv6 route
C 2001:DB8:ACAD:1::/64 [0/0]
via GigabitEthernet0/0, directly connected
L 2001:DB8:ACAD:1::1/128 [0/0]
via GigabitEthernet0/0, receive
S 2001:DB8:ACAD:2::/64 [1/0]
via 2001:DB8:ACAD:1::2
S* ::/0 [1/0]
via 2001:DB8:ACAD:1::2
The bracketed pair is [administrative distance/metric], exactly as in IPv4. A static
route shows [1/0] — AD 1, no protocol metric. The via line tells you the
next hop; when the route is directly connected it reads directly connected instead. Use
show ipv6 route static to filter to static entries only.
ipv6 route 2001:db8:acad:2::/64 <next-hop>. (2) A link-local
next hop requires the exit interface to disambiguate it. A default route is
ipv6 route ::/0 <next-hop>.
The vocabulary you need
Every term below appears in the lesson text above. Select one to read its definition, then use the quiz at the end to check what stuck.
Review
Check what you have learned with these review questions.
Sources & references
- Cisco. CCNA (200-301) Exam Topics. cisco.com.
- IETF. Request for Comments (RFCs). rfc-editor.org.
- IANA. Internet Assigned Numbers Authority registries. iana.org.
Target exams: CCNA 200-301 v1.1 · CyberOps Associate 200-201. Last content verification: 2026-10-11.