In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "how to quickly replace IP with linux". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to replace IP quickly by linux".
Virtual IP is often used when Linux is highly available. Two IP can be configured for a network card on windows, and can be added directly using the ip command in Linux.
Add
Ip address add 192.168.1.200/24 broadcast 192.168.1.255 dev wlp58s0
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/24 broadcast 192.168.1.255 dev wlp58s0
Application
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.
Summary
None of these operations are saved to the configuration file and are invalidated after restart. Therefore, we need to write our configuration information into the configuration file.
At this point, I believe you have a deeper understanding of "how to quickly replace IP by linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.