MAC is acronym for for Media Access Control address. It is a unique identifier attached to almost most all networking equipment such as Routers, Ethernet cards and other devices.
If you do not have access to router admin interface (via telnet or webbased), use following method to find out router MAC address.
You need to use arp command (available on both Windows, Linux/Unixish systems).
arp manipulates the kernel's ARP cache in various ways. The primary options are clearing an address mapping entry and manually setting up one. For debugging purposes, the arp program also allows a complete dump of the ARP cache.
arp shows the entries of the specified hosts. If the hostname parameter is not used, all entries will be displayed.
Task: Find out router Mac Address
To find out your router MAC address, use arp command as follows:
$ /usr/sbin/arp -a
OR
$ arp -a
Output:
router (192.168.1.254) at 00:08:5C:00:00:01 [ether] on eth0 fbsd6 (192.168.1.16) at 00:0F:EA:91:04:07 [ether] on eth0
In above example 00:08:5C:00:00:01 is MAC address of my router. If you cannot find MAC address then just ping to your router once (my router had 192.168.1.254 IP)
$ ping 192.168.1.254
And then run (type arp -a) above arp command again. If you have telnet access to router then you can just telnet into router and find out MAC address:
$ telnet 192.168.1.254
Output:
Welcome to nixCraft Router! Login: admin Password:
Once logged in type ifconfig command:
$ ifconfig br0
Output:
br0 Link encap:Ethernet HWaddr 00:08:5C:00:00:01
inet addr:192.168.1.254 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:48574 errors:0 dropped:0 overruns:0 frame:0
TX packets:61329 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:9146189 (8.7 MiB) TX bytes:74456679 (71.0 MiB)Please note that your interface name (br0) could be different. You can also use ifconfig -a command.
Windows XP/NT/2003 find out Router Mac address
If you are using Microsoft Windows XP then you need to open MS-DOS shell prompt first. Click on Start > Run > Type cmd command followed by ENTER key. Then at C:\> prompt, type arp command as follows:
C:\> arp -a
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- My 10 UNIX Command Line Mistakes
- Linux: 20 Iptables Examples For New SysAdmins

- 25 PHP Security Best Practices For Sys Admins
- The Novice Guide To Buying A Linux Laptop
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
Facebook it - Tweet it - Print it -

{ 17 comments… read them below or add one }
Very useful, thanks!
Thank you sir, i was helpful.
i mean to say it was helpfull sorry spell mistake earlier.
thanks alot, the information that you provided was useful to me.
i am very excited to know the ip dos command.please help me…….
Thank u very much. very usefull commands and i’m going to write these in my mind.
Thanks again.
please give me major command of windows xp,Specially on networking
shahid asked:
please give me major command of windows xp,Specially on networking
Go to Start, Run. Type in CMD and click OK.
This opens a command window in DOS mode.
Then, type IPCONFIG and press Enter.
Also
IPCONFIG -H (for help with the command options)
IPCONFIG -ALL (To display all of the network parameters on that machine)
Every Windows system comes with a Help system, learn how to use it!
(RTFM – Read The Formal Manual)
Good Luck!
sir.. i have claim here.. this command ‘arp -a’ use to get Mac address of LAN port side.. but if u need WAN Mac address.. then i think its better way to go Router GUI setup .. such as to see & find in ‘Device Info’ etc.. or some other router Option..
Thanks
Is there a way I can retrieve the mac address of packets arriving at my host in LAN
Sir, plz tell me about collisions means
Thank you so much! I did this while my boyfriend was sleeping and boy was he sure proud of me! This information was extremely helpful and I learned a lot. I will definitely be guiding friends here to help fix their problems as well!
this helped me a lot thanks
good job
My gateway adress is 10.0.1.1 and its responding to ping. But i cant reach my router in the webbrowser with that. i dont know why, cause it says its my gateway (router ip). Are the router blocking connectins or something? and is it anyway to fix it?
Hi,
Command to find MAC IP address from the LAN same Subnet.
for ip in $(seq 1 254); do arping -c 1 172.16.0.$ip | grep Unicast >>/home/ree/ipmacfind.txt; done ;
Thanks
Very helpful indeed! Thank you
I wonder if command “arp -a” gives MAC address of my wireless router if the command is given on a desktop connected to LAN by ethernet (My workplace uses both integrated wireless and wired Internet access).