修改网卡/etc/sysconfig/network-scripts/ifcfg-enp0s31f6
TYPE=Ethernet
BOOTPROTO=static
NM_CONTROLLED=no
IPADDR=172.16.17.155
NETMASK=255.255.252.0
GATEWAY=172.16.16.1
DNS1=202.101.172.46
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
IPV6_ADDR_GEN_MODE=stable-privacy
NAME=enp0s31f6
UUID=0f8980bd-d77d-4267-93bd-f68e9dfacb99
DEVICE=enp0s31f6
ONBOOT=yes
以上为示例仅供参考。
网友评论