最新系统网卡名称改成了一串很长的数字,原来都eth开头。


   修改方法: 添加红色   

[root@localhost ~]#vim /etc/sysconfig/grub 

GRUB_TIMEOUT=5

GRUB_DEFAULT=saved

GRUB_DISABLE_SUBMENU=true

GRUB_TERMINAL_OUTPUT="console"

GRUB_CMDLINE_LINUX="rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet net.ifnames=0 biosdevname=0"

GRUB_DISABLE_RECOVERY="true"

   

[root@localhost ~]# grub2-mkconfig -o /boot/grub2/grub.cfg 

Generating grub configuration file ...

Found linux p_w_picpath: /boot/vmlinuz-3.10.0-229.el7.x86_64

Found initrd p_w_picpath: /boot/initramfs-3.10.0-229.el7.x86_64.img

Found linux p_w_picpath: /boot/vmlinuz-0-rescue-f7173fe9424c429f924f3daec0988833

Found initrd p_w_picpath: /boot/initramfs-0-rescue-f7173fe9424c429f924f3daec0988833.img

done

        


    然后重启即可,修改完后,若是原来配置了IP地址(有可能会被清空,需要重新设置)