27 Sep 09 How-To: Find Ethernet / MAC address on Linux

In Linux networking is easy, you just have to know how. We will discuss below how you can find your own machine’s MAC address for all the attached ethernet cards as well as MAC addresses on other machines in the network.

How to find Ethernet / MAC Address of ethernet cards in your machine

ifconfig -a

In the output look for lines starting with eth0, eth1 etc. You will find an entry like this:

eth0 Link encap:Ethernet HWaddr00:17:31:2B:A3:7C

The ethernet address is at the very end (shown here in italics) for the Ethernet card eth0.

Normally each machine has one ethernet card. However there could be multiple ethernet cards designated as eth1, eth2, eth3 etc.

You can similarly find the MAC address for each.

How to find Ethernet / MAC address of other machines in your intranet

arp

You will have entries in the form:

Address HWtype HWaddress Flags Mask Iface
172.16.0.69 ether 00:19:D1:3E:DD:9CC eth0

Not only can you get the MAC address but also the associated IP address and network interface of the machine this way.

Related Posts

  1. Monitor Server And Network in Linux
  2. How-to: Display the process in Linux System
  3. How-to: know the Uptime in My Linux System
  4. Trace System Calls and Signals in Linux
  5. Useful FREE 7 Linux Software

About the Author

alman

Hi... I am alman admin of this oorch.com. I am web development enthusiastic. Recently I had started digging lot on wordpress and web developments stuffs.



Tags: , ,

blog comments powered by Disqus
msgbartop
© oOrch Blog / Design: alman and Ericulous
msgbarbottom