In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you how to add different IP segments to the CentOS single network card, which is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
Add different IP segments to a single network card in batch
70.39.112.194 add IP:70.39.112.195-222Universe 70.39.83.226-254
Vi / etc/sysconfig/network-scripts/ifcfg-eth0-range0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR_START=70.39.112.195
IPADDR_END=70.39.112.222
CLONENUM_START=0
GATEWAY=70.39.112.193
NETMASK=255.255.255.224
NO_ALIASROUTING=yes
Service network restart
After ifconfig, you can see IP:70.39.112.195-222corresponding to the network card number: eth0:0-eth0:27
So add IP in batches, and the network card will start after eth0:28.
The network card eth0 remains unchanged. Create a new file: ifcfg-eth0-range1
+
Vi / etc/sysconfig/network-scripts/ifcfg-eth0-range1 # pay attention to this second change
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR_START=70.39.83.226
IPADDR_END=70.39.83.254
CLONENUM_START=28 # pay attention to the second change
GATEWAY=70.39.83.225
NETMASK=255.255.255.224
NO_ALIASROUTING=yes
The above is how to add different IP segments to the CentOS single network card. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, 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: 253
*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.