Lab 9 — IPv6 Addressing & Static Routing
Three routers, two hosts, one chain of /64s.
Address everything in IPv6, turn on routing, and build the static routes that carry a ping end to end — including the classic trap: a router that won't forward until you tell it to. Work through it in order — check steps off, copy the commands, and finish with the show commands that prove the routes are real.
Interactive lab — play with it
A simulated CLI for this lab. Click a device, type the commands, and watch pings fail until the forwarding and the routes are actually in place.
A simulated CLI for this lab — click any router, type the commands, and watch routes appear only when the addresses and statics are really there. PC1 and PC2 are routers mimicking end hosts, like the pack. This models Lab 9’s commands only, not real routers: unsupported commands say so instead of faking it. Type ? for help and use Tab to complete a command.
Lab 9 — IPv6 simulator — simulated IOS 15.0(1)M4. Type ? for help.
Only this lab's commands are simulated; unsupported commands say so.
Up/down arrows recall commands. The full command list is in the walkthrough below.
Interactive lab
Lab 9 — IPv6
Three routers and two hosts, dual-stacked on top of an IPv4 network. Add IPv6 addressing and static routing — and find out why nothing forwards until you turn routing on.
Click a device to open its console, type the real commands, and check your work when you think it’s done. The lab checks each step as you go.
Walkthrough — commands in order
Three routers, two hosts, one chain of /64s. Address everything in IPv6, turn on routing, and build the static routes that carry a ping end to end — including the classic trap: a router that won’t forward until you tell it to.
PC1 ── 2001:db8::/64 ── [R1] ── 2001:db8:0:1::/64 ── [R2] ── 2001:db8:0:2::/64 ── [R3] ── 2001:db8:0:3::/64 ── PC2
R1 G0/1 2001:db8::1 · R1 G0/0 2001:db8:0:1::1 · R2 G0/0 2001:db8:0:1::2 · R2 G0/1 2001:db8:0:2::2
R3 G0/0 2001:db8:0:2::1 · R3 G0/1 2001:db8:0:3::1 · PC1 2001:db8::/64 EUI-64 · PC2 2001:db8:0:3::/64 EUI-64
Link-locals: R1 FE80::1 · R2 FE80::2 · R3 FE80::3 (both interfaces each)
Addressing + static routes only — the pack defers OSPFv3 to the next lab.
The lab pack uses Fa0/0/Fa0/1; the simulator uses G0/0/G0/1.Where this shows up in the data center
Link-local addresses are the part of IPv6 I actually see every day — every interface has a FE80 address, and neighbor discovery runs on them, the same way LLDP tells me who’s on the other end of a fiber link. Static routes are the same skill as IPv4 statics, just longer addresses. I don’t run IPv6 routing on the production fabric, so this lab is the addressing and forwarding fundamentals, not a claim about production experience.
R1(config)# interface g0/1 R1(config-if)# ipv6 address 2001:db8::1/64 R1(config-if)# no shutdown R1(config)# interface g0/0 R1(config-if)# ipv6 address 2001:db8:0:1::1/64 R1(config-if)# no shutdown R2(config)# interface g0/0 R2(config-if)# ipv6 address 2001:db8:0:1::2/64 R2(config-if)# no shutdown R2(config)# interface g0/1 R2(config-if)# ipv6 address 2001:db8:0:2::2/64 R2(config-if)# no shutdown R3(config)# interface g0/0 R3(config-if)# ipv6 address 2001:db8:0:2::1/64 R3(config-if)# no shutdown R3(config)# interface g0/1 R3(config-if)# ipv6 address 2001:db8:0:3::1/64 R3(config-if)# no shutdown PC1(config)# interface g0/0 PC1(config-if)# ipv6 address 2001:db8::/64 eui-64 PC1(config-if)# no shutdown PC2(config)# interface g0/0 PC2(config-if)# ipv6 address 2001:db8:0:3::/64 eui-64 PC2(config-if)# no shutdown
PC1 becomes 2001:db8::201:42ff:febb:1010 and PC2 becomes 2001:db8:0:3:201:42ff:febb:1020 — the EUI-64 addresses from their MACs.
R1(config)# interface g0/0 R1(config-if)# ipv6 address fe80::1 link-local R1(config)# interface g0/1 R1(config-if)# ipv6 address fe80::1 link-local R2(config)# interface g0/0 R2(config-if)# ipv6 address fe80::2 link-local R2(config)# interface g0/1 R2(config-if)# ipv6 address fe80::2 link-local R3(config)# interface g0/0 R3(config-if)# ipv6 address fe80::3 link-local R3(config)# interface g0/1 R3(config-if)# ipv6 address fe80::3 link-local
Without this step each interface would auto-generate a link-local from its MAC — same idea, different address.
PC1(config)# ipv6 route ::/0 2001:db8::1 PC2(config)# ipv6 route ::/0 2001:db8:0:3::1
R2(config)# ipv6 route 2001:db8::/64 2001:db8:0:1::1 R1(config)# ipv6 unicast-routing R2(config)# ipv6 unicast-routing R3(config)# ipv6 unicast-routing PC1# ping 2001:db8:0:1::2
Try the ping before enabling routing and it fails — that failure is the lesson. After this step it succeeds.
R1(config)# ipv6 route 2001:db8:0:2::/64 2001:db8:0:1::2 R1(config)# ipv6 route 2001:db8:0:3::/64 2001:db8:0:1::2 R2(config)# ipv6 route 2001:db8:0:3::/64 2001:db8:0:2::1 R3(config)# ipv6 route 2001:db8::/64 2001:db8:0:2::2 R3(config)# ipv6 route 2001:db8:0:1::/64 2001:db8:0:2::2
PC1# ping 2001:db8:0:3:201:42ff:febb:1020
If it fails, check show ipv6 route on each router — the missing route is the one whose network the ping never reaches.
Verify it worked
Don’t trust the config until a show command proves it. These are the outputs you should see — if yours differ, that’s the troubleshooting.
R1# show ipv6 interface brief
GigabitEthernet0/0 [up/up]
FE80::1
2001:DB8:0:1::1
GigabitEthernet0/1 [up/up]
FE80::1
2001:DB8::1R1# show ipv6 route
IPv6 Routing Table - default - 7 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, R - RIP, H - NHRP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, l - LISP
C 2001:DB8::/64 [0/0]
via GigabitEthernet0/1, directly connected
L 2001:DB8::1/128 [0/0]
via GigabitEthernet0/1, receive
C 2001:DB8:0:1::/64 [0/0]
via GigabitEthernet0/0, directly connected
L 2001:DB8:0:1::1/128 [0/0]
via GigabitEthernet0/0, receive
S 2001:DB8:0:2::/64 [1/0]
via 2001:DB8:0:1::2
S 2001:DB8:0:3::/64 [1/0]
via 2001:DB8:0:1::2
L FF00::/8 [0/0]
via Null0, receiveR2# show ipv6 neighbors
IPv6 Address Age Link-layer Addr State Interface 2001:DB8:0:1::1 0 0001.42BB.0001 REACH G0/0 2001:DB8:0:2::1 0 0001.42BB.0003 REACH G0/1 FE80::1 0 0001.42BB.0001 REACH G0/0 FE80::3 0 0001.42BB.0003 REACH G0/1
Check yourself
Three questions from the exam angle. Tap to reveal the answer — say it out loud first.
Q1. PC1 can ping R1, but the ping to R2 fails — even though PC1 has a default route. What’s wrong?
Q2. What does EUI-64 do, and why does PC1 end up as 2001:db8::201:42ff:febb:1010?
Q3. Why do the routers need static routes at all, when they’re all directly connected to each other?
Next labs:
That finishes the IPv6 lab. Go back to Lab 8 — HSRP or see all labs on the labs hub.