Cisco6509配置trunk问题笔记
由于核心交换机上的trunk口是当时cisco的工程师批量配置好的,我本人只是在2960上配置trunk口,在2960这样的二层交换机上配置时比较简单就一条命令:(config-if)#switchport mode trunk
6500系列配置trunk稍有不同,以6509为例,进入要配置的端口后,依次如下配置:
(config-if)#switchport ;6系列的要先敲这一个命令
(config-if)#switchport trunk encapsulation dot1q;先封装,一般都是用dot1q。如果不打这个命令直接设置trunk的话,会提示:Command rejected: An interface whose trunk encapsulation is "Auto" can not be configured to "trunk" mode.
(config-if)#switchport mode trunk ;然后设置端口模式为trunk
(config-if)#no shutdown ;这是好习惯,虽然多数端口都默认是起来的
注:dot1q Interface uses only 802.1q trunking encapsulation when trunking
页:
[1]