Nic settings for Linux systems and nic settings for linux systems
After cloning a virtual machine, it is found that the MAC address of the clone machine is the same as that of the cloned machine. Next I will introduce how to configure the NIC in linux, my linux is CentOS release 6.9 (Final)
1. edit/etc/udev/rules as the root user. d/70-persistent-net.rules file, find the network adapter with the duplicate mac address and delete it (eth0 here), remember the mac address of the new network adapter eth1, which will be used later, save and exit
# Vi/etc/udev/rules. d/70-persistent-net.rules
2. edit/etc/sysconfig/network-scripts/ifcfg-eth0 and change the HWADDR address to the newly generated mac address 00: 50: 56: 36: 16: 72 in step 1.
# Vi/etc/sysconfig/network-scripts/ifcfg-eth0
3. restart the system to make the previous modification take effect.
# Reboot