SimpleDao
centos开启ipv6
2019-05-06, 访问数: 1147

编辑/etc/sysconfig/network-scripts/ifcfg-eth0,添加

  1. IPV6INIT=yes
  2. IPV6ADDR=primary_ipv6_address/64
  3. IPV6_DEFAULTGW=ipv6_gateway
  4. IPV6_AUTOCONF=no
  5. DNS1=2001:4860:4860::8844
  6. DNS2=2001:4860:4860::8888
  7. DNS3=209.244.0.3

测试

  1. ping6 2001:4860:4860::8888

参考

  1. https://www.digitalocean.com/community/tutorials/how-to-enable-ipv6-for-digitalocean-droplets