How to find vLan of a Mac or IP address

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?
garryshapeAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
nodiscoConnect With a Mentor Commented:
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
 
garryshapeAuthor Commented:
Will it let me specify a mac address that's on the network? or an IP address?
0
 
nodiscoConnect With a Mentor Commented:
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
Get Cisco Certified in IT Security

There’s a high demand for IT security experts and network administrators who can safeguard the data that individuals, corporations, and governments rely on every day. Pursue your B.S. in Network Operations and Security and gain the credentials you need for this high-growth field.

 
garryshapeAuthor Commented:
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
 
InteraXConnect With a Mentor Commented:
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
 
InteraXConnect With a Mentor Commented:
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
 
garryshapeAuthor Commented:
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
All Courses

From novice to tech pro — start learning today.