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

What if the Ubuntu system in the Vmware virtual machine cannot find the network card?

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

Share

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

This article mainly explains "what to do if the network card cannot be found in the Ubuntu system in the Vmware virtual machine". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "what to do if the Ubuntu system in the Vmware virtual machine can't find the network card".

Method 1: delete the configuration file directly

Delete the configuration file directly, and Ubuntu will find a new network card after reboot.

The code is as follows:

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

Method 2: modify the configuration file

Modify the configuration file, delete the original eth0, and then change the NAME= "erh2" of eth2 to NAME= "eth0". After restart, Ubuntu will use the new configuration file to set up the network card.

The pre-modified / etc/udev/rules.d/70-persistent-net.rules looks like this:

The code is as follows:

# PCI device 0x1022:0x2000 (pcnet32)

SUBSYSTEM== "net", ACTION== "add", DRIVERS== "? *", ATTR {address} = = "00:0c:29:50:XX:XX", ATTR {dev_id} = = "0x0", ATTR {type} = = "1", KERNEL== "eth*", NAME= "eth0"

# PCI device 0x1022:0x2000 (pcnet32)

SUBSYSTEM== "net", ACTION== "add", DRIVERS== "? *", ATTR {address} = = "00:0c:29:85:XX:XX", ATTR {dev_id} = = "0x0", ATTR {type} = = "1", KERNEL== "eth*", NAME= "eth2"

Modify it to:

The code is as follows:

# PCI device 0x1022:0x2000 (pcnet32)

SUBSYSTEM== "net", ACTION== "add", DRIVERS== "? *", ATTR {address} = = "00:0c:29:85:XX:XX", ATTR {dev_id} = = "0x0", ATTR {type} = = "1", KERNEL== "eth*", NAME= "eth0"

At this point, I believe you have a deeper understanding of "what to do if you can't find a network card in the Ubuntu system in the Vmware virtual machine". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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