Skip to content

20 IPv6 dual stack ​

IPv4 and IPv6 on the same switch with SLAAC, plus an IPv6-only link with static addresses.

What you practice ​

  • ipv6Prefix, nat6 and router advertisements on a switch
  • SLAAC addresses next to DHCPv4
  • Static IPv6 on a link

Topology ​

NodeImageCPUs / memoryAddressesRole
adebian-131 / 1GiBmgmt 10.120.0.11; v6 fd00:120:1::1/64Dual stack
bdebian-131 / 1GiBmgmt 10.120.0.12; v6 fd00:120:1::2/64Dual stack

Before you start ​

bash
vz image pull disk debian-13

Run it ​

bash
cd examples/20-ipv6-dual-stack
vz validate
vz up
vz node ls
ssh lab@10.120.0.11        # password: lab

Try it ​

bash
ssh lab@10.120.0.11 'ip -6 -br addr; ip -6 route'
ssh lab@10.120.0.11 'ping -6 -c 2 fd00:120:1::2'     # over the link
ssh lab@10.120.0.11 'ip -6 neigh'
ping6 -c 2 <a's SLAAC address from above>            # from the Mac

Notes ​

Reaching the IPv6 internet through NAT66 needs IPv6 on the Mac's own network.

Clean up ​

bash
vz down
vz destroy --yes   # deletes the overlays and state of this lab