How to find out Router mac address

by Vivek Gite on February 7, 2006 · 17 comments

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:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

{ 17 comments… read them below or add one }

1 Mobile guy January 16, 2008

Very useful, thanks!

Reply

2 harsha March 15, 2009

Thank you sir, i was helpful.

Reply

3 harsha March 15, 2009

i mean to say it was helpfull sorry spell mistake earlier.

Reply

4 sivaram March 24, 2009

thanks alot, the information that you provided was useful to me.

Reply

5 shahid April 21, 2009

i am very excited to know the ip dos command.please help me…….

Reply

6 Dheeraj April 22, 2009

Thank u very much. very usefull commands and i’m going to write these in my mind.

Thanks again.

Reply

7 shahid April 25, 2009

please give me major command of windows xp,Specially on networking

Reply

8 Major Commando June 11, 2009

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!

Reply

9 confilit January 6, 2010

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

Reply

10 Salifu Abdul-Mumin January 27, 2010

Is there a way I can retrieve the mac address of packets arriving at my host in LAN

Reply

11 Bimal das March 21, 2010

Sir, plz tell me about collisions means

Reply

12 Cassie April 6, 2010

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!

Reply

13 Thomas August 5, 2010

this helped me a lot thanks

Reply

14 willy December 1, 2010

good job

Reply

15 Drygo April 21, 2011

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?

Reply

16 Ritesh May 30, 2011

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

Reply

17 Madhab Mathema July 19, 2011

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).

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 9 + 10 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: