天天看點

centos7 系統修改網卡名稱

   最新系統網卡名稱改成了一串很長的數字,原來都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

繼續閱讀