vim /etc/sysconfig/network-scripts/ifcfg-eno16777736
# ifcfg-后接网卡名称
配置如下,ONBOOT设置为yes
HWADDR=00:0C:29:E9:C3:F5 TYPE=Ethernet BOOTPROTO=dhcp DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=yes IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no NAME=eno16777736 UUID=db848a01-77ae-4bf8-b3cf-cd03711ded9a ONBOOT=yes
保存重启网络服务即可。
systemctl restart netwrok