In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, Xiaobian will bring you about how to modify the name of the network card in centos7. The article is rich in content and analyzes and narrates it from a professional perspective. After reading this article, I hope you can gain something.
1. Copy NIC interface configuration file
Ruby Code Copy content to clipboard
# cd /etc/sysconfig/network-scripts/
# cp ifcfg-ens32 ifcfg-eth0
Edit ifcfg-eth0 to change ens32 in the file to eth0
Ruby Code Copy content to clipboard
# cd /etc/sysconfig/network-scripts/
# cp ifcfg-ens32 ifcfg-eth0
Edit ifcfg-eth0 to change ens32 in the file to eth0
2. modify the grub
Ruby Code Copy content to clipboard
# vim /etc/default/grub
Modify the GRUB_CMDLINE_LINUX line by adding net.ifnames=0 biosdevname=0 as follows:
GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet net.ifnames=0 biosdevname=0"
# vim /etc/default/grub
Modify the GRUB_CMDLINE_LINUX line by adding net.ifnames=0 biosdevname=0 as follows:
GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet net.ifnames=0 biosdevname=0"
3. Regenerate the grub.cfg file
Python
Ruby Code Copy content to clipboard
# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-327.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-327.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-cbe15acd3ca347f4a373c8f4adaf2619
Found initrd image: /boot/initramfs-0-rescue-cbe15acd3ca347f4a373c8f4adaf2619.img
done
# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-327.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-327.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-cbe15acd3ca347f4a373c8f4adaf2619
Found initrd image: /boot/initramfs-0-rescue-cbe15acd3ca347f4a373c8f4adaf2619.img
done
The above is how to modify the name of the network card in centos7 shared by everyone. If you happen to have similar doubts, you may wish to refer to the above analysis for understanding. If you want to know more about it, please pay attention to 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.