From a687c64e3ff5e8d2d16c87bb2c637cd76cc409bc Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 27 Mar 2020 13:37:59 +0000 Subject: [PATCH] ip address: add page (#3930) --- pages/linux/ip-address.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pages/linux/ip-address.md diff --git a/pages/linux/ip-address.md b/pages/linux/ip-address.md new file mode 100644 index 0000000000..6fc3f7517e --- /dev/null +++ b/pages/linux/ip-address.md @@ -0,0 +1,27 @@ +# ip address + +> IP Address management subcommand. + +- List network interfaces and their associated IP addresses: + +`ip address` + +- Filter to show only active network interfaces: + +`ip address show up` + +- Display information about a specific network interface: + +`ip address show dev {{network_interface}}` + +- Add an IP address to a network interface: + +`ip address add {{ip_address}} dev {{network_interface}}` + +- Remove an IP address from a network interface: + +`ip address delete {{ip_address}} dev {{network_interface}}` + +- Delete all IP addresses in a given scope from a network interface: + +`ip address flush dev {{network_interface}} scope {{global|host|link}}`