This article mainly introduces the setup tutorial of the Linux system network card. It has a certain reference value. Interested friends can refer to it
Because I cloned a virtual machine and found that the MAC addresses of the cloned machine and the cloned machine were the same. Now I will introduce the configuration steps of the network card in Linux. The Linux I used is CentOS release 6.9 (Final)
1. Edit the /etc/udev/rules.d/70-persistent-net.rules file as the root user, find the network card with a duplicate mac address and delete (here is eth0), note Save the mac address of the newly generated network card 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 one in step 1 Newly generated mac address 00:50:56:36:16:72
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
3. Restart the system to make the previous modifications take effect
# reboot
The above is the detailed content of Tutorial on network card settings in Linux system. For more information, please follow other related articles on the PHP Chinese website!