HowTo: Find Out Router Mac Address

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

Fig.01: Find Router Mac Address

Another example from my linksys router, that is directly connected to the Internet via high speed ADSL2+ connection:

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.

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 22 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
22 comments… add one
  • Mobile guy Jan 16, 2008 @ 13:45

    Very useful, thanks!

  • harsha Mar 15, 2009 @ 6:36

    Thank you sir, i was helpful.

  • harsha Mar 15, 2009 @ 6:37

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

  • sivaram Mar 24, 2009 @ 14:32

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

  • shahid Apr 21, 2009 @ 9:25

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

  • Dheeraj Apr 22, 2009 @ 8:31

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

    Thanks again.

  • shahid Apr 25, 2009 @ 12:21

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

  • Major Commando Jun 11, 2009 @ 19:12

    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!

  • confilit Jan 6, 2010 @ 21:34

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


  • Salifu Abdul-Mumin Jan 27, 2010 @ 19:13

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

  • Bimal das Mar 21, 2010 @ 18:19

    Sir, plz tell me about collisions means

  • Cassie Apr 6, 2010 @ 8:21

    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!

  • Thomas Aug 5, 2010 @ 4:03

    this helped me a lot thanks

  • willy Dec 1, 2010 @ 8:14

    good job

  • akanksha Apr 19, 2011 @ 7:18

    how can we check if there is any hub connected in our network

  • Drygo Apr 21, 2011 @ 14:49

    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?

    • kipbii Mar 26, 2015 @ 6:31

      change your computer ip to give it the gateway

  • Ritesh May 30, 2011 @ 3:43


    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 ;


  • Madhab Mathema Jul 19, 2011 @ 9:37

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

  • Raphae Halim Feb 28, 2012 @ 9:45

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

  • Dennis Apr 11, 2012 @ 11:53

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

    • 🐧 nixCraft Apr 11, 2012 @ 12:33

      To display the ARP cache tables for all interfaces, type (no need to type c:>):

      arp -a

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum