06-06-2012 05:22 AM - edited 03-07-2019 07:05 AM
Hi,
I need a way to find out weather a Vlan is allowed on a trunk interface or not.
Even If the Vlan is not yet created, or already deleted but not removed from the trunk.
So "show vlan id xxx" doesn't help.
"show int trunk | grep vlan xxx" would be great. But for automatisation I have a problem with the ranges as grep
would not find the vlan.
Is there a command or a sed script... to find vlan ids also within ranges.
Thanks a lot
Br
Wolfgang
06-06-2012 05:28 AM
Hi, can you check if you re looking for something like this:
sh interfaces trunk | b Vlans allowed
Command is executed on a 6509 and a 3750
You can also give a vlan-id in the command
sh interfaces trunk | b 101
where 101 is a vlan-id
06-06-2012 05:37 AM
Hi,
this is the commant I've tested with.
But I need te get as an output a line which includes the searched Vlan ID.
If I now have a range eg 500-550 I will not get an output with the Vlan id 501
So my stupid tool will say Vlan 501 is not allowed on that trunk but of course it is.
So I need a command which will give me all allowed Vlan IDs back no ranges.
I'm using nexus switches. So a sed or whateve script could also help.
Thanks
Br
Wolfgang
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