VMware克隆CentOS6.4后 eth0无法初始化/找不到eth0的问

作者:杏彩彩票app下载

图片 1

LAST_CONNECT=1432796101

查看全部可用网卡,开掘展现的是eth1实际不是eth0。

以此点子用于减轻Ubuntu下改动网卡后,新网卡退换为eth1,而且源网卡的称谓eth0,非常小概给新网卡用的景况。也得以用来为网卡更名。

图片 2

再将ifcfg-eth0中的MAC地址改成下面eth1-MAC地址,然后配置IP等新闻,

编辑
/etc/udev/rules.d/70-persistent-net.rules

UUID=7624a820-03b1-4a8e-abd1-559879087e5d

但在VMware中Clone实际上也是双重创造一台服务器,

网卡MAC地址更换之后,在Linux中找到网卡,新的网卡会被辨以为eth1要么更为靠后的网卡写入到/etc/udev/rules.d/70-persistent-net.rules那个文件中,修改/etc/udev/rules.d/70-persistent-net.rules那个文件,将eth0的MAC地址修改为改变后的地址就足以。

# line, and change only the value of the NAME= key.

# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="eth1-MAC", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

将内部的eth0,改为eth1,保存后重启系统就可以。

ONBOOT=yes

(找不到eth0,将被延缓先导化) 然后用 #ifconfig 只可以看到本...

# PCI device 0x8086:0x4222 (iwl3945)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1f:3c:48:70:b
1", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

透过英特网的缓慢解决情势为修改/etc/udev/rules.d/70-persistent-net.rules中ATT奥迪Q3{address}值与/etc/sysconfig/network-scripts/ifcfg-Auto_eth第11中学的MAC值保持一致,然后重启服务器就能够。

猜想

# PCI device 0x14e4:0x1713 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1e:ec:0f:79:f
6", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# This file was automatically generated by the /lib/udev/write_net_rules

然后重新用ifconfig 来查阅时,出现的正是eth0的布置音讯了。

root@shangyuan-laptop:/etc/udev/rules.d# more 70-persistent-net.rules
# This file maintains persistent names for network interfaces.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-persistent-net-generator.rules
# file; however you are also free to add your own entries.

本文长久更新链接地址:http://www.linuxidc.com/Linux/2015-08/121635.htm

然后用

# program, run by the persistent-net-generator.rules rules file.

# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="eth0-MAC", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x100f (e1000)

修改/etc/udev/rules.d/70-persistent-net.rules //保存网卡MAC地址等音讯的布署文件

其次步:修改配置文件 ATTXC60{address}为对应网卡MAC地址值,况且修改NAME值为想要的值。

MAC地址等当然也会被再次创制,

[root@oel6 network-scripts]# cat /etc/udev/rules.d/70-persistent-net.rules

VMware克隆CentOS 6.4后 复位eth0 

本文由杏彩发布,转载请注明来源

关键词: