Find the Hardware Address or MAC address of the Available Interfaces of your Linux System

Shahriar Shovon

Supported OS

  • All

Categories

Share this post with your friends

To find the hardware address or MAC address of the available network interfaces on Linux, use the following command, sudo ip link show 1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: enp0s3: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000 link/ether 08:00:27:45:4e:87 brd ff:ff:ff:ff:ff:ff 3: virbr0: mtu 1500 qdisc noqueue state DOWN mode DEFAULT link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff 4: virbr0-nic: mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT qlen 500 link/ether 52:54:00:bb:2e:64 brd ff:ff:ff:ff:ff:ff You can see that, the result shows the network interfaces with numbers 1, 2, 3, 4 and so on. I have 4 network interfaces on my Linux system. The first one is lo, which is a loopback interface with the hardware address 00:00:00:00:00:00. The second one is enp0s3, which is the ethernet interface with the hardware address 08:00:27:45:4e:87. The third one, virbr0, is a bridge interface with the MAC address 00:00:00:00:00:00. The fourth one is virbr0-nic, which is another bridge interface with the MAC address 52:54:00:bb:2e:64