The problem of Network Card Information injection after VMWare Link Clone OS
CentOS1, [root@localhost ~] # ifconfig-a [root@localhost ~] # vim / etc/udev/rules.d/70-persistent-net.rules delete the record corresponding to the first MAC that does not exist, change the following eth2 to eth0 [root@localhost ~] # vim / etc/sysconfig/network-scripts/ifcfg-eth0 delete MAC address and UUID, modify IP address [root@localhost ~] # modprobe-r e1000 [root@localhost ~] # modprobe e1000 [root@localhost ~] # service network restart reload Nic driver, restart the network service [root@localhost ~] # ifconfigeth0 Link encap:Ethernet
Debian
Vim / etc/udev/rules.d/z25_persistent-net.rules# PCI device 0x10ec:0x8139 (8139too) SUBSYSTEM== "net", DRIVERS== "? *", ATTRS {address} = = "00:e0:4c:39:a4:99", NAME= "eth0" # PCI device 0x10ec:0x8167 (R8169) SUBSYSTEM== "net", DRIVERS== "? *", ATTRS {address} = = "00:16:17:c0:a3:66", NAME= "eth2"