让CentOS 7.7 支持IPV6 并能PING通外网

suosuo 2020-01-11

[ ~]# cat /etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
PV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=d95de3de-4caa-43d4-804b-8c59ba4dc07d
DEVICE=ens33
ONBOOT=yes

DNS=192.168.128.1


IPV6ADDR=fd00::128:811/112
IPV6_DEFAULTGW=fd00::128:1

IPADDR=192.168.128.237
NETMASK=255.255.255.0
GATEWAY=192.168.128.1
DNS1=DNS
DNS2=114.114.114.114

历经苦难,终于搞定,天大的坑啊。

相关推荐