vmware ifconfig找不到eth0 解决方法
2017-01-09 15:08
309 查看
1、 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:08:59:ca", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100f (e1000)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:41:6e:e9", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100f (e1000)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:8c:71:bb", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:8c:71:bb", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
注释多余的eth* , 记下mac地址 00:0c:29:8c:71:bb
2、 编辑 /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
#UUID=3222c759-e450-42db-98b1-0b3942f15fb9
ONBOOT=yes
#NM_CONTROLLED=yes
#BOOTPROTO=dhcp
BOOTPROTO=static
#HWADDR=00:0c:29:8c:71:bb
HWADDR=00:0c:29:34:71:a6
#DEFROUTE=yes
#PEERDNS=yes
#PEERROUTES=yes
#IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
IPADDR=192.168.64.131
NETMASK=255.255.255.0
GATEWAY=192.168.64.1
修改第一步复制的mac地址;
3、service network restart 重启网卡查看是否配置正确,发现可以正常启动:
如何发现网卡IP地址正常但显示为eth1,建议重启后生效
# 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:08:59:ca", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100f (e1000)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:41:6e:e9", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100f (e1000)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:8c:71:bb", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:8c:71:bb", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
注释多余的eth* , 记下mac地址 00:0c:29:8c:71:bb
2、 编辑 /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
#UUID=3222c759-e450-42db-98b1-0b3942f15fb9
ONBOOT=yes
#NM_CONTROLLED=yes
#BOOTPROTO=dhcp
BOOTPROTO=static
#HWADDR=00:0c:29:8c:71:bb
HWADDR=00:0c:29:34:71:a6
#DEFROUTE=yes
#PEERDNS=yes
#PEERROUTES=yes
#IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
IPADDR=192.168.64.131
NETMASK=255.255.255.0
GATEWAY=192.168.64.1
修改第一步复制的mac地址;
3、service network restart 重启网卡查看是否配置正确,发现可以正常启动:
如何发现网卡IP地址正常但显示为eth1,建议重启后生效
相关文章推荐
- vmware下linux找不到网卡eth0的解决方法
- VMware克隆Linux提示找不到eth0的解决方法
- vmware克隆虚拟机,找不到eth0的解决方法
- vmware下linux找不到网卡eth0的解决方法
- vmware下linux找不到网卡eth0的解决方法
- VMWare克隆Linux虚拟机后eth0找不到的解决方法
- VMWare克隆或复制虚拟机后找不到网卡的解决方法
- ifconfig 只有lo而没有eth0的解决方法
- CentOS下找不到eth0设备的解决方法
- VMware安装solaris 10 后找不到网卡的解决方法
- VMware 桥接找不到电脑上的网卡解决方法
- (转)CentOS下找不到eth0设备的解决方法
- VMware Ubuntu下找不到共享文件的解决方法
- 【Linux笔记】CentOS下找不到eth0设备的解决方法
- CentOS下找不到eth0设备的解决方法
- Linux下找不到 ifconfig的解决方法
- 解决VMware 安装tools时出现找不到文件的方法
- CentOS 6.4 VMware克隆后无法识别eth0的解决方法
- VMware 虚拟机 Ubuntu 系统执行 ifconfig 命令 eth0没有IP地址(intet addr、Bcast、Mask) 解决:UP BROADCAST MULTICAST 问题
- CentOS下找不到eth0设备的解决方法