Linux Commands / IT Support Guides
Inspect Linux interface addresses with ip
List the network interfaces and IP addresses Linux currently has.
Environment and inputs: Linux · Bash-compatible shell; package and service names vary by distribution
Understand the problem
Run the check on the affected machine or inside the affected container. Each environment may have its own interfaces and addresses.
Run the command
Run ip -brief address show for one compact row per interface. Find the row for the interface your application is expected to use.
ip -brief address show
Read the output
A row such as eth0 UP 192.0.2.25/24 shows the interface name, its state and an IPv4 address with a prefix length. A row can also list IPv6 addresses or have no address at all.
Choose the next step
If the intended interface lacks an address, check the configured address or DHCP assignment. If it has an address, check the route to the destination next.
Before making changes
Record the interface and addresses first. An interface can show UP even if the remote application is unreachable.