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

Unable to find the problem with the virtual machine network card file

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

Fault description: boot can not find the name of the network card device, check the network card only lo.

1. Commands used to solve the problem

Vi edit file (edit network card file)

Cat view files (view network card files)

Cd changes to the Nic file directory

Ip a = ip addr (check the device name of the network card)

Ifconfig views the details of the network card

Mv command (for renaming)

Ls (check the file name of the network card device in the network card file directory)

Service network restart reboots all network cards

2. File directory involved

/ etc/rc.local

/ etc/udev/rules.d/70-persistent-net.rules

/ etc/sysconfig/network-scripts/

/ etc/sysconfig/network-scripts/ifcfg-eth2

3. Cause of failure, mac address conflict

4. Troubleshooting steps.

1. Delete two network cards outside the virtual machine. Shut down the virtual machine.

Restart the virtual machine software to add two network cards

two。 To view the network card device name, use the ip a command

3. Check whether the file name corresponding to the network card in the network card file is correct. It needs to be renamed if it is incorrect.

Edit the configuration file of the network card and modify the name and mac address of the corresponding network card.

(it is not explained in the configuration of the network card)

5. Restart the network card service.

6 check whether the network card is normal (ifconfig)

The above are successful practice cases of personal operation. If you have any questions, please contact QQ 1603666400

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

Network Security

Wechat

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

12
Report