I purchased a dedicated server installed with Ubuntu 18.04 which was given an IPv6 Block.
I used the guide How to set up IPv6 on Ubuntu 16.04 before.
Since Ubuntu 18.04 uses netplan instead of /etc/network/interfaces
, the above link does not work anymore.
Yesterday, I set up /etc/netplan/01-netcfg.yaml
as following:
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: yes
dhcp6: no
addresses: ['2001:bc8:xxx:100::/56']
Things worked pretty well, but today I can no longer ping any IPv6 addresses. Tried in many ways but so far I can have no good result.
I want to know the exact way of implementing IPv6 under this circumstance, how should I do?
I also have a Dedibox server from Online.net.
After searching the web I find this on twitter
Try the following :
This worked for me and now I'm able to ping6 !
I occur the same issue in another VPS (Vultr), that they suggest me to use "router discovery" to set up IPv6 gateway address.
After spend some time to dig out what's going on, I realize my issue is because I have drop ufw and set up my own iptables & ip6tables firewalls, but have not noticed the difference between IPv4 ICMP & IPv6 ICMP. So just enable it:
Then reboot. Afterwards I can
ping6 www.google.com
from my VPS server and get decent results.Just remember to keep firewall settings after reboot. For example, if you use
iptables-persistent
, you can useip6tables-save
to save them, like this: