vim /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
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=ens33
UUID=623d3c79-74a8-4623-acd3-f224d4r5028f
DEVICE=ens33
ONBOOT=no //yes
IPADDR=IP
NETMASK=255.255.255.255
GATEWAY=192.168.0.1
IPV6_PRIVACY=no
DNS1=8.8.8.8
systemctl restart network.service
网友评论