Fedora20将网卡名字改回eth0
来源:互联网 发布:地图数据可视化工具 编辑:程序博客网 时间:2024/04/28 04:27
近由于项目原因,自己安装了个Fedora20虚拟机环境,忽然发现Fedora20这个版本里的网卡名字有点怪怪的,不是传统的eth0,改成了ens33,觉得有必要改回来。上网搜索了一下,把这个别扭的ens33改成了eth0,看着顺眼多了。
记录操作步骤如下:
The easiest way to restore the old way Kernel/modules/udev rename your ethernet interfaces is supplying these kernel parameters to Fedora 19:
- net.ifnames=0
- biosdevname=0
To do so follow this steps:
- Edit /etc/default/grub
- At the end of GRUB_CMDLINE_LINUX line append "net.ifnames=0 biosdevname=0"
- Save the file
- Type "grub2-mkconfig -o /boot/grub2/grub.cfg"
- Type "reboot"
If you didn't supply these parameters during the installation, you will probably need to adjust and/or rename interface files at /etc/sysconfig/network-scripts/ifcfg-*.
Up to Fedora 18, just biosdevname=0 was enough.
As an example, in a certain machine, in a exhaustive research, I got:
-No parameters: NIC identified as "enp5s2".
-Parameter biosdevname=0: NIC identified as "enp5s2".
-Parameter net.ifnames=0: NIC identified as "em1".
-Parameter net.ifnames=0 AND biosdevname=0: NIC identified as "eth0".
- Fedora20将网卡名字改回eth0
- centos7 网卡名字改为eth0
- centos7 改网卡名字
- fedora22改网卡名字
- Ubuntu中将网卡名称eno16777736改回eth0
- Ubuntu中将网卡名称eno16777736改回eth0
- 网卡名字eth0,eth1的修改方法
- Redhat7更改网卡名字为eth0 eth1
- CentOS修改eth0网卡的名字-yellowcong
- Linux网卡名改eth0方法
- RedHat7将网卡名称eno16777736改为eth0
- 将网卡名eno16777736改为eth0
- CentOS 将网卡设置成eth0
- RedHat7将网卡名称eno16777736改为eth0
- 设置网卡设备默认名字是eth0/eth1的过程
- centos7将网卡名字改成eth样式
- 将Cent0S 7的网卡名称eno16777736改为eth0
- 将Cent0S 7的网卡名称eno16777736改为eth0
- Apple Mach-O Linker error – Xcode 6 Beta 6
- 【UI布局】fragment学两个demo就会用
- python sorted 方法,较为详尽,描述清晰
- UVa 12577 - Hajj-e-Akbar
- 用Xamarin.iOS制作一个漂亮的汉堡按钮过渡动画
- Fedora20将网卡名字改回eth0
- B. Little Dima and Equation
- 黑马程序员--黑马历程--我的人生,我的路--黑九的我毕业了
- Struts2文件上传 深入FileUploadInterceptor
- block,inline和inline-block概念和区别
- 【UI布局】android之Fragment(官网资料翻译)
- linux:shell 读取文件每一行
- MFC起步
- Android apk反编译