1.修改成静态ip
[root@localhost network-scripts]# more ifcfg-enp0s3 TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=static DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=enp0s3 UUID=2323beca-b693-4a2a-9fcf-6caa2f095bef DEVICE=enp0s3 ONBOOT=yes IPADDR=192.168.1.105 NETMASK=255.255.255.0 GATEWAY=192.168.1.1
2.修改resolv.conf
# cat /etc/resolv.conf nameserver 8.8.8.8 nameserver 8.8.4.4
标签:centos,no,静态,ip,enp0s3,IPV6,yes,8.8 From: https://www.cnblogs.com/hxlasky/p/17551473.html