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

The method of changing the name of Network Card Eth0 by Centos7

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

Share

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

This article introduces the method of changing the name of the network card Eth0 by Centos7 and shares it with you. I hope it will be helpful to you.

After installing the Centos7 system, the name of the network card has changed from before, for example!

Even if it looks uncomfortable, it won't affect the use, it's just the name of a network card.

Eno16777736

1. First edit the configuration file of the network card and change the NAME DEVICE entry to eth0.

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

two。 Rename the profile.

[root@localhost yum.repos.d] # cd / etc/sysconfig/network-scripts/

[root@localhost network-scripts] # mv ifcfg-eno16777736 ifcfg-eth0

3. Disable the predictable naming convention. For this, you can pass the kernel parameters of "net.ifnames=0 biosdevname=0" at startup. This is done by editing / etc/default/grub and adding "net.ifnames=0 biosdevname=0" to the GRUBCMDLINELINUX variable.

[root@localhost network-scripts] # vim / etc/default/grub

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

[root@localhost network-scripts] # grub2-mkconfig-o / boot/grub2/grub.cfg

5. Restart the machine. After booting, the name of the network card becomes Eth0.

[root@localhost network-scripts] # init 6

After rebooting, verify!

Restart the system, verify! The general level of technology is limited, and I hope you can give us more advice in the future!

The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.

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