{"id":1120,"date":"2014-07-22T17:32:38","date_gmt":"2014-07-23T00:32:38","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=1120"},"modified":"2014-07-22T17:32:38","modified_gmt":"2014-07-23T00:32:38","slug":"find-ip-address-of-a-device-connected-to-a-cisco-switch","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=1120","title":{"rendered":"Find IP address of a device connected to a Cisco switch"},"content":{"rendered":"<p>Cisco 3750:<br \/>\nIOS Version: 12.2(55)SE8<\/p>\n<p>Yes, I know there are some pricey software tools that will do this with a couple clicks.  But I don&#8217;t have budget for them.  So here is a simple way to determine the IP address of a device connected to a particular port on a Cisco switch.  <\/p>\n<p>First, determine the MAC address:<\/p>\n<blockquote><p>show mac address-table<\/p><\/blockquote>\n<p>This will output the VLAN, MAC address and the port for all the connected devices.  Here is an example:<\/p>\n<blockquote><p>  30    000c.2928.8da7    DYNAMIC     Gi1\/0\/18<br \/>\n  30    000e.0c30.e42a    DYNAMIC     Gi1\/0\/17<br \/>\n  30    0018.1900.19e0    DYNAMIC     Gi1\/0\/17<br \/>\n 100    000c.29b0.0b89    DYNAMIC     Gi2\/0\/36<br \/>\n 100    0080.a399.90f9    DYNAMIC     Gi3\/0\/7<br \/>\n 200    0023.246f.c77a    DYNAMIC     Gi2\/0\/42<br \/>\n 200    2c44.fd28.d315    DYNAMIC     Gi2\/0\/42<br \/>\n 200    7427.ea1b.551d    DYNAMIC     Gi3\/0\/42<br \/>\n 300    0004.006f.47ee    DYNAMIC     Gi3\/0\/47<br \/>\n 300    0021.b7ae.3f00    DYNAMIC     Gi6\/0\/45<br \/>\n 300    0030.c1ad.995b    DYNAMIC     Gi3\/0\/48<br \/>\n 300    0060.b05f.b290    DYNAMIC     Gi4\/0\/45<br \/>\n 300    00c0.ee19.f178    DYNAMIC     Gi2\/0\/48<br \/>\n 300    00c0.ee3a.a3c8    DYNAMIC     Gi3\/0\/43                         <\/p><\/blockquote>\n<p>So, if you know the port you can obviously find the corresponding MAC address.  Once you know the MAC address, you can determine the IP address by cross referencing that MAC address to the output from a &#8220;show arp&#8221; command.<\/p>\n<p>Here is some sample output:<\/p>\n<blockquote><p>Protocol  Address          Age (min)  Hardware Addr   Type   Interface<br \/>\nInternet  10.10.10.10             0   000e.0c09.fc6a  ARPA   Vlan400<br \/>\nInternet  10.251.11.250           &#8211;   000a.b8c0.0bc3  ARPA   Vlan300<br \/>\nInternet  10.10.10.11             0   0004.23b5.525c  ARPA   Vlan400<br \/>\nInternet  10.10.10.8              0   000e.0c08.b9d4  ARPA   Vlan400<br \/>\nInternet  10.10.10.9              0   000c.2934.423f  ARPA   Vlan400<br \/>\nInternet  10.10.10.14             4   0007.e924.54cc  ARPA   Vlan400<br \/>\nInternet  10.10.10.15             0   000e.0c08.f4e4  ARPA   Vlan400<br \/>\nInternet  10.10.10.12             2   000e.0c32.350e  ARPA   Vlan400<br \/>\nInternet  10.10.10.13             0   0007.e924.1c07  ARPA   Vlan400<br \/>\nInternet  10.10.10.2              0   aa00.0400.0404  ARPA   Vlan400      <\/p><\/blockquote>\n<p>Tacking on an &#8220;include&#8221; to filter the output, makes it pretty simple:<\/p>\n<blockquote><p>#show mac address-table | include Gi3\/0\/45<br \/>\n 300    00c0.eeb1.0b57    DYNAMIC     Gi3\/0\/45<br \/>\n#show arp | include 00c0.eeb1.0b57<br \/>\nInternet  10.251.8.200            2   00c0.eeb1.0b57  ARPA   Vlan300       <\/p><\/blockquote>\n<p>Now, I know that 10.251.8.200 is on switch 3 port 45.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cisco 3750: IOS Version: 12.2(55)SE8 Yes, I know there are some pricey software tools that will do this with a couple clicks. But I don&#8217;t have budget for them. So here is a simple way to determine the IP address of a device connected to a particular port on a Cisco switch. First, determine the [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[319,357,376,321],"class_list":["post-1120","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-cisco","tag-ip-address","tag-mac","tag-switch"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1120"}],"version-history":[{"count":2,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1120\/revisions"}],"predecessor-version":[{"id":1122,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1120\/revisions\/1122"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}