HowTo: Find Out Router Mac Address

last updated in Categories , , , ,

How do I display or find out the MAC address for my small home / business router?

MAC is acronym for Media Access Control address. It is a unique identifier attached to almost most all networking equipment such as Routers, Ethernet cards, Switches/Hubs and other devices. If you do not have access to router admin interface (via telnet or webbased gui), use the following method to find out router MAC address.


arp Command

You need to use the arp command (available on both Windows, Linux/Unixish systems). arp command 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 Under Linux / Mac OS X / Unix Like Operating Systems

First, find out your default router (gateway IP address), enter:
$ /sbin/route
Sample outputs:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface      *      UH    0      0        0 ppp0 UGH   0      0        0 eth0     *        U     0      0        0 eth0        *            U     0      0        0 ppp0
default         UG    0      0        0 eth0

The default router IP is Send ICMP ECHO_REQUEST (ping request) to route IP, enter:
$ ping -c 4
Type the following command to find out your router MAC address. enter:
$ /usr/sbin/arp -a
$ arp -a
Sample outputs:

router ( at 00:08:5C:00:00:01 [ether] on eth0
fbsd6 ( at 00:0F:EA:91:04:07 [ether] on eth0

In above example 00:08:5C:00:00:01 is MAC address for router.

A Note About telnet / ssh Access

On most router remote management via telnet / ssh is off by default. If router remote management is turned on, type the following command to login into router via telnet or ssh command (telnet command works under MS-Windows oses too):
$ telnet
$ ssh user@
Sample output:

Welcome to nixCraft Router!
Login: admin

Once logged in type the ifconfig command, enter:
$ ifconfig br0

        Link encap:Ethernet  HWaddr 00:08:5C:00:00:01
        inet addr:   Bcast:  Mask:
        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 interface name (br0) may be different on your router. Use ifconfig -a command to find out interface names.

A Note About WebGUI

Almost all modern routers can be configured via browser based web administration GUI. You can access this interface by accessing the IP address (which by default will be or unless you have changed it. You may refer to the manual of your router to know the default IP address) of the router on a web browser. In our example, is router IP. First, type in a browser. The router login screen appears. You need to supply the username (in most cases it is admin), and the password. The router logs you in. Click on Status tab (or similar option in your web gui):

Find Router Mac Address
Fig.01: Find Router Mac Address

Another example from my linksys router, that is directly connected to the Internet via high speed ADSL2+ connection:
Linksys router
Fig.02: Linksys router mac address (WAN interface)

Task: Find Out Mac Address Under MS-Windows XP/NT/2003/7/Vista

If you are using Microsoft Windows XP/7/Vista (or 2003/2008 server edition) then you need to open MS-DOS shell prompt first. Click on Start > Run > Type cmd command followed by ENTER key. At C:\> prompt, type arp -a command as follows. This command is available only if the Internet Protocol (TCP/IP) protocol is installed as a component in the properties of a network adapter in Network Connections:
arp -a

Page last updated at 6:55 PM, April 11, 2012.


Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

22 comment

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

    Thanks again.

  2. 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.
    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!

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


  4. 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!

  5. My gateway adress is 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?

  6. 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 ;


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

  8. I was able to find out the WAN side MAC address of my ADSL router. Telnet , and ifconfig did the trick. Thanks! ;-)

  9. I am using XP but the command C:\> arp -a is not recognised. I tried alternate spaces but no success. Please advise? Thanks

    Still, have a question? Get help on our forum!