将Cent0S 7的网卡名称eno16777736改为eth0
2017-03-07 11:14
288 查看
原文地址:
生命壹号:http://www.cnblogs.com/smyhvae/
文章来源:https://www.geek-share.com/detail/2619628580.html
联系方式:smyhvae@163.com
【正文】
Linux系统版本:CentOS_7(64位)
一、前言:
今天又从Centos 6.5装回了Centos 7,毕竟还是要顺应潮流嘛。安装完成之后,发现发现CentOS 7默认的网卡名称是eno16777736,如图所示:
像我这种有轻微强迫症的人看到这个名字总感觉不爽,于是偏要把eno16777736改成以前版本的eth0,那就开始吧。
二、修改CentOS 7的网卡名称:
输入如下命令,进入对应目录,编辑文件:
vim /etc/sysconfig/grub
然后,往这个文件中添加“net.ifnames=0 biosdevname=0”内容,如下图所示:
上图中,红框部分是我所添加的内容(注意它的位置)。
紧接着,执行如下命令:
grub2-mkconfig -o /boot/grub2/grub.cfg
效果如下:
然后,重启系统后查看网卡名称:
大功告成,回寝室洗洗睡了,明早继续学习。
相关文章推荐
- 将Cent0S 7的网卡名称eno16777736改为eth0
- 将Cent0S 7的网卡名称eno16777736改为eth0
- 将Cent0S 7的网卡名称eno16777736改为eth0
- CentOS 7将网卡名称eno16777736改为eth0(转)
- CentOS 7将网卡名称eno16777736改为eth0
- CentOS 7将网卡名称eno16777736改为eth0
- RedHat7将网卡名称eno16777736改为eth0
- CebtOS7系统网卡名称eno16777736改为eth0
- 把CentOS 7.x网卡名称eno16777736改为eth0
- 将RHEL7/centos7系统网卡名称eno16777736改为eth0
- Linux学习之CentOS(三)----将Cent0S 7的网卡名称eno16777736改为eth0
- RedHat7将网卡名称eno16777736改为eth0
- RedHat7将网卡名称eno16777736改为eth0
- CentOS 7将网卡名称eno16777736改为eth0
- Linux Cent0S 7的网卡名称eno16777736改为eth0
- 将RHEL 7的网卡名称eno16777736改为eth0
- CentOS7下将网卡名称eno16777736改为eth0
- Redhat 7将网卡名称eno16777736改为eth0
- 将网卡名eno16777736改为eth0
- centos7下的系统网卡名称eno16777736更改为eth0