Solve the problem of missing network card in ubuntu under virtual machine

Ubuntu version book:

ubuntu12.04

Waiting for network configuration appears when the server starts up, and then the network card hangs up

Solution:

1. Manually find the network card after startup:

sudo ifconfig eth0 up

If the prompt is not then try eth1 until no error message is raised

2. Manually modify the configuration:

sudo vi /etc/network/interfaces

Replace the original ethx with the found network card, for example, replace all eth0 with eth1

3. Restart the network service

sudo /etc/init.d/networking restart

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326681178&siteId=291194637