配置:
1、进入对应接口配置接口类型Q
[SW1]interface e0/0/1 [SW1-Ethernet0/0/1]port link-type trunk
2、讲Trunk需要允许通过的VLAN进行允许
[SW1-Ethernet0/0/1]port trunk allow-pass vlan 10 20
·单独允许某些AN
[SW1-Ethernet0/0/1]port trunk allow-pass vlan 10 to 20
·允许VLAN10到20
[SW1-Ethernet0/0/1]port trunk allow-pass vlan all
·允许所有VLAN通过
3、删除允许的VLAN
[SW1-Ethernet0/0/1]undo port trunk allow-pass vlan 20
·不允许某个VAN通过