标签:centos7
CentOS-7如何修改网卡名称为eth0在开始界面按下TAB键,输入: net.ifnames=0 biosdevname=0 回车即可
[root@CentOS-7 ~]# vim /etc/sysconfig/network-scripts/ifcfg-eno16777736
DEVICE=eth0
[root@CentOS-7 ~]# vim /etc/sysconfig/network-scripts/ifcfg-eno33554960
DEVICE=eth1
[root@CentOS-7 ~]# cd /etc/sysconfig/network-scripts/
[root@CentOS-7 network-scripts]# mv ifcfg-eno16777736 ifcfg-eth0
[root@CentOS-7 network-scripts]# mv ifcfg-eno33554960 ifcfg-eth1
[root@CentOS-7 network-scripts]# vim /etc/default/grub
GRUB_CMDLINE_LINUX="rhgb quiet net.ifnames=0 biosdevname=0" 添加绿色部分
[root@CentOS-7 network-scripts]# grub2-mkconfig -o /boot/grub2/grub.cfg
[root@CentOS-7 network-scripts]# grub2-mkconfig -o /boot/grub2/grub.cfg
重启机器即可
标签:centos7
原文地址:http://blog.51cto.com/13520772/2085585