Home  >  Article  >  Operation and Maintenance  >  Detailed graphic and text explanation of network card configuration in Linux system

Detailed graphic and text explanation of network card configuration in Linux system

巴扎黑
巴扎黑Original
2017-08-09 15:32:281542browse

This article mainly introduces the Linux system network card setting tutorial, which has certain reference value. Interested friends can refer to it

Due to the cloning of the virtual machine, it was found that the cloned machine was not the same as the one being cloned. The MAC addresses of the clone machines are the same. Now I will introduce the configuration steps of the network card in Linux. The Linux I use is CentOS release 6.9 (Final)

1. The root user edits /etc/udev/rules.d /70-persistent-net.rules file, find the network card with duplicate mac address and delete it (here is eth0). Remember 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, change the HWADDR address to the 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 Detailed graphic and text explanation of network card configuration in Linux system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn