In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article is about which command to delete the ip address 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.
The command for linux to delete the ip address is "ip addr", which is used to view and manipulate the ip address; to delete the specified ip address, use the "ip addr del ip address dev interface" statement, and to clear all the ip of the specified network card, use the "ip addr flush dev interface" statement.
The operating environment of this tutorial: Red Hat Enterprise Linux 7.3 system, Dell G3 computer.
The command for linux to delete the ip address is "ip addr".
The abbreviation of "ip addr" is ip a. You can check the ip, mac and so on of the network card.
There are two ways to delete an ip address:
1. Delete the specified ip
Ip addr del ip address dev interface
2. Clear all ip of the specified network card
Ip addr flush dev interface
Extended knowledge: other uses of "ip addr"
1. Use "ip addr" to view the information of the specified network card.
Ip addr show device
For example, check the information of the network card interface, that is, ip addr show eth0.
two。 Add ip
Ip addr add ip/netmask dev interface
For example, add a 172.25.21.1ax 24 address to eth0.
Ip addr add 172.25.21.1/24 dev eth0
3. Giving an alias to the Nic is equivalent to binding an extra ip to the Nic.
Usage: for example, add an alias to the network card eth0
Ip addr add 172.25.21.1/32 dev eth0 label eth0:1
4. Delete alias
Ip addr del ip/netmask dev eth0, thank you for your reading! This is the end of the article on "which is the order to delete the ip address 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.