Hi everyone, the IPv4 addresses we have been using all this time are limited, and the pool of public addresses ran out a long time ago. The replacement is IPv6, a 128 bit address written in hexadecimal, for example 2001:DB8:1::1. Cisco routers have supported IPv6 for years, and the configuration feels a lot like IPv4 with a few extra commands.
In this article I practice IPv6 with two routers in Cisco Packet Tracer 8.2.1: IPv6 addresses on the routers, IPv6 static routing, a PC that gets its address automatically through SLAAC, and a PC with a static address. The routing idea is the same as in my guide on static routing in Cisco Packet Tracer, only the addresses are different.
The Topology and Cables Used
A diagonal chain with no switch

This time the topology is very compact and laid out diagonally: PC0, Router0, Router1, and then PC1. There is no switch, so each PC plugs straight into a router.

There are three IPv6 networks, each with a /64 prefix. The note at the bottom left says LAN A 2001:DB8:1::/64 with PC0 getting its address automatically (SLAAC). The note in the middle marks the link between the routers, 2001:DB8:12::/64, where Router0 is ::1 and Router1 is ::2. The note at the top says LAN B 2001:DB8:2::/64 with PC1 using the static address 2001:DB8:2::10.
PC0 FastEthernet0 -> Router0 Gig0/0 (cross-over)
Router0 Gig0/1 -> Router1 Gig0/1 (cross-over)
Router1 Gig0/0 -> PC1 FastEthernet0 (cross-over)Every cable is Copper Cross-Over, which shows up as a dashed line. Router to router uses a cross-over cable because both devices are the same type. A PC connected directly to a router also uses cross-over, because the PC port and the router port both behave like a computer port. Only when there is a switch in between would you use a straight-through cable.
Configuring IPv6 on Router0
Open the Router0 CLI

Click Router0, which I marked with a red circle.

Click the CLI tab, then answer no to the initial configuration dialog.
Enable IPv6 routing and set the addresses

enable
configure terminal
hostname R0
ipv6 unicast-routing
interface gigabitEthernet0/0
ipv6 address 2001:DB8:1::1/64
no shutdown
exit
interface gigabitEthernet0/1
ipv6 address 2001:DB8:12::1/64
no shutdown
exit
ipv6 route 2001:DB8:2::/64 2001:DB8:12::2
end
write memoryDo not skip the ipv6 unicast-routing command. Without it the router will not forward IPv6 packets and will not send Router Advertisements either, so the PC cannot get an address automatically. The prefix goes right after the address, for example /64, so there is no subnet mask like in IPv4.
The ipv6 route line is the IPv6 static route. The format is the same as IPv4: the destination network 2001:DB8:2::/64 is reached through the next hop 2001:DB8:12::2, which is Router1.
Configuring IPv6 on Router1
Open the Router1 CLI

Close the Router0 window, then click Router1 and open the CLI tab.
Addresses and the return route

enable
configure terminal
hostname R1
ipv6 unicast-routing
interface gigabitEthernet0/0
ipv6 address 2001:DB8:2::1/64
no shutdown
exit
interface gigabitEthernet0/1
ipv6 address 2001:DB8:12::2/64
no shutdown
exit
ipv6 route 2001:DB8:1::/64 2001:DB8:12::1
end
write memoryCheck the interface addresses

show ipv6 interface briefEach interface has two addresses. The one starting with FE80 is the link-local address, which is created automatically and only works on that single link. The 2001:DB8 address is the global address we typed in manually.
Check the IPv6 routing table

show ipv6 routeYou can see the line S 2001:DB8:1::/64 via 2001:DB8:12::1, which is the static route to LAN A. The C lines are directly connected networks, and the L lines are the router’s own addresses.
Setting IPv6 Addresses on the PCs
PC1 with a static address

Click PC1 in the top right corner, open Desktop and then IP Configuration. In the IPv6 Configuration section choose Static, fill in the IPv6 Address 2001:DB8:2::10 with prefix 64, and set the Default Gateway to 2001:DB8:2::1.
Open PC0

Close the PC1 window, then click PC0 in the bottom left corner.

Click the Desktop tab. IP Configuration is where you set the address, and Command Prompt is for testing.
PC0 with an automatic SLAAC address

Click IP Configuration, then choose Automatic in the IPv6 Configuration section. The message Ipv6 request successful appears. PC0 builds its own address from the 2001:DB8:1::/64 prefix that the router advertises, plus an ending taken from the PC’s MAC address, so the result is 2001:DB8:1:0:260:3EFF:FED5:63EE. The Default Gateway is filled in automatically with Router0’s link-local address. This method is called SLAAC (Stateless Address Autoconfiguration), and it does not need a DHCP server at all.
Testing the IPv6 Connection
Ping and tracert from PC0 to PC1

Open the Command Prompt on PC0 and run the following commands.
ping 2001:DB8:2::10
tracert 2001:DB8:2::10Every ping succeeds. Tracert shows the path 2001:DB8:1::1 (Router0), 2001:DB8:12::2 (Router1), and then it reaches PC1. In Packet Tracer the ping command works with IPv6 addresses right away, with no extra options needed.
Common Problems and How to Fix Them
The PC does not get an address when you choose Automatic
Check whether ipv6 unicast-routing has been entered on the router. Without that command the router does not send Router Advertisements, so SLAAC fails.
The % Invalid input message appears when typing an address
Check how you wrote the address. The :: shorthand can only be used once in an address, and the prefix is written right after it with no space, for example 2001:DB8:1::1/64.
Ping to the other LAN fails
Make sure the static route exists on both routers, because the reply packets also need a route back. Check it with show ipv6 route.
At this point the two IPv6 networks can reach each other, including a PC that gets its address automatically. In the next article, the last one in this series, we cover BGP, the routing protocol used between internet providers. If you run into any other error while trying this, just leave a comment below.












