Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set up the system Network Card in Linux

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces Linux how to set up the system network card, the article introduces in great detail, has a certain reference value, interested friends must read it!

Due to the cloning of the virtual machine, it is found that the MAC address of the cloned machine is the same as that of the cloned machine. Now I will introduce the configuration steps of the network card in linux. The linux I use is CentOS release 6.9 (Final).

1. Root users edit the / 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 eth2, 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 to change the HWADDR address to the newly generated mac address in step 1: 00, 50, 56, 36, 16, 72.

# vi / etc/sysconfig/network-scripts/ifcfg-eth0

3. Restart the system to make the previous changes take effect

# reboot

The above is all the contents of the article "how to set up the system Network Card in Linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report