Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to find vLan of a Mac or IP address

Posted on 2010-09-23
7
Medium Priority
?
1,052 Views
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?
0
Comment
Question by:garryshape
  • 3
  • 2
  • 2
7 Comments
 
LVL 19

Accepted Solution

by:
nodisco earned 1000 total points
ID: 33750690
Hi

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
0
 

Author Comment

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

Assisted Solution

by:nodisco
nodisco earned 1000 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.

e.g.
sh mac-address-table
sh arp

With Cat OS

Sh arp noalias gets the mac and ip in one go

hth
0
Independent Software Vendors: 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

by:garryshape
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
0
 
LVL 16

Assisted Solution

by:InteraX
InteraX earned 1000 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.
0
 
LVL 16

Assisted Solution

by:InteraX
InteraX earned 1000 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.
0
 

Author Closing Comment

by:garryshape
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.
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
This article explains the fundamentals of industrial networking which ultimately is the backbone network which is providing communications for process devices like robots and other not so interesting stuff.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

782 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