1. 程式人生 > >關於Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk

關於Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk

 在配置三層交換機時

 

當遇到 

    輸入 Switch(config-if)#swicthport  mode trunk  想改變埠為trunk 模式時 報出錯誤

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

     (中文:命令被拒絕:介面的中繼封裝是“自動”不能被配置的“主幹”模式。)

只需要 像單臂路由一樣 給埠封裝一個  介面封裝協議。如下命令

Switch(config-if)#switchport trunk encapsulation dot1q 

 於是就解決問題了 開啟了虛擬鏈路