IOS:中继封装为"自动"的接口不能配置为"中继"模式

时间:2020-02-23 14:44:12  来源:igfitidea点击:

尝试在Cisco IOS供电的交换机上以中继模式设置端口时,是否得到以下输出?

SWITCH(config-if)#switchport mode trunk
Command rejected: An interface whose trunk encapsulation is "Auto"; can not be configured to "trunk"; mode.

这是因为您缺少该端口上的封装类型(可能是802.1Q)。

使用该接口上的配置方式,输入以下命令:

switchport trunk encapsulation dot1q

然后,您可以将端口设置为Trunk:

switchport mode trunk