Lab exercise incorporating IPv6.
Your task is to enable IPv6 addresses between the nodes in your experiment.
ifconfig
on each node, discover and note the interface for each IPv4 address shown in the topology diagram above. Also note the IPv6 address assigned to each interface that you just discovered.
ping6 -I ethx -c 1 fe80::/64 (use the addresses from your experiment)
test -f /proc/net/if_inet6 && echo "Running kernel is IPv6 ready"
apt update -y apt install netplan.io network-manager -yEdit /etc/netplan/config.yaml file on router, client and server nodes to include script for each interface.
Note: remember the router has two interfaces; replace ethx and ethy below with the correct ethernet interfaces from your experiment!
Router node:
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: NetworkManager
ethernets:
ethx:
dhcp4: false
dhcp6: false
addresses:
- 5.6.7.2/24
- 2001:0db8:0100:f101::250/64
ethy:
dhcp4: false
dhcp6: false
addresses:
- 1.1.2.2/24
- 2001:0db8:0100:f102::250/64
Client node:
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: NetworkManager
ethernets:
ethx:
dhcp4: false
dhcp6: false
gateway6: 2001:0db8:100:f102::2
addresses:
- 1.1.2.3/24
- 2001:0db8:0100:f102::2/64
Server node:
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: NetworkManager
ethernets:
ethx:
dhcp4: false
dhcp6: false
gateway6: 2001:0db8:100:f101::1
addresses:
- 5.6.7.8/24
- 2001:0db8:0100:f101::1/64
After installing netplan and editing yaml file, apply all settings on router, client and server nodes.
netplan apply
ip -6 neigh show
/sbin/ip -6 route show dev ethx
sysctl -w net.ipv6.conf.all.forwarding=1
traceroute -6 2001:db8:100:f101::1