Solved

Command to show IP address MAC Address and Interface Associated on Cisco Switches

Posted on 2011-09-29
6
617 Views
Last Modified: 2012-05-12
What command can you run in order to get the ip address, mac address, vlan  and interface associated with that IP address?  I would like to generate a report with those subheadings without having to run separate commands to get that information.

Thanks
0
Comment
Question by:donemore2003
  • 2
  • 2
  • 2
6 Comments
 
LVL 18

Expert Comment

by:jmeggers
Comment Utility
I don't know of a single command that will give you all that.  "show mac address-table" will give you the MAC associated with the switchport, and show vlan will give you the vlan the switchport is in.  I don't know of a command that gives you a host IP address linked to a port.
0
 
LVL 17

Expert Comment

by:rochey2009
Comment Utility


Router# show ip arp


Protocol  Address      Age(min)  Hardware Addr  Type   Interface

Internet  172.16.233.22      9      0000.0c59.f892 ARPA   Ethernet0/0

Internet  172.16.233.21      8      0000.0c07.ac00 ARPA   Ethernet0/0

Internet  172.16.233.19      -      0000.0c63.1300 ARPA   Ethernet0/0

Internet  172.16.233.30      9      0000.0c36.6965 ARPA   Ethernet0/0

Internet  172.16.168.11      -      0000.0c63.1300 ARPA   Ethernet0/0

Internet  172.16.168.254      9      0000.0c36.6965 ARPA   Ethernet0/0

0
 
LVL 18

Expert Comment

by:jmeggers
Comment Utility
@rochey2009:  I'm curious what hardware your output is from.  I have access to a couple of 3xx0 switches and on mine the only interfaces that show up are VLAN interfaces.  No connected devices where the connected interface has an IP address show up, but the MAC address does show up in the "show mac address-table" output.
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 3

Expert Comment

by:pistanu
Comment Utility
sh ip arp | i VlanXXX

sh ip arp gigabitEthernet 0/9

sh protocols

on a l3 switch, on a l2 switch just:

 sh mac-add | include "interface(vlan/gigabit)"
0
 
LVL 17

Expert Comment

by:rochey2009
Comment Utility
Sorry I misunderstood your requirements, that was done on a router, which doesn't help you.

Have a look at the following software, which generates the kind of report you're looking for. There's a video demo and a trial download of the software.

http://www.switchportmapper.com/?gclid=CJXcs7jnxasCFcIKfAodCgMz1A
0
 
LVL 3

Accepted Solution

by:
pistanu earned 500 total points
Comment Utility
yes is a trial version if you want something for a long term(free) install cacti with backtrack plugin.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Cisco Switch Swap 1 54
Switch Speed 2 57
Routing VLANs 5 43
cisco switch stacking 6 28
This tutorial will go through the steps required to write a script that will back up the configuration settings of a HP-ProCurve switch. You will need to get the following things to follow this tutorial: Telnet Scripting Tool e.g. TST10.exe …
I eventually solved a perplexing problem setting up telnet for a new switch.  I installed a new Cisco WS-03560X-24P switch connected to an existing Cisco 4506 running a WS-X4013-10GE Sup II-Plus. After configuring vlans and trunking,  I could no…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now