Preface
I was playing with My Virtualbox today and i tried to clone some Centos Servers. But after this, when starting the eth0, it is no more available.
To Solve this
Delete networking interface rules file so that it can be regenerated and reboot your CentOS system.
New Mac address has been generated:
- # 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:0x100e (e1000)
- SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:fe:c1:03", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
- # Add new HWADDR generated or remove it
- # Remove UUID line
- TYPE=Ethernet
- HWADDR=08:00:27:fe:c1:03
- BOOTPROTO=static
- IPADDR=192.168.140.141
- NETMASK=255.255.255.0
- GATEWAY=192.168.140.2
- DNS1=8.8.8.8
- DNS2=168.95.1.1
- DEFROUTE=yes
- PEERDNS=yes
- PEERROUTES=yes
- IPV4_FAILURE_FATAL=no
- IPV6INIT=yes
- IPV6_AUTOCONF=yes
- IPV6_DEFROUTE=yes
- IPV6_PEERDNS=yes
- IPV6_PEERROUTES=yes
- IPV6_FAILURE_FATAL=no
- NAME=eth0
- #UUID=2014320a-4e80-44e4-8a94-050199a3dcd7
- DEVICE=eth0
- ONBOOT=yes
Supplement
* CentOS & Device eth0 does not seem to be present
* 複製虛擬機 Linux,網卡啟動失敗 Device eth0 does not seem to be...esent, delaying initialization
沒有留言:
張貼留言