返回顶部

改网卡名centos7、8,恢复传统的网卡命名eth0

 

 #vim /etc/default/grub

 

GRUB_TIMEOUT=5

GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"

GRUB_DEFAULT=saved

GRUB_DISABLE_SUBMENU=true

GRUB_TERMINAL_OUTPUT="console"

 

GRUB_CMDLINE_LINUX="resume=/dev/mapper/cl-swap rd.lvm.lv=cl/root rd.lvm.lv=cl/swap rhgb quiet net.ifnames=0"

GRUB_DISABLE_RECOVERY="true"

GRUB_ENABLE_BLSCFG=true

 

 #grub2-mkconfig  -o  /boot/grub2/grub.cfg

 

#Reboot

 

eth0

posted @ 2020-05-28 19:14  九尾cat  阅读(420)  评论(0编辑  收藏  举报