The following command lists the interface names on the left and the associated MAC addresses on the right.Įth0: 02:01:e4:a2:3a:31 Find MAC address from /sys in Linux Link/ether 70:ca:9b:ce:67:ae brd ff:ff:ff:ff:ff:ff This command will list the interface status, MAC address, MTU size, etc.ġ: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 The number next to link/ether is the MAC address. The second way to find MAC address is using “ ip link show” command. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0ĭevice memory 0xb1960000-b197ffff Find MAC address with ip link show command in Linux This command will list network interface name,Ip address, MTU size, etc. The number next to ether is the MAC address. All we need is to open the terminal then type ifconfig -a in the prompt. The best Linux command to find MAC address is using ifconfig command. Find MAC address with ifconfig command in Linux 00:1B:44:11:3A:B7 is an example of a MAC address. MAC stands for Media Access Control, and each identifier is intended to be unique to a particular device.Ī MAC address consists of six sets of two characters, each separated by a colon. The following commands can get you the MAC address of your network interface in Linux.įrom Wikipedia, A MAC address is the unique identifier that is assigned by the manufacturer to a piece of network hardware (like a wireless card or an ethernet card). These commands are safe to run without changing anything. Here are some methods to get the MAC address. How to list MAC address on Linux is a commonly asked question during a Linux job interview.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |