Open a terminal and run
ip link
. Each interface is listed with its MAC address after link/ether.
Terminal
ip
-
Open a terminal. On most desktops
Ctrl + Alt + Tdoes it. - Run
ip link. -
Find your interface. Wi-Fi is usually named
wlan0or something likewlp3s0, and wired iseth0orenp2s0. - The MAC address is the value after link/ether on the line below it.
nmcli
- Run
nmcli device show. -
Each device has a GENERAL.HWADDR
line with its MAC address. Add the interface name, as in
nmcli device show wlan0, to see just one.
sysfs
The kernel also exposes the address as a file.
cat /sys/class/net/wlan0/address
prints it and nothing else, which is handy in scripts.
ifconfig
command still works if the net-tools package is installed, but
ip
replaced it years ago.
GNOME Settings (Ubuntu, Fedora and others)
- Open the Activities overview and start typing Wi-Fi, or Network for a wired connection.
- Click Wi-Fi or Network to open the panel.
- Click the gear button next to the active connection.
- The MAC address is listed as Hardware Address on the Details tab.
KDE Plasma
- Click the network icon in the system tray.
- Click your connection to expand it.
- Open the Details tab. The MAC address is listed there.
Why the address your router sees might be different
NetworkManager can hand a Wi-Fi network a different address from the one on the hardware. The setting is wifi.cloned-mac-address. Out of the box it is set to preserve, which leaves the address alone, but some distributions set it to random or stable so that networks cannot track the laptop. Scanning for networks already uses a random address by default. A randomized address is locally administered, so a lookup on our home page will say so instead of naming the maker.
To check a connection
-
Run
nmcli connection showto list your connections by name. -
Run
nmcli connection show "Home Wi-Fi" | grep cloned-mac-address, with your connection's name. - Empty, preserve or permanent means the hardware address is used. random, stable or stable-ssid means a made-up one is.
To use the hardware address on a network
Run
nmcli connection modify "Home Wi-Fi" wifi.cloned-mac-address permanent
and reconnect.
These steps follow GNOME's and NetworkManager's documentation .