Use it to add or check an IPv6 static or default route.
IPv6 · Static Routing
IPv6 static routing works like IPv4: ipv6 route <prefix>/<length> <next hop | interface> [distance]. A next hop that is a link-local address must be given together with the outgoing interface.
1. ipv6 unicast-routing configured?
2. show ipv6 route static — installed?
3. Not installed → next hop unreachable, or link-local given without an interface.
4. show ipv6 neighbors — next hop REACH or STALE?
5. show ipv6 cef <prefix> — forwarding agrees.
ipv6 unicast-routing on → route configured (link-local next hop with interface) → next hop reachable and resolved by ND → route installed → CEF forwards
Context & applicabilityCommon mistakes · platform/version boundaries
- Treating configured
ipv6 routetext as evidence the route is installed. - Forgetting that
::/0loses to every longer matching installed prefix. - Using a link-local next hop without understanding interface scope.
- Treating a RIB entry as evidence of Neighbor Discovery/CEF adjacency or return path.
- Choosing a floating-static AD without comparing it to the actual primary route source.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Layered verification Verify boundary
Step 2 Branching troubleshooting Narrow the fault
Concrete boundaries: link/interface → RA/ND reachability → address/prefix/source selection → neighbor cache → route selection → FIB adjacency → policy/security → original IPv6 flow.
Path: Networking → Static Routing → IPv6. Local intent: IPv6: Network Route, Host Route, Default Route, Floating Static.
Subtopics
Go one level deeper into this subject.
An IPv6 static network route installs an explicitly configured prefix such as `2001:db8:20::/64` toward a next hop or outgoing interface.
Subtopic Host RouteAn IPv6 host route uses a /128 prefix to match exactly one IPv6 address.
Subtopic Default RouteThe IPv6 default route `::/0` is the least-specific route and is used only when no more-specific IPv6 prefix matches.
Subtopic Floating StaticA floating IPv6 static route is configured with an administrative distance higher than the preferred dynamic or static route so that it remains inactive while the primary route is present and becomes eligible when the preferred route is withdrawn.
Subtopic VerificationIPv6 static-route verification must move beyond seeing an `S` entry in the routing table.
ipv6 unicast-routing must be enabled for the router to forward IPv6. With a link-local next hop, write both interface and address: ipv6 route ::/0 Gi0/0 fe80::1. The next hop must be reachable and resolved by Neighbor Discovery.
show ipv6 route static— the static routes installed.show running-config | include ipv6 route|ipv6 unicast-routing— configuration.show ipv6 neighbors— whether the next hop is resolved.show ipv6 cef <prefix>— the forwarding entry.ping ipv6 <next hop>— reachability (name the interface for link-local).
ReferenceWhat it is1 section · depth on demand
What it is
IPv6 static routing on Cisco IOS / IOS XE is configured with ipv6 route. A route identifies an IPv6 prefix and a forwarding next hop; the route must be eligible for the IPv6 RIB before it can affect forwarding.
IPv6 operation separates link-local formation, Router/Neighbor Discovery, prefix/default-router learning, optional SLAAC/DHCPv6 parameters, neighbor reachability and route/FIB programming. Close with Inspect RA/ND and address lifetime/source choice, route/FIB next hop and neighbor state, then test the original IPv6 destination and return path. and state what the evidence does not show.
ReferenceWhy it matters1 section · depth on demand
Why it matters
Use IPv6 static routes for explicit deterministic paths, a default route toward an upstream router, exact /128 host steering, or a floating backup path when dynamic routing is unnecessary or intentionally supplemented.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
IPv6 static routes: the same ideas, with a few differences
Cisco's IOS XE IPv6 static routing guide requires ipv6 unicast-routing to be enabled, IPv6 enabled on at least one interface, and an IPv6 address on that interface before static routes are configured. The syntax is ipv6 route <prefix>/<length> {<next-hop> | <interface> [<next-hop>]} [<distance>].
| Form | Example from the guide | Behaviour |
|---|---|---|
| Directly attached | ipv6 route 2001:DB8::/32 gigabitethernet1/0/0 | The destination itself is used as next hop; valid while the interface is up with IPv6 |
| Recursive | ipv6 route 2001:DB8::/32 2001:DB8:3000:1 | The interface comes from looking up the next hop |
| Fully specified | ipv6 route 2001:DB8::/32 gigabitethernet1/0/0 2001:DB8:3000:1 | Required on multi-access interfaces; the next hop must be directly attached |
R1(config)# ipv6 unicast-routing
R1(config)# interface GigabitEthernet0/0/1
R1(config-if)# ipv6 address 2001:db8:ff::1/64
R1(config)# ipv6 route 2001:db8:30::/48 GigabitEthernet0/0/1 fe80::2
R1(config)# ipv6 route ::/0 GigabitEthernet0/0/0 fe80::1
R1# show ipv6 route static
S 2001:DB8:30::/48 [1/0]
via FE80::2, GigabitEthernet0/0/1
S ::/0 [1/0]
via FE80::1, GigabitEthernet0/0/0
R1# show ipv6 static detail
Differences from IPv4 (documented)
| Point | Detail |
|---|---|
tag and permanent | The guide says IPv6 static routes don't support these IPv4 keywords |
| Default route resolution | A recursive static route doesn't resolve through the default route unless ipv6 route static resolve default is configured |
| Dynamic interfaces | Don't use them for static routes; the routes are lost on reconnect |
Link-local next hops
Neighbouring routers often advertise only link-local addresses (fe80::/10), and those are the same on every link. A link-local next hop therefore only means something together with the outgoing interface, so use the fully specified form.
Verification
The guide lists show ipv6 static [detail], show ipv6 route static and debug ipv6 routing.
Documented example, not captured output.
Quick reference
IPv6 static routes work like IPv4 ones with ipv6 route. When the next hop is a link-local address, the exit interface must be specified because link-local addresses are only unique per link.
ipv6 unicast-routing
ipv6 route 2001:db8:50::/48 2001:db8:12::2
ipv6 route ::/0 Gi0/0 fe80::1
ipv6 route 2001:db8:60::/48 2001:db8:13::2 200
Documented example, not captured output.
Verify with show ipv6 route static and ping to an address in the destination prefix.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Routing → Static Routing → IPv6. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc8200.html · confidence 94%Quick lookup tables
IPv6 static route forms
Fast mapping from routing intent to the source-taxonomy command form
| Intent | Source command | Key point |
|---|---|---|
| Remote prefix | ipv6 route <prefix>/<length> <next-hop> | Next hop must be usable in the correct scope |
| One host | ipv6 route <address>/128 <next-hop> | /128 exact match |
| Default/fallback | ipv6 route ::/0 <next-hop> | Least-specific IPv6 route |
| Backup path | ipv6 route <prefix>/<length> <next-hop> <administrative-distance> | Higher AD than primary |
IPv6 next-hop scope
The key IPv6-specific static-route boundary
| Next hop | Scope | Operational requirement |
|---|---|---|
| Global unicast | Routable/global address | Must be recursively reachable in the IPv6 RIB |
Link-local fe80::/10 | Link only | Must be associated with the correct outgoing interface/link |
| Directly connected destination prefix | Local interface path | Interface and ND/adjacency state still matter |
Deep reference
Additional depth
IPv6 route-selection and next-hop scope
For a destination, the router selects the longest matching installed IPv6 prefix. When equal prefixes come from different route sources, administrative distance participates in preference. A selected static route then has to resolve its forwarding next hop. Global-unicast next hops can be recursively routed; link-local next hops are meaningful only on a specific link, so production IOS / IOS XE syntax normally pairs a link-local next hop with an outgoing interface. The source taxonomy intentionally keeps the simplified <next-hop> form.