Linux Networking Cheat Sheet/Show addresses for one interface

Inspect addresses for a specific device.

Section: Interfaces and Addresses

Show addresses for one interface

bash
bash
ip addr show dev eth0
Explanation

Inspect addresses for a specific device.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Interfaces and Addresses
Show IP addresses
Display IPv4 and IPv6 addresses on all interfaces.
OpenIn sheetbashsame section
Add IP address
Assign an additional IP address to an interface.
OpenIn sheetbashsame section
Delete IP address
Remove an IP address from an interface.
OpenIn sheetbashsame section
Show all interfaces
List network links and their state.
OpenIn sheetbashsame section
Bring interface up
Enable a network interface.
OpenIn sheetbashsame section
Bring interface down
Disable a network interface.
OpenIn sheetbashsame section