Week 6 · Lesson 17

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.

CCNA 200-301 Domain 3.0 IP Connectivity Verified 2026-10-11
Learning objectives
Part 1

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.

Exam tip 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.
In this lesson · select a part to jump

Key ideas & exam traps · select one

Part 2

Addressing an interface: /64 and ipv6 enable

An IPv6 interface can be configured in three useful ways:

! 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.

Part 3

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.

Link-local next hops When the next hop is a link-local address it begins with 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.
Part 4

The four static route forms

IPv6 static routes come in the same families as IPv4, plus the link-local nuance:

TypeCommand formNotes
Directly connected (exit interface)ipv6 route 2001:db8:acad:2::/64 Gi0/0Best 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::2Preferred on Ethernet; the router resolves the next hop.
Fully specifiedipv6 route 2001:db8:acad:2::/64 Gi0/0 2001:db8:acad:1::2Exit interface plus next hop; unambiguous and preferred for link-local hops.
Floating staticipv6 route 2001:db8:acad:2::/64 2001:db8:acad:3::2 200Trailing number is the administrative distance; a higher value waits as backup.
LAN 1 R1 R2 LAN 2 Gi0/0 2001:db8:acad:1::1/64 2001:db8:acad:2::1/64 R1: ipv6 route 2001:db8:acad:2::/64 Gi0/0 2001:db8:acad:1::2
R1 reaches LAN 2 through R2. The fully specified route names both the exit interface and the next hop, so it works whether that next hop is a global or a link-local address.

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.

Part 5

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.

Part 6

Reading show ipv6 route

The IPv6 routing table is displayed with the familiar route codes. Learn the ones you will see most:

CodeMeaning
CConnected — a directly attached network.
LLocal — the /128 address configured on the interface itself.
SStatic route.
S*Static default route (::/0).
OOSPF (OSPFv3 for IPv6).
NDNeighbour 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.

Exam tip — two things examiners test (1) IPv6 static route syntax uses prefix/length, not a mask: 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>.
Reference table · select a row

Key terms

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.

Key terms · select a term

Part 7 · Your turn

Review

Check what you have learned with these review questions.

Review · 4 questions

Sources

Sources & references

  1. Cisco. CCNA (200-301) Exam Topics. cisco.com.
  2. IETF. Request for Comments (RFCs). rfc-editor.org.
  3. 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.