Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1080
  • Last Modified:

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?
0
garryshape
Asked:
garryshape
  • 3
  • 2
  • 2
4 Solutions
 
nodiscoCommented:
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
 
nodiscoCommented:
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
Managing Security & Risk at the Speed of Business

Gartner Research VP, Neil McDonald & AlgoSec CTO, Prof. Avishai Wool, discuss the business-driven approach to automated security policy management, its benefits and how to align security policy management with business processes to address today's security challenges.

 
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
 
InteraXCommented:
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
 
InteraXCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Identify and Prevent Potential Cyber-threats

Become the white hat who helps safeguard our interconnected world. Transform your career future by earning your MS in Cybersecurity. WGU’s MSCSIA degree program was designed in collaboration with national intelligence organizations and IT industry leaders.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now