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 add multiple network cards and rename CentOS7 in VMware10

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the VMware10 how to add multiple network cards for CentOS7 and rename the relevant knowledge, the content is detailed and easy to understand, simple and fast operation, with a certain reference value, I believe that you read this VMware10 how to add multiple network cards for CentOS7 and rename the article will have a harvest, let's take a look.

One: rename it to eth0:

After installation, a look at the name of the network card, all into a long string of numbers enoxxxxxxxxx.

If you still want to continue to change to the previous eth0,eth1 naming, execute the following command:

Vim / etc/sysconfig/grub

Add a net.ifnames=0 biosdevname=0 statement, as shown in the red box below

Grub2-mkconfig-o / boot/grub2/grub.cfg

Mv / etc/sysconfig/network-scripts/ifcfg-enoxxxxxx / etc/sysconfig/network-scripts/ifcfg-eth0

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

Change the previous name=en0xxxxx to name=eth0 device and also to device=eth0

The restart of reboot is complete.

Second: do you want to add the network card eth1 again? :

All kinds of google, baidu, and restart just don't work:

To sum up, if the hwaddr and the real mac address in centos7 are not correct, restart the network service to report a lsb error.

You can use ifconfig or ip addr to check the specific mac address.

Finally, it is found that when the virtual machine is turned on, the network card that is not in effect will be deleted with the setting of vmware, and then another network card will be added. The virtual machine will be refreshed automatically, and the newly added network card will appear with ifconfig. At this point, you only need to copy a / etc/sysconfig/network-scripts/ifcfg-eth1 file.

This is the end of the article on "how to add multiple network cards and rename CentOS7 in VMware10". Thank you for reading! I believe that everyone has a certain understanding of the knowledge of "how to add multiple network cards and rename CentOS7 in VMware10". If you want to learn more, you are 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

Development

Wechat

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

12
Report