// Lesson 15 of 49 · IPv6
Configuring IPv6 on Cisco routers
Enable IPv6 routing
IOS routers forward IPv6 only after you enable it globally:
R1(config)# ipv6 unicast-routing
Without this command, the router still has IPv6 addresses but behaves like a host: it does not route IPv6 or send Router Advertisements.
Assign addresses
R1(config)# interface GigabitEthernet0/0
R1(config-if)# ipv6 address 2001:db8:acad:10::1/64
R1(config-if)# ipv6 address fe80::1 link-local
R1(config-if)# no shutdown
R1(config)# interface GigabitEthernet0/1
R1(config-if)# ipv6 address 2001:db8:acad:12::/64 eui-64
- Setting a simple link-local address such as
fe80::1makes routing tables and troubleshooting much easier to read. eui-64builds the interface ID automatically from the MAC.ipv6 enablecreates only a link-local address.
Verify
R1# show ipv6 interface brief
GigabitEthernet0/0 [up/up]
FE80::1
2001:DB8:ACAD:10::1
R1# show ipv6 neighbors
R1# show ipv6 route
show ipv6 interface GigabitEthernet0/0 also lists the multicast groups the interface has joined (ff02::1, ff02::2, solicited-node).
Static IPv6 routes
The syntax mirrors IPv4:
! next hop = neighbour's global address
R1(config)# ipv6 route 2001:db8:acad:30::/64 2001:db8:acad:12::2
! next hop = link-local: the exit interface is required
R1(config)# ipv6 route 2001:db8:acad:30::/64 GigabitEthernet0/1 fe80::2
! default route
R1(config)# ipv6 route ::/0 GigabitEthernet0/1 fe80::2
A link-local next hop needs the exit interface because the same fe80:: address could exist on every link.
Testing
R1# ping 2001:db8:acad:30::10
R1# traceroute 2001:db8:acad:30::10
C:\> ping -6 2001:db8:acad:30::10
Dual stack
Most networks run dual stack: IPv4 and IPv6 on the same interfaces at the same time. Each protocol has its own addresses, routing table and routing protocol process. Configure and verify them independently.
Key points
ipv6 unicast-routingturns a router into an IPv6 router.- Configure memorable link-local addresses (fe80::1) on router interfaces.
show ipv6 interface brief,show ipv6 route,show ipv6 neighbors.- Static routes with a link-local next hop need the exit interface.
Sign in to save your lesson progress across devices. You can read every published lesson without an account.