我已经克隆了一个软呢帽,现在尝试配置网络接口。每次添加新的NIC时,它都以编号eth3(而不是eth0)开头。我曾尝试删除和修改70-persistent-net.rules
以及,network-scripts/eth0
但似乎没有任何方法可以解决此问题。这是我机器的一些输出
[root@abc ~]# ls /sys/class/net
eth3 eth4 lo pan0
[root@abc ~]# cat /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.
# PCI device 0x15ad:0x07b0 (vmxnet3)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:29:7f:eb", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x15ad:0x07b0 (vmxnet3)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:29:7f:ff", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
# PCI device 0x15ad:0x07b0 (vmxnet3)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:29:7f:f5", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:a3:3e:16", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:a3:3e:20", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x15ad:0x07b0 (vmxnet3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:a3:3e:2a", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
[root@abc ~]# service network restart
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.
[FAILED]
[root@abc ~]#
[root@abc network-scripts]# vi ifcfg-eth0
# Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.1.255
HWADDR=00:0c:29:a3:3e:16
IPADDR=192.168.1.75
IPV6INIT=yes
IPV6_AUTOCONF=yes
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
NM_CONTROLLED=no
GATEWAY=192.168.1.1
~
关于如何解决的任何建议?
您是否有vmware分配给您的VM的MAC地址的列表?
—
Mark Plotnick
ifconfig -a eth3链接encap:以太网HWaddr 00:0C:29:A3:3E:16 inet addr:192.168.144.75 Bcast:0.0.0.0 Mask:255.255.255.0 inet6 addr:fe80 :: 20c:29ff:fea3:3e16 / 64范围:链接UP广播多播MTU:1500指标:1 RX数据包:40997错误:0掉落:0超限:0帧:0 TX数据包:463错误:0掉落:0超限:0载波:0冲突:0 txqueuelen :1000 RX字节:2543682(2.4 MiB)TX字节:65822(64.2 KiB)
—
user2896215 2015年
eth4链接encap:以太网HWaddr 00:0C:29:A3:3E:20 inet addr:10.10.10.1 Bcast:0.0.0.0 Mask:255.255.255.0 inet6 addr:fe80 :: 20c:29ff:fea3:3e20 / 64范围:链接广播多播运行MTU:1500指标:1 RX数据包:198错误:0掉线:0超限:0帧:0 TX数据包:196错误:0掉线:0超限:0载波:0冲突:0 txqueuelen:1000 RX字节:18378(17.9 KiB)TX字节:20271(19.7 KiB)
—
user2896215 2015年
lo链接encap:本地回送inet地址:127.0.0.1掩码:255.0.0.0 inet6地址::: 1/128范围:主机UP LOOPBACK RUNNING MTU:16436指标:1 RX数据包:1241错误:0掉落:0超限:0帧:0 TX数据包:1241错误:0丢弃:0超限:0载波:0冲突:0 txqueuelen:0 RX字节:72277(70.5 KiB)TX字节:72277(70.5 KiB)
—
user2896215 2015年
pan0链接encap:以太网HWaddr 06:CB:63:1B:B6:10广播多播MTU:1500指标:1 RX数据包:0错误:0掉线:0超限:0帧:0 TX:0数据包:0错误:0掉线: 0超限:0载波:0冲突:0 txqueuelen:0 RX字节:0(0.0 b)TX字节:0(0.0 b)
—
user2896215 2015年