|
配置Trunk 指定接口的Trunk封装模式(部分型号需要) config-if#switchport trunk encapsulation dot1q/isl DTP 动态Trunk协议 关闭接口的动态Trunk协商 config-if#switchport nonegotiate 将接口设置为trunk模式 config-if#switchport mode trunk 修改本地VLAN号,配置为一个不使用的VLAN(保证两端的一致性) config-if#switchport trunk native vlan vlan号 设置trunk链路允许通过的VLAN号(默认允许所有VLAN通过) config-if#switchport trunk allowed vlan vlan号,vlan号........ 移除不需要的VLAN config-if#switchport trunk pruning vlan remove vlan号,vlan号........ 动态Trunk协议 config-if#switchport mode dynamic auto/desirable //可以动态协商,auto/desirable,是否为主动协商
|