

Valid_lft 70000sec preferred_lft 70000secįrom the above example, we can see that there are three network interfaces l0, eth0 and eth1. Inet 10.1.0.143/24 brd 10.1.0.255 scope global dynamic noprefixroute eth0ģ: eth1: mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 ip addr show up – Show IP address for the running interfacesīy default, the ip addr command will display ip information of all the network interfaces on the Linux system.ġ: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000.ip addr show dev em1 – Display information only for device em1.ip addr – Show IP address for all interfaces.I find this command very useful, as it gives me more detailed information about my system’s IP address and the status of the network interface.įurthermore, we can also type ip address or ip a for short.

This command will list IP address, MAC address, MTU size and other information about a network interface. The number next to inet is the IP address. All we need is to open the terminal then type ip addr in the prompt and press enter. The most convenient way to find ip address in Linux is using ip addr command.


Related: Step by Step Guide to troubleshoot a network issue in Linux Find IP address with ip addr command in Linux The output will display the ip address for all the network interfaces.Type ifconfig -a or ip addr or ip route command.In this blog post, we will discuss three methods to find the IP address of a Linux system: using the ifconfig command, using the ip command, and using the ip route command. An IP address is a unique identifier assigned to a computer or device connected to the internet.
