为什么这个命令不被接受?
switchport trunk allowed vlan add 52,160,176,177,247
我尝试只添加一个 VLAN;它也不被接受。没有显示错误或任何东西;当我这样做时它只是不显示show run int [interface id]
。我有以下配置。这将用于接入点,只是为了允许此端口上的某些 VLAN。我可能会遗漏什么,或者这可能是 iOS 错误?
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