
If you just need to pull MAC addresses for a system and pair to an interface, you can easily get it done via below Bash command. Or in simple way, you can also use the following command:Ĭommand: ifconfig | grep ether | cut -d ” ” -f 10Ĭommand: ifconfig | grep “ether*” | tr -d ‘ ‘ | tr -d ‘\t’ | cut -c 6-22 With the help of some regular expressions, you can also find the MAC addressĬommand: ip a | grep ether | cut -d ” ” -f6Īlternatively, you can also try the below command:Ĭommand: ip link show ens33 | grep link/ether | awk ‘’ In below screenshot, we have highlighted our MAC address for the ens33 interface. Start by opening a terminal and using the following ip command to view information for all installed network interfaces.

In this article, you will learn how to obtain the MAC address on a Ubuntu Linux system via many ways: Unlike IP addresses, which can change frequently and easily, MAC addresses are permanently tied to the hardware.

Every network interface has its own unique MAC address.
