1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-12 11:15:26 +02:00
tldr/pages/linux/ip-address.md
2025-03-09 14:01:49 +02:00

28 lines
757 B
Markdown

# ip address
> IP Address management subcommand.
> More information: <https://manned.org/ip-address>.
- List network interfaces and their associated IP addresses:
`ip {{[a|address]}}`
- Filter to show only active network interfaces:
`ip {{[a|address]}} {{[s|show]}} up`
- Display information about a specific network interface:
`ip {{[a|address]}} {{[s|show]}} {{eth0}}`
- Add an IP address to a network interface:
`sudo ip {{[a|address]}} {{[a|add]}} {{ip_address}} dev {{eth0}}`
- Remove an IP address from a network interface:
`sudo ip {{[a|address]}} {{[d|delete]}} {{ip_address}} dev {{eth0}}`
- Delete all IP addresses in a given scope from a network interface:
`sudo ip {{[a|address]}} {{[f|flush]}} {{eth0}} scope {{global|host|link}}`