Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

show allowed vlans without ranges

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

Everyone's tags (4)
2 REPLIES

Re: show allowed vlans without ranges

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

New Member

show allowed vlans without ranges

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

235
Views
0
Helpful
2
Replies
CreatePlease to create content