10-31-2020 07:25 PM - edited 10-31-2020 07:46 PM
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
Solved! Go to Solution.
10-31-2020 09:22 PM
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.
10-31-2020 09:22 PM
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.
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