Solved

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

Posted on 2011-09-29
6
640 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
ID: 36818338
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
ID: 36818395


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
ID: 36818940
@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
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 
LVL 3

Expert Comment

by:pistanu
ID: 36890515
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
ID: 36894181
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
ID: 36896190
yes is a trial version if you want something for a long term(free) install cacti with backtrack plugin.
0

Featured Post

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Trunk port configuration for Wireless VLANs 11 93
Cisco IOS from ipbase to ipservices 10 95
How VPC help preventing STP Loops 4 148
Cisco 3560 Switch with Multiple Gateways 10 79
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

679 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