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

CentOS7 changes the name of the network card

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

One of the differences between CentOS7 and CentOS6 is that the name of the network card has changed

After installing the network card in CentOS7, it becomes ens37 or ens33 and so on. For convenience of operation, change the name of the network card to eth0. The name of the newly installed CentOS7 network card is ens33.

Edit the configuration file of the network card first, and change the NAME and DEVICE entries to eth0.

Rename the configuration file of the network card

Modify kernel parameters to disable the naming rules of the network card

By editing / etc/default/grub and adding "net.ifnames=0" to the GRUB_CMDLINE_LINUX variable

Run grub2-mkconfig-o / boot/grub2/grub.cfg to regenerate the GRUB configuration and update kernel parameters

Reboot command to restart the machine

When the system reboot is complete, it is found that the name of the network card becomes eth0.

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