Clone the system, restart the network card, error!
The cloned system, first of all its physical address is the same, so make a physical address to Mr. The first step is to delete the/etc/udev/rules.d/70-persistent-net.rules file#rm-rf/etc/udev/rules.d/70-persistent-net.rulesStep Two: Restart the system#rebootwhere is the generated physical address stored?
in here:[Email protected] ~]# cat/etc/udev/rules.d/70-persistent-net.rulesthis time is not enough, need to modify the IP address and MAC address in the network IP configuration file and 70-persistent-net.rulesmac consistent, modify the device name, also must be consistent:
[email protected] rules.d]# cat 70-persistent-net.rules # This file is automatically generated by the/lib/udev/write_net_rules # program, run by the Persistent-net-generator.rules rules file. # # can modify it, as long as you keep each rule to a single # line, and change is only the value of the Name= key.
# PCI Device 0x8086:0x100f (e1000) subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:3d:bd:b4", attr{type}== "1", kernel== "eth*", name= "eth1" [Email protected] rules.d]# Vi/etc/sysconfig/network-scripts/ifcfg-eth0 |
Step three: Edit MAC Address
[email protected]Linux ~]# vi/etc/sysconfig/network-scripts/ifcfg-eth0
| device= "eth1" bootproto= "Static" hwaddr= " 00:0c:29:3d:bd:b4 " nm_controlled= "yes" onboot= "yes" type= "Ethernet" uuid= " C3eedb2c-5894-4a7e-8f3e-8575667d44b3 " ipaddr= 192.168.10.32 prefix=24 gateway=192.168.10.2 dns1=8.8.8.8 |
Fourth step: Restart the NIC
#service Network Restart
Linux solution device eth0 does not seem to be present