Solved

How to find vLan of a Mac or IP address

Posted on 2010-09-23
7
996 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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

I recently attended Cisco Live! in Las Vegas, a conference that boasted over 28,000 techies in attendance, and a week of hands-on learning hosted by a solid partner with which Concerto goes to market.  Every year, Cisco displays cutting-edge technol…
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Both in life and business – not all partnerships are created equal. Spend 30 short minutes with us to learn:   • Key questions to ask when considering a partnership to accelerate your business into the cloud • Pitfalls and mistakes other partners…

770 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