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 set the name of the network card when installing centos7?

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

Share

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

How to set the name of the network card when installing centos7? I believe that most people have not yet learned this skill, in order to let you learn, to give you a summary of the following content, do not say much, let's move on.

The name of the network card of centos7 defaults to the slot number of the network card on the motherboard, such as ens33.

The name of the Nic we are used to is ethX, and the modification method is as follows:

Method 1: set up when you install the system.

1. Choose to install centos

2. Press tab key

3. The last input of the prompt line that appears at the bottom of the screen: net.ifnames=0 biosdevname=0

4. Enter and start installing the system.

Method 2: after the system has been installed, modify the name method of the network card.

1. Edit the Nic name information in the Nic configuration file:

Vim / etc/sysconfig/network-scripts/ifcfg-ens33

2. Rename the Nic profile name information:

Mv ifcfg-ens33 ifcfg-eth0

3. Modify the Nic name rule kernel file:

/ etc/default/grub- > net.ifnames=0 biosdevname=0 "to the GRUB_CMDLINE_LINUX variable

4. Make the system reload the grub configuration file:

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

After reading the above, have you mastered the method of setting up the network card when installing centos7? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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