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 modify the naming rules of Network Card by RHEL

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

Share

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

How does RHEL modify the naming rules of the network card? I believe that many novice rookies can do nothing about this. Through the summary of this article, I hope you can find a solution. The following information is about the detailed steps of modifying the naming rules of the network card.

First, modify grub

The purpose of adding "net.ifnames=0 biosdevname=0" to the grub is to disable the predictable naming convention.

[root@ys ~] # vim / etc/sysconfig/grubGRUB_TIMEOUT=5GRUB_DISTRIBUTOR= "$(sed's, release. * $, g' / etc/system-release)" GRUB_DEFAULT=savedGRUB_DISABLE_SUBMENU=trueGRUB_TERMINAL_OUTPUT= "console" GRUB_CMDLINE_LINUX= "rhgb quiet net.ifnames=0 biosdevname=0" GRUB_DISABLE_RECOVERY= "true"

Second, generate startup grub file

Regenerate the startup grub file using the grub2-mkconfig command

[root@ys] # grub2-mkconfig-o / boot/grub2/grub.cfg

Third, restart the system

Check whether it is effective or not

After reading this article, have you learned to modify the naming rules of the network card? 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