先贴出配置好的网卡的配置文件
[root@test network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-eno16777984
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPV6_FAILURE_FATAL=no
NAME=eno16777984
UUID=f6ecfa68-d214-4d7a-b2e6-b1ef280cd2d2
DEVICE=eno16777984
ONBOOT=yes
IPADDR=172.16.9.229
NETMASK=255.255.255.0
GATEWAY=172.16.9.1
DNS1=202.106.0.20
DNS2=8.8.8.8


修改网卡后,重启网络

systemctl restart network

检查网卡是否启动正常

[root@test network-scripts]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eno16777984: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:0c:29:ad:d4:a5 brd ff:ff:ff:ff:ff:ff
    inet 172.16.9.229/16 brd 172.16.255.255 scope global eno16777984
       valid_lft forever preferred_lft forever
    inet6 fe80::20c:29ff:fead:d4a5/64 scope link
       valid_lft forever preferred_lft forever