备份eno16777736网卡配置,并复制出一个ifcfg-eth0

[root@rhel7 network-scripts]# cp ifcfg-eno16777736 ifcfg-eno16777736.bak

[root@rhel7 network-scripts]# cp ifcfg-eno16777736 ifcfg-eth0

修改ifcfg-eth0中的NAME和DEVICE为eth0

[root@rhel7 network-scripts]# vim ifcfg-eth0 

禁用可预测命名空间属性 :  找到GRUB_CMDLINE_LINUX行,直接到最后添加,net.ifnames=0 biosdevname=0[root@rhel7 network-scripts]# vim /etc/default/grub

更新grub配置文件[root@rhel7 network-scripts]# grub2-mkconfig -o /boot/grub2/grub.cfgGenerating grub configuration file ...Found linux image: /boot/vmlinuz-3.10.0-327.el7.x86_64Found initrd image: /boot/initramfs-3.10.0-327.el7.x86_64.imgFound linux image: /boot/vmlinuz-0-rescue-f564014198524384922d10f71c47162bFound initrd image: /boot/initramfs-0-rescue-f564014198524384922d10f71c47162b.imgdone

重启

[root@rhel7 network-scripts]# reboot

验证

[zbf@rhel7 ~]$ ifconfig

精彩文章

评论可见,请评论后查看内容,谢谢!!!评论后请刷新页面。