How to find vLan of a Mac or IP address

Posted on 2010-09-23
Last Modified: 2013-11-16
What are the commands that let me look up what vLan a Mac address is in and look up info on the mac address?

Is it a "show" based command?
Question by:garryshape
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
LVL 19

Accepted Solution

nodisco earned 250 total points
ID: 33750690

As you have this down as tagged for a Ciso 6509 -

in IOS the command is
sh mac-address-table

and on CatOS you can use
sh arp noalias

Author Comment

ID: 33750734
Will it let me specify a mac address that's on the network? or an IP address?
LVL 19

Assisted Solution

nodisco earned 250 total points
ID: 33750774
On IOS you can output the mac-address table and then correlate the mac you are looking for against the arp table to get the ip address.

sh mac-address-table
sh arp

With Cat OS

Sh arp noalias gets the mac and ip in one go

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 33750898
When I run the sh mac-address-table, I get thousands of entries I have to scroll through.

How do I locate the vLan that the Mac address 00:80:64:90:e5:e5 is in?

It's sounding like there's no way to do that
LVL 16

Assisted Solution

InteraX earned 250 total points
ID: 33752087
sh mac-address table | incl <mac address you are looking for>

This pipes the output into the include command which is th same as the unix grep command.
LVL 16

Assisted Solution

InteraX earned 250 total points
ID: 33752096
This will show you which port the mac address is in.
You can also do the same on the sh arp command which will return the IP address.

From these you should be able to chekc the running config on the port for the vlan or check your vlan interfaces or routing tables to see which vlan the target is in.

Author Closing Comment

ID: 33754751
Thanks it does look like these commands are correct however it doesn't work for me so I guess it's a Cisco issue.

Featured Post

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Node.js 11 82
CCNP Exam question 6 39
Track use of a script by logging username, date & time to an excel file. 4 56
Computer certifications 11 54
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Internet Business Fax to Email Made Easy - With  eFax Corporate (, 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, f…

752 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