命令被拒绝:接口的中继封装是“自动”不能被配置的“主干”模式。
使用 #switchport trunk encapsulation dot1q 把它封装起来就可以了设为trunk
Petes-Switch(config-if)#switchport mode trunk
Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode.
Petes-Switch(config-if)#switchport trunk encapsulation dot1q
Petes-Switch(config-if)#switchport mode trunk
Petes-Switch(config-if)#