思科cisco交换机端口切换trunk模式报错

Command rejected: An interface whose trunk encapsulation is “Auto” can not be configured to “trunk” mode.

当mode trunk出现如下提示时,要先封装协议再设置trunk端口。

第一步:switchport trunk encap dot1q \封装协议
第二步:switchport mode trunk \设置trunk端口