CentOS克隆导致网卡eth0变成eth1,以及修改网卡名
2018-02-10 10:58
507 查看
1.进入虚拟机文件夹将hadoop01复制一份,重命名为hadoop02
2.进入VM主界面,打开hadoop02文件
开启虚拟机
3.打开终端
vi /etc/udev/rules.d/70-persistent-net.rules # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # PCI device 0x8086:0x100f (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:d3:d1:35", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x8086:0x100f (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:d33:d1:45", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
删除etho信息,把eth1修改为eth0,结果如下:
# This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # PCI device 0x8086:0x100f (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:d33:d1:45", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
修改 vi /etc/sysconfig/network-scripts/ifcfg-eth0
修改: HWADDR=00:0c:29:d33:d1:45 IPADDR=192.168.137.203
4 重启机器
service network restart
相关文章推荐
- Centos 6 克隆导致网卡eth0变成eth1、及修改网卡名的方法
- Linux网卡eth0变成eth1修改方法
- Linux网卡eth0变成eth1修改方法
- shell实现centos7双网卡修改网卡名eth0,eth1,并设置网络
- CentOS 7 修改网卡名为eth0 eth1 的两种方法
- centos网卡eth1变成eth0修改方法
- 修改Linux网卡由eth1变成eth0
- Centos7修改默认网卡名(改为eth0)以及网卡启动报错RTNETLINK answers: File exists处理
- 虚拟机克隆后eth0网卡变成eth1网卡并且IP地址消失问题解决
- Linux修改网卡ens33为eth0以及centos7下修改动态IP为静态IP地址
- centos网卡eth1变成eth0修改方法
- centos网卡eth1变成eth0修改方法
- centos克隆 网卡eth1变成eth0修改方法
- 虚拟机克隆后eth0网卡变成eth1网卡并且IP地址消失问题解决
- [置顶] Centos克隆没有eth0以及修改系统语言为中文
- centos网卡eth1变成eth0修改方法
- 虚拟机克隆后eth0网卡变成eth1网卡并且IP地址消失问题解决
- vmware5.1通过模版部署RHEL6.3之后网卡eth1 修改eth0 的问题
- vmware workstation中克隆后centos网卡eth1变成eth0修改方法
- linux虚拟机复制后eth0变成eth3不能启动eth0网卡