Skip to main content

IP Address management subcommand.

# To list network interfaces and their associated IP addresses:
ip address

# To filter to show only active network interfaces:
ip address show up

# To display information about a specific network interface:
ip address show dev <eth0>

# To add an IP address to a network interface:
ip address add <ip_address> dev <eth0>

# To remove an IP address from a network interface:
ip address delete <ip_address> dev <eth0>

# To delete all IP addresses in a given scope from a network interface:
ip address flush dev <eth0> scope <global|host|link>