In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to quickly replace IP in Linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Add ip address add 192.168.1.200 dev wlp58s0 24 broadcast 192.168.1.255
When adding, you need to specify the mask and broadcast address, so that the machines of the same network segment can receive the broadcast of this address, and you also need to specify which device to add to. Here the wlp58s0 is the name of the network port.
Delete
The deleted command is similar to the added command, only you need to change add to del.
Ip address del 192.168.1.200 dev wlp58s0 application of 24 broadcast 192.168.1.255
When expanding the network segment, we do not want to restart the network card and cause the remote connection to be disconnected. We can first add the expanded network segment, and then delete the original IP and mask.
Ip address add 192.168.1.200/24 broadcast 192.168.1.255 dev wlp58s0ip address add 192.168.1.200/16 broadcast 192.168.255.255 dev wlp58s0ip address del 192.168.1.200/24 broadcast 192.168.1.255 dev wlp58s0
Only three steps are needed to complete the dynamic modification of the network segment, and the remote will not be disconnected at this time.
Thank you for reading! This is the end of the article on "how to quickly replace IP in Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.