问题 填空题

如图5-1所示,为了实现交换机SW1和SW2之间的冗余连接以提高传输速度和可靠性,在这两台交换机使用两条双绞线互连。为了避免网络环路的出现,在两台交换机之间使用了生成树协议(Spanning Tree Protocol,STP),通过修改Trunk(干道)端口的属性,使不同的VLAN数据从不同的端口中传输。
[*]

阅读下面配置信息,解释(9)~(11)处的命令,将答案填写在相应的位置。
SW1>enable (进入特权模式)
SW1(config)#interface f0/23 (进入接口23配置模式)
SW1(config-if)#switchport mode trunk (9)
SW1(config-if)#switchport trunk encaps isl (10)
SW1(config-if)#spanning-tree vlan 1 port-priority 10 (11)
SW1(config-if)#spanning-tree vlan 2 port-priority 10
SW1(config-if)#spanning-tree vlan 3 port-priority 10
SW1(config-if)#interface f0/24 (进入接口24配置模式)
SW1(config-if)#…….. (对端口24进行配置)
SW1(config-if)#end
SW1#copy run start

答案

参考答案:(9)将当前端口设置为trunk(干道)模式
(10)设置trunk中数据帧的封装形式为is1
(11)设置VLAN1在当前端口的优先级为10

解析:命令“switchport mode trunk”的功能是将当前端口设置为trunk(干道)模式;命令“switchport trunk encaps is1”的功能是设置trunk中数据帧的封装形式为is1;命令“pning-tree vlan 1 port-priority 10”的功能是设置VLAN1在当前端口的优先级为10。

单项选择题
单项选择题