In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.