Solved

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

Posted on 2011-09-29
6
632 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CCTV Installation - Networking 3 55
Configuring switch:  PortFast Edge vs PortFast 4 353
Cisco layer 3 ring topology 1 90
Cisco RSTP portfast 3 68
I see many questions here on Experts Exchange regarding switch port configurations and trunks. This article is meant for beginners in the subject to help to get basic knowledge about Virtual Local Area Network (VLAN (http://en.wikipedia.org/wiki/Vir…
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

813 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

8 Experts available now in Live!

Get 1:1 Help Now