Can't get IPv6 Netmask 64 to work (no NAT, should be end to end)

Here’s an example with ubuntu 18.04:

lxc init ubuntu:18.04 c1
lxc config device add c1 eth0 nic nictype=routed parent=wlp0s20f3 ipv6.address=2a02:nnn:76f4:1::200
sudo sysctl net.ipv6.conf.all.proxy_ndp=1
sudo sysctl net.ipv6.conf.wlp0s20f3.proxy_ndp=1
lxc start c1
lxc exec c1 -- rm /etc/netplan/50-cloud-init.yaml
lxc restart
lxc exec c1 -- ip a show dev eth0
2: eth0@if7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether ce:dc:53:a9:44:29 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet6 2a02:nnn:76f4:1::200/128 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::ccdc:53ff:fea9:4429/64 scope link 
       valid_lft forever preferred_lft forever

Ping google

lxc exec c1 -- ping 2a00:1450:4009:811::2004
PING 2a00:1450:4009:811::2004(2a00:1450:4009:811::2004) 56 data bytes
64 bytes from 2a00:1450:4009:811::2004: icmp_seq=1 ttl=53 time=1023 ms
64 bytes from 2a00:1450:4009:811::2004: icmp_seq=2 ttl=53 time=26.6 ms
64 bytes from 2a00:1450:4009:811::2004: icmp_seq=3 ttl=53 time=26.4 ms
64 bytes from 2a00:1450:4009:811::2004: icmp_seq=4 ttl=53 time=25.6 ms
^C
--- 2a00:1450:4009:811::2004 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3019ms
rtt min/avg/max/mdev = 25.609/275.570/1023.518/431.828 ms, pipe 2
1 Like