#Linux command to find mac address ip mac
Every PC’s network device should have a unique MAC address.
![linux command to find mac address ip linux command to find mac address ip](https://ouilookup.com/images/wordpress/2020/03/ifconfig.png)
MAC address is another critical parameter of a network device, including your PC’s hardware or a server. Typically, eth0 is for Ethernet connection, and wlp2s0 for Wireless connection.įor example, use eth0 : ip addr show eth0 Finding the MAC Address of the Linux System Inet6 1:2:00:33:333/64 scope global mngtmpaddr noprefixroute dynamic Valid_lft 548176sec preferred_lft 61403sec Inet6 AB:AD:AK:AI/64 scope global temporary dynamic Valid_lft 61791sec preferred_lft 61791sec Sample Output: 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 ip route list | grep defaultĪlternatively, you can also use device name in particular too, but you should know the names of network devices for that. If you are only interested in the default IP address that connects to the internet, use a grep parameter to list that one. It should display all available IP address including device names.
![linux command to find mac address ip linux command to find mac address ip](https://www.cyberciti.biz/media/new/faq/2007/10/How-to-Find-Default-Gateway-IP-in-Linux.jpg)
ip route list ip route list command usage in Ubuntu 17.10 Launch ‘Terminal’ and enter the following command to list all the IP address. s to display more information about the command ip command usage in Ubuntu 17.10 Finding the IP address of the Linux System