Cisco Tips & Tricks

May 3, 2006

Binding IP Addresses to MAC Addresses

Filed under: Switching — ciscotips @ 6:26 pm

If you need to set the IP addresses on several devices that were connected to the network but had not been configured. If you know the first four digits of the OrganizationallyUnique Identifier (OUI), so for locations that had switches you can use the following command to learn the MAC addresses:

sh mac address-table | include xxxx (xxxx = first four digits of the OUI)

In config t, using the MAC address above, you can bound the IP to the MAC:

arp xx.xx.xx.xx yyyy.yyyy.yyyy.yyyy arpa(x = IP y = MAC)

You will be able to Telnet to the device and complete the network configuration. For sites that did not have switches, you can turn on Address Resolution Protocol (ARP) debugging in therouter (only if the sites had fewer other devices and low traffic): debug arp.

Clear the arp table: clear arp.

Simply monitor the debug session for the devices to appear in the router log (referring to the first four digits of the MACaddress). Turn off debug: no debug all.

In config t, using the MAC address found in the log, the IP binding can be done:

arp xx.xx.xx.xx yyyy.yyyy.yyyy.yyyy arpa(x = IP y = MAC)

About these ads

21 Comments »

  1. how toconfigure mac binding

    Comment by rakesh — February 19, 2007 @ 9:17 am

    • same here mr. rakesh

      Comment by mahesh — September 24, 2011 @ 2:36 pm

  2. Well I have studied the whole article above article, but understood not even a single word. Can you please tell me the simple way to bind mac and ip? I would be thankful for that.

    Comment by Waqas A Tanoli — April 27, 2007 @ 3:18 pm

  3. Mac Binding

    Comment by jitendra — November 24, 2008 @ 7:24 am

  4. Hello webmaster
    I would like to share with you a link to your site
    write me here preonrelt@mail.ru

    Comment by Alexwebmaster — March 3, 2009 @ 11:36 am

  5. I have a 7206 router (interface giga0) connect to a switch 2960 (interface giga0). Interface gigao 0 of 7206 has many ip because of using vlan, one of these ip is x.x.x.1. I want to bind the mac of interface giga0 (7206 router) to ip x.x.x.1 but other ips in interface giga0 (7206 router) with same mac address are not affected. Can you help me?

    Comment by newcomer — May 22, 2009 @ 3:27 am

  6. hello everyone, i just want know, what is the meaning of Ip mac binding, because in my new router it have this funcion and i do not know thank you!

    Comment by Jay XxX — August 19, 2009 @ 4:41 am

  7. Hello Can you help me what software support this technologies?

    Comment by Elik — September 22, 2009 @ 2:17 pm

  8. need help for MAC binding on cisco router

    Comment by sudhir — December 23, 2009 @ 5:27 am

  9. Hi,
    how can i do the port binding?

    thanks,

    Abhay

    Comment by abhay — February 12, 2010 @ 9:06 am

  10. In config t, using the MAC address above, you can bound the IP to the MAC:

    arp xx.xx.xx.xx yyyy.yyyy.yyyy.yyyy arpa(x = IP y = MAC)

    When you do this, will it be permanent? or it can be overwritten by another device with the same IP address but a different MAC? Please advise. Thanks

    Comment by Carlos — August 5, 2010 @ 1:50 am

  11. Hi,

    I want to know that is there any method to bind the specific IP with MAC address. Actually, i want that in my office no one else use my IP as provided to me. Please revert me with the configuration. It has been mentioned that we dont have active directory and dhcp services in our network.
    static routing only.

    thanks
    harsh

    Comment by harsh — October 18, 2010 @ 11:46 am

  12. Hi,

    I want to know that is there any method to bind the specific IP with MAC address. Actually, i want that in my office no one else use my IP as provided to me. Please revert me with the configuration. It has been mentioned that we dont have active directory and dhcp services in our network.
    static routing only.

    thanks

    varun

    Comment by varun — October 18, 2010 @ 11:47 am

    • yaar main v labh reha isi da solution je mile ta dassi

      Comment by varun — October 18, 2010 @ 11:47 am

  13. did not get even a single word………

    Comment by mahesh — September 24, 2011 @ 2:34 pm

  14. the article sucked bigtime

    Comment by sarmed — December 17, 2011 @ 4:58 am

  15. zum Hey there, I honestly like your site. So much usefull insight. Thank you for sharing it with us. Kind regards!

    Comment by informationen — May 5, 2012 @ 9:34 am

  16. Howdy! This post couldn’t be written much better! Looking through this post reminds me of my previous roommate! He always kept talking about this. I’ll
    forward this article to him. Fairly certain he’s going to have a good read. Thanks for sharing!

    Comment by Leonor — May 14, 2013 @ 6:20 pm

  17. Greetings! Very useful advice in this particular article!
    It’s the little changes that make the most important changes. Thanks for sharing!

    Comment by becoming an expert witness — June 8, 2013 @ 12:55 am

  18. Fantastic site. Lots of useful info here. I
    am sending it to several friends ans additionally sharing in delicious.
    And obviously, thanks in your effort!

    Comment by ip phones — July 17, 2013 @ 8:50 am

  19. check out this with image step by step
    http://cisconetworkingcenter.blogspot.com/2013/11/how-to-find-specific-mac-address-or-ip.html

    Comment by HOTH — November 26, 2013 @ 4:34 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Silver is the New Black Theme. Create a free website or blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 43 other followers

%d bloggers like this: