Get the App
SLTechnology News&Howtos  ›  Network Security  › 

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

Shulou Source: shulou.com Published: 2022-06-01 07:47:05 10月02日 Update

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

Tags: Network card file device name command directory address fault configuration problem success personal information reason only name file name case step question Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Information Docker Huawei Linux