The ip addr
command in Linux is used to display and manipulate IP addresses associated with network interfaces. When used without any options, ip addr
shows a detailed summary of all network interfaces and their corresponding IP addresses, including both IPv4 and IPv6. This command is a modern and more feature-rich replacement for the older ifconfig
command.
Here's a breakdown of what you'll see when you run
ip addr
:- Interface Name: Each network interface is listed, e.g.,
lo
(loopback),eth0
(ethernet),wlan0
(wireless). - Interface Status: Indicates whether the interface is up or down.
- MAC Address: The hardware address of the interface.
- IPv4 and IPv6 Addresses: The IP addresses assigned to the interface, including their network mask.
- Other Details: Additional information like the MTU (Maximum Transmission Unit), queue discipline, state, and group.