Skip to content
masterclass Buddy

Linux & Shell · Command

ip

ip address manages IPv4 and IPv6 addresses attached to network devices. It can display, add, change, replace, delete, save, and flush addresses.

Last updated

Syntax

ip [ OPTIONS ] address { COMMAND | help }
ip address { add | change | replace } IFADDR dev IFNAME [ LIFETIME ] [ CONFFLAG-LIST ]
ip address del IFADDR dev IFNAME [ mngtmpaddr ]
ip address { save | flush } [ dev IFNAME ] [ scope SCOPE-ID ] [ metric METRIC ] [ to PREFIX ] [ FLAG-LIST ] [ label PATTERN ] [ up ]
ip address [ show [ dev IFNAME ] [ scope SCOPE-ID ] [ to PREFIX ] [ FLAG-LIST ] [ label PATTERN ] [ master DEVICE ] [ type TYPE ] [ vrf NAME ] [ up ] [ nomaster ] [ proto ADDRPROTO ] ]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • ip
  • ip link
  • ip route
  • ip-neighbour

Source: ip-address(8) - Linux manual page. Checked 2026-11-03.