MAC address Linux
MAC address (Media Access Control address) is a quasi-unique identifier consists of a six byte number that attached to most network adapter card or network interface card (NIC). As such, all network cards, whether it’s of Ethernet NIC, Gigabit Ethernet NIC or wireless 802.11a/b/g/n WiFi or HiperLAN adapter, should have different MAC addresses, which also known as Ethernet Hardware Address (EHA) or adapter address.
Sometimes it is needed to see MAC (Media Access Control) address of the devices like computers, routers, LAN or some others. This article describes a quick method to look up MAC address Linux.
- Open a terminal or console window.
- In the window type ifconfig.
- MAC address Linuxis marked as HWaddr and listed as six groups of two hexadecimal digits, separated by colon (:).
======================================================================= root@host:~# ifconfig
eth1 Link encap:Ethernet HWaddr 00:10:5A:0D:5A:A5
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::210:5aff:f00d:5bb5/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1206866 errors:54423 dropped:0 overruns:0 frame:81536
TX packets:941228 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:332783971 (317.3 MiB) TX bytes:214601237 (204.6 MiB)
Interrupt:10 Base address:0xa000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1573 errors:0 dropped:0 overruns:0 frame:0
TX packets:1573 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:99765 (97.4 KiB) TX bytes:99765 (97.4 KiB)
=======================================================================