cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1089
Views
5
Helpful
1
Replies

Cant add VLAN in the "allowed VLAN"

BehindTheWall
Level 1
Level 1

Why this command is not accepted "switchport trunk allowed vlan add 52,160,176,177,247". I tried adding only one vlan its also not accepted. No error show or anything its just not showing when I do "show run int [interface id]. The I have the following configuration below. This will be used for Access Point just to allow certain VLANS on this port. What could I be missing or could this be an IOS bug?

 

Switch Model: WS-C3560-24PS

IOS Version: C3560 Software (C3560-IPBASEK9-M), Version 12.2(55)SE4, RELEASE SOFTWARE (fc1)

 

interface FastEthernet0/22
 switchport trunk encapsulation dot1q
 switchport trunk native vlan 247
 switchport mode trunk
 spanning-tree portfast trunk
end

 

show int fa0/22 shows that allowed vlan are still showing "ALL".

Switch#sh int fa0/22 switchport
Name: Fa0/22
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: down
Administrative Trunking Encapsulation: dot1q
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 247 
Administrative Native VLAN tagging: enabled
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Administrative private-vlan trunk native VLAN: none
Administrative private-vlan trunk Native VLAN tagging: enabled
Administrative private-vlan trunk encapsulation: dot1q
Administrative private-vlan trunk normal VLANs: none
Administrative private-vlan trunk associations: none
Administrative private-vlan trunk mappings: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL

 

Thanks in Advance :-). Peace on Earth

1 Accepted Solution

Accepted Solutions

Francesco Molino
VIP Alumni
VIP Alumni

Hi

 

It's not adding these vlans because they are already part of the trunk since you have ALL.

 

You can do switchport trunk remove command or quickly do:

switchport trunk allowed vlan 52

switchport trunk allowed vlan add 160,176,177,247

 

Then you'll have only those vlans on your interface trunk.

 

 


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

View solution in original post

1 Reply 1

Francesco Molino
VIP Alumni
VIP Alumni

Hi

 

It's not adding these vlans because they are already part of the trunk since you have ALL.

 

You can do switchport trunk remove command or quickly do:

switchport trunk allowed vlan 52

switchport trunk allowed vlan add 160,176,177,247

 

Then you'll have only those vlans on your interface trunk.

 

 


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question
Review Cisco Networking for a $25 gift card