Centos7 不能联网问题解决(ONBOOT=yes)
[root@node3 network-scripts]# cat ifcfg-eth0 # Created by cloud-init on instance boot automatically, do not edit. # 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=eth0 UUID=b9af732f-3174-4867-9eff-e10049e71224 ONBOOT=yes DEVICE=eth0 DNS1=114.114.114.114 GATEWAY=10.2.2.1 IPADDR=10.2.2.210 NETMASK=255.255.255.0 [root@node3 network-scripts]# pwd /etc/sysconfig/network-scripts [root@node3 network-scripts]#
[root@node3 network-scripts]# pwd /etc/sysconfig/network-scripts [root@node3 network-scripts]# cat ifcfg-lo DEVICE=lo IPADDR=127.0.0.1 NETMASK=255.0.0.0 NETWORK=127.0.0.0 # If you're having problems with gated making 127.0.0.0/8 a martian, # you can change this to something else (255.255.255.255, for example) BROADCAST=127.255.255.255 ONBOOT=yes NAME=loopback
Centos7 不能联网问题解决(ONBOOT=yes)
https://copyfuture.com/blogs-details/202012291851108874z58zou33dn43il