Centos7.x 更改网卡名称eth0
来源:互联网 发布:qq for mac远程协助 编辑:程序博客网 时间:2024/05/17 07:13
1、修改网卡信息cd /etc/sysconfig/network-scripts/重命名网卡名称mv ifcfg-eno16777728 ifcfg-eth0编辑网卡信息vim ifcfg-eth0 TYPE=EthernetBOOTPROTO=noneDEFROUTE=yesIPV4_FAILURE_FATAL=noIPV6INIT=noIPV6_AUTOCONF=yesIPV6_DEFROUTE=yesIPV6_PEERDNS=yesTYPE=EthernetBOOTPROTO=noneDEFROUTE=yesIPV4_FAILURE_FATAL=noIPV6INIT=noIPV6_AUTOCONF=yesIPV6_DEFROUTE=yesIPV6_PEERDNS=yesIPV6_PEERROUTES=yesIPV6_FAILURE_FATAL=noNAME=eth0 #name修改为eth0DEVICE=eth0ONBOOT=yesIPADDR=172.16.8.254PREFIX=24GATEWAY=172.16.8.1DNS1=114.114.114.1142、修改grub文件编辑内核信息,添加net.ifnames=0 biosdevname=0字段的vim /etc/sysconfig/grub GRUB_TIMEOUT=5GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"GRUB_DEFAULT=savedGRUB_DISABLE_SUBMENU=trueGRUB_TERMINAL_OUTPUT="console"GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=devops/root rd.lvm.lv=devops/swap rhgb net.ifnames=0 biosdevname=0 quiet"GRUB_DISABLE_RECOVERY="true"运行命令grub2-mkconfig -o /boot/grub2/grub.cfg 来重新生成GRUB配置并更新内核参数 Generating grub configuration file ...Found linux image: /boot/vmlinuz-3.10.0-327.el7.x86_64Found initrd image: /boot/initramfs-3.10.0-327.el7.x86_64.imgFound linux image: /boot/vmlinuz-0-rescue-cd4cedc54acd4c289771cd4af02255e8Found initrd image: /boot/initramfs-0-rescue-cd4cedc54acd4c289771cd4af02255e8.imgdone3、重启系统及验证必须重启系统生效reboot [root@localhost ~]# ifconfigeth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 172.16.8.254 netmask 255.255.255.0 broadcast 172.16.8.255 inet6 fe80::20c:29ff:fe30:707a prefixlen 64 scopeid 0x20<link> ether 00:0c:29:30:70:7a txqueuelen 1000 (Ethernet) RX packets 105 bytes 13994 (13.6 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 112 bytes 14592 (14.2 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 4 bytes 340 (340.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 4 bytes 340 (340.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
阅读全文
0 0
- Centos7.x 更改网卡名称eth0
- Centos7更改网卡名称Eth0
- Centos7更改网卡名称Eth0
- linux--centos7更改网卡名称eth0
- centos7/redhat7更改网卡名称为eth0
- centos7下的系统网卡名称eno16777736更改为eth0
- Centos7更改网卡设备名称为eth0,eth1等
- Linux问题—Centos7更改网卡名称Eth0
- centos7更改网卡名称
- 更改CentOS7 默认网卡eno16777736为eth0
- ubuntu 15.10 更改设备网卡名称为eth0 网卡
- 更改网卡名称以及重启网卡提示Determining if ip address x.x.x.x is already in use for device eth0
- 修改Centos7的网卡名称ens160、eno16777984改为eth0
- linux下更改eth0网卡名称为eth1
- CentOS7没有eth0网卡
- centos6.x修改网卡名称em1、2...为eth0、1...
- CentOS7 修改网卡名称为eth0 & 在VMWare中添加多网卡配置
- Ubuntu系统如何安装双网卡及更改网卡名称(eth0改为eth1)
- 数据结构-图-最短路径(2)弗洛伊德算法构造
- 表单脚本
- 1055. The World's Richest (25)
- git
- POJ2196 HDU1197 ZOJ2405 Specialized Four-Digit Numbers【进制+水题】
- Centos7.x 更改网卡名称eth0
- tornado异步
- 编译链接
- 基于高德SDK实现跑步时轨迹渐变功能
- 满足你使用bootstrap-table的基本需求 列表渲染 a标签的bug 添加按钮
- JAVA开发短信验证码系统
- 单链表的倒置
- docker面试你要知道
- 第十四周周末总结