Solved

How to find vLan of a Mac or IP address

Posted on 2010-09-23
7
1,007 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 250 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 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.

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

With Cat OS

Sh arp noalias gets the mac and ip in one go

hth
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.

 

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 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.
0
 
LVL 16

Assisted Solution

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

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.

Question has a verified solution.

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

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
For months I had no idea how to 'discover' the IP address of the other end of a link (without asking someone who knows), and it drove me batty. Think about it. You can't use Cisco Discovery Protocol (CDP) because it's not implemented on the ASAs.…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

830 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