In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to modify centos7 and ubunt into a network card named eth0 and configure the address. The article is rich in content and analyzes and describes for you from a professional point of view. I hope you can get something after reading this article.
Centos7.6:
Edit / etc/default/grub file
GRUB_CMDLINE_LINUX= "net.ifnames=0 biosdevname=0"
Run the command grub2-mkconfig-o / boot/grub2/grub.cfg to modify the configuration file / etc/sysconfig/network-scripts/ifcfg-ens33
BOOTPROTO= "static"
IPADDR=172.18.29.200
NETMASK=255.255.0.0
GATEWAY=172.18.0.1
DNS1=180.76.76.76
Restart the system.
Ubuntu18.04:
The following command is preceded by sudo
Vi / etc/default/grub
GRUB_CMDLINE_LINUX= "net.ifnames=0 biosdevname=0"
Update-grub
Vim / etc/netplan/01-netcfg.yaml
Network:
Version: 2
Renderer: networkd
Ethernets:
Eth0:
Addresses:
-172.18.29.200 Universe 16
Gateway4: 172.18.0.1
Nameservers:
Search: [mydomain, otherdomain]
Addresses: [180.76.76.76]
This is how the centos7 and ubunt shared by the editor are modified into a network card named eth0 and configured with an address. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow 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.