#配置 trunk 链路的封装类型,同一链路的两端封装要相同。有的交换机只能封装dot1q 再配置trunk。
方法如下:希望有所帮助
Switch(config)#interface f0/2
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan all
#配置 trunk 链路的封装类型,同一链路的两端封装要相同。有的交换机只能封装dot1q 再配置trunk。
方法如下:希望有所帮助
Switch(config)#interface f0/2
Switch(config-if)#switchport trunk encapsulation dot1q
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk allowed vlan all