如下图所示Catalyst 6500的3/1和Catalyst 3500的g0/1端口工作在VLAN trunk模式,且Catalyst 6500的3/1端口使用IEEE 802.1Q协议,要求传输VLAN1,2,24~100的VLAN信息,下列Catal

admin2022-08-15  38

问题 如下图所示Catalyst 6500的3/1和Catalyst 3500的g0/1端口工作在VLAN trunk模式,且Catalyst 6500的3/1端口使用IEEE 802.1Q协议,要求传输VLAN1,2,24~100的VLAN信息,下列Catalyst 3500 VLAN trunk的配置中正确的是(          )。

选项 A、Switch-3548(config)#interface g0/1
Switch-3548(config-if)#switchport mode trunk
Switch-3548(config-if)#switchpoa trunk encapsulation isl
Switch-3548(config-if)#switchport trunk allowed vlan 1-100
Switch-3548(config-if)#switchport trunk allowed vlan except 3-23
B、Switch-3548(config)#interface g0/1
Switch-3548(config-if)#switchport mode trunk
Switch-3548(config-if)#switchpoa trunk encapsulation dot1q
Switch-3548(config-if)#switchpoa trunk allowed vlan 1-100
Switch-3548(config-if)#switchport trunk allowed vlan except 3-23
C、Switch-3548(config)#interface s0/1
Switch-3548(config-if)#switchport mode trunk
Switch-3548(config-if)#switchport trunk encapsulation dot1q
Switch-3548(config-if)#switchport trunk allowed vlan 1-100
Switch-3548(config-if)#switchport trunk allowed vlan clear 3-23
D、Switch-3548(config)#interface g0/1
Switch-3548(config-if)#switchport mode trunk
Switch-3548(config-if)#switchport trunk encapsulation dot1q
Switch-3548(config-if)#switchport trunk allowed vlan 1,100
Switch-3548(config-if)#switchport trunk allowed vlan except 3,23

答案B

解析 VLAN trunk的配置任务有:设置交换机端口的VLAN trunk模式,为VLAN trunk封装VLAN协议和设置VLAN trunk允许中级的VLANs。其中在VLAN协议中最具代表性的VLAN协议有ISL和IEEE 802.1Q。ISL是Cisco交换机内部链路的一个VLAN协议。它仅适用于Cisco设备。IEEE 802.1Q俗称“Dot One Q”(dot1q)。Catalyst 3500操作步骤如下。
    步骤一:进入交换机端口配置模式,Switch-3548(config)#interface<端口号>。
    步骤二:配置VLAN trunk模式,Switch-3548(config-if)#switehport mode trunk。
    步骤三:封装VLAN协议。
    Switch-3548(config-if)#switchport trunk encapsulation dot1q(封装IEEE 802.1Q)
    Switch-3548(config-if)#switchport trunk encapsulation isl(封装ISL协议)
    Switch-3548(config-if)#switehport trunk encapsulation negotiate P(自动协商)
    (注:自动协商,以及自适应协议的功能,要求Cisco硬件支持ISL和1EEE 802.1Q两个协议。)
    步骤四:设置允许中继的VLAN
    Switch-3548(config-if)#switchport trunk allowed vlan<vlan ID>
    Switch-3548(config-if)#switchport trunk allowed vlan except<vlan ID>
    (注:except是从允许的VLAN列表中去除一些vlan号,也就是参数中给出的不允许中继的VLAN。)
    因此,本题答案选择B选项。
转载请注明原文地址:https://jikaoti.com/ti/xJM7FFFM
0

相关试题推荐
最新回复(0)