12-05-2011 04:28 AM - edited 03-07-2019 03:44 AM
In a switched layer 2 network of all Cisco switches (2950/60s, 3550s etc) how can I determine what VLANs are no longer used?
What I mean by this is, VLAN 123 maybe defined on every switch, but if each switch has no access ports in this VLAN, then I would declare it no longer needed or used. However, the only way I can see to check in a given layer 2 environment would be to log into every switch and check if any ports are access ports for this VLAN (or read through the configs if they are to hand).
This seems very inefficient to me, especially in larger layer 2 networks. Does anyone know a faster, more efficient method?
Solved! Go to Solution.
12-05-2011 04:34 AM
Hi,
Why cant you use "sh vlan brief" on the layer 3 switch so that you can now what are the ports belongs to the specific vlan.
Please rate the helpfull posts.
Regards,
Naidu.
12-05-2011 04:34 AM
Hi,
Why cant you use "sh vlan brief" on the layer 3 switch so that you can now what are the ports belongs to the specific vlan.
Please rate the helpfull posts.
Regards,
Naidu.
12-05-2011 05:05 AM
Show vlan brief will help, but if the vlan is part of a trunk, it won't show up in the list.
This is one of those unfortunate tasks you have to do the hard way.
Ven
12-05-2011 05:12 AM
Hi guys,
Thanks for your replies. I think that the only way is to log into every switch as I have been doing an run "show vlan id" and check if the ports listed are the trunks for that switch.
Ah, I see, "sh vlan br" is a better command to run in this case. It doesn't show the trunk ports so that is useful, thanks
12-05-2011 05:15 AM
Hi,
Glad that helped you at some level.
Please rate the helpfull posts which will be encourage others through this forum.
Please rate the helpfull posts.
Regards,
Naidu.
12-05-2011 12:11 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide