cat /etc/sysconfig/network-scripts/ifcfg-eth0
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
NAME=p3p1
UUID=16aaf70a-676d-43b6-81c8-484ae0caceef
DEVICE=eth0
ONBOOT=yes
IPADDR=192.168.1.53
PREFIX=24
GATEWAY=192.168.1.1
DNS1=192.168.1.201
DOMAIN=host.com
修改网卡名称
1 修改内核参数 grub.cfg
方法(1)
linux16 /boot/vmlinuz-3.10.0-1160.15.2.el7.x86_64 root=UUID=7da8b3aa-2 80c-494a-aa94-32c138644c39 ro crashkernel=auto rhgb net.ifnames=0 biosdevname= 0 quiet LANG=en_US.UTF-8
方法(2)
grubby --update-kernel=ALL --args="net.ifnames=0 biosdevname=0"
2 重命名网卡名称
mv /etc/sysconfig/network-scripts/ifcfg-enss33 /etc/sysconfig/network-scripts/ifcfg-eth0
3 修改网卡配置文件
NAME=eth0
DEVICE=eth0
重启