cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
433
Views
0
Helpful
2
Replies

show allowed vlans without ranges

Wolfgang Stindl
Level 1
Level 1

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

2 Replies 2

Ton V Engelen
Level 3
Level 3

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

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

Review Cisco Networking products for a $25 gift card