cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

895
Views
0
Helpful
9
Replies
Highlighted
Beginner

Switch Port Trunk allowed Vlan

Hi Guys

Request your help on my query :

I have a distribution switch  and access switch and port channel between them.

Dist switch is the VTP server

lets assum I have 25 vlan

when I do show vlan brief on the access switch I can see all 25 vlans listed now

no when I configure switch port trunk allowed vlan (ex : permitting 10 vlans )on the link connecting to access switch at Dist switch

Dist switch po1 -- connecting to - po Access switch

Dist switch #

int po1

switch port trunk alllowed vlan x,x,x,x,x,x,x,x,x,

After permitting 10 vlan through trunk allowed vlan and then when I do show vlan brief on the access switch , I should see only the 10 vlan whcih I have permiited right ?

Thanks in advance  

3 ACCEPTED SOLUTIONS

Accepted Solutions
Hall of Fame Cisco Employee

Switch Port Trunk allowed Vlan

Hi,

After permitting 10 vlan through trunk allowed vlan and then when I do  show vlan brief on the access switch , I should see only the 10 vlan  whcih I have permiited right ?

No. The show vlan and show vlan brief commands display all VLANs that are created on the switch, regardless of whether they are used/allowed. If you want to check the allowed VLANs on a particular trunk, you must check the show interfaces trunk command output, especially the bottommost part with the heading "Vlans in spanning tree forwarding state and not pruned".

Best regards,

Peter

Advisor

Switch Port Trunk allowed Vlan

"So even if the access layer have the Vlan , and even if add an access port which is not part of allowed vlan

That access port will not communicate unless I permit it in trunk allowed vlan ?"

The access port can communicate on the local switch to other devices in the same vlan, but it would not be able to communicate across different switches if the vlan isn't allowed over the trunk. Of course, that would affect all hosts on the switch if the vlan isn't part of the trunk, so yes, you need to allow it over the trunk for it to communicate.

HTH,
John

*** Please rate all useful posts ***

HTH, John *** Please rate all useful posts ***
Hall of Fame Guru

Re: Switch Port Trunk allowed Vlan

That should be correct , so do we have any other solution for not showing the unwanted vlans in the access layer

As Peter has stated with VTP server/client no you don't. However if you change all switches to VTP transparent then you can manually remove the vlans you do not want from each switch.  VTP transparent gives you more control over which vlans can exist on which switches.

Jon

9 REPLIES 9
Advisor

Switch Port Trunk allowed Vlan

If you do a "show vlan brie" and you've made that a trunk port, you won't see the interface listed for vlan 10 any longer. You can however do a "show int po1 trunk" and see the vlans allowed over the trunk.

HTH,
John

*** Please rate all useful posts ***

HTH, John *** Please rate all useful posts ***
Hall of Fame Cisco Employee

Switch Port Trunk allowed Vlan

Hi,

After permitting 10 vlan through trunk allowed vlan and then when I do  show vlan brief on the access switch , I should see only the 10 vlan  whcih I have permiited right ?

No. The show vlan and show vlan brief commands display all VLANs that are created on the switch, regardless of whether they are used/allowed. If you want to check the allowed VLANs on a particular trunk, you must check the show interfaces trunk command output, especially the bottommost part with the heading "Vlans in spanning tree forwarding state and not pruned".

Best regards,

Peter

Beginner

Switch Port Trunk allowed Vlan

Thanks Jhon,

Hi Peter,

May be you are right , as I have not seen any supporing document , The show vlan and show vlan brief commands display all VLANs that are created on the switch, regardless of whether they are used/allowed.

This is what I have experienced after permittting the regured vlan still i see all the vlan in the access layer.

So even if the access layer have the Vlan , and even if add an access port which is not part of allowed vlan

That access port will not communicate unless I permit it in trunk allowed vlan ?

Thanks

Advisor

Switch Port Trunk allowed Vlan

"So even if the access layer have the Vlan , and even if add an access port which is not part of allowed vlan

That access port will not communicate unless I permit it in trunk allowed vlan ?"

The access port can communicate on the local switch to other devices in the same vlan, but it would not be able to communicate across different switches if the vlan isn't allowed over the trunk. Of course, that would affect all hosts on the switch if the vlan isn't part of the trunk, so yes, you need to allow it over the trunk for it to communicate.

HTH,
John

*** Please rate all useful posts ***

HTH, John *** Please rate all useful posts ***
Beginner

Switch Port Trunk allowed Vlan

Thanks John,

That should be correct , so do we have any other solution for not showing the unwanted vlans in the access layer .

Should be the pruning ?

Thanks

Hall of Fame Guru

Re: Switch Port Trunk allowed Vlan

edited      

Hall of Fame Cisco Employee

Switch Port Trunk allowed Vlan

Hi,

John is absolutely correct - even if you do not permit a VLAN on a trunk, it can still provide communication among local ports on a switch that are all assigned to the same VLAN.

I have a feeling that your original question was focused on a different aspect, though: You probably expected that if you exclude some VLANs from trunks, these VLANs will not be propagated via VTP to surrounding switches. Sadly, this is not the case. The switchport trunk allowed vlan command only affects data traffic in individual VLANs but it has no impact on the operation of VTP protocol. The VTP still advertises all VLANs, regardless of which VLANs are allowed on a trunk. To put it plainly, in a VTP domain, all server/client switches will know about all VLANs. THere is no legal possibility of having a single VTP domain consisting of server/client switch and yet have the switches differ in their VLAN database contents. It's as easy as that: one VTP domain = one big common VLAN database.

Best regards,

Peter

Hall of Fame Guru

Re: Switch Port Trunk allowed Vlan

That should be correct , so do we have any other solution for not showing the unwanted vlans in the access layer

As Peter has stated with VTP server/client no you don't. However if you change all switches to VTP transparent then you can manually remove the vlans you do not want from each switch.  VTP transparent gives you more control over which vlans can exist on which switches.

Jon

Beginner

Switch Port Trunk allowed Vlan

Thanks to Jon , Jhon and Peter for your valid inputs.

My query is clear , I consided this query is answerd.. Catch you guys for the next one 

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards