问题 单项选择题

如下图所示,3com和Cisco公司的交换机相互连接,在两台交换机之间需传输VLANID为1、10、20和30的5个VLAN信息,Catalyst3548交换机VLANTrunk的正确配置是()

A.Switch-3548(config-if)#switchport trunk encapsulation dotlq

Switch-3548(config-if)#switchport trunk allowed vlan 1,10,20,30

B.Switch-3548(config-if)#switchport mode trunk

Switch-3548(config-if)#switchport trunk encapsulation is1

Switch-3548(config-if)#switchport tnmk allowed vlan 1-30

C.Switch-3548(config-if)#switchport mode trunk

Switch-3548(config-if)#switchport trunk encapsulation negotiate

Switch-3548(config-if)#switchport trunk allowed vlan 1-30

D.Switch-3548(config-if)#switchport mode trunk

Switch-3548(config-if)#switchport trunk encapsulation dotlq

Switch-3548(config-if)#switchport trunk allowed vlan 1,10,20,30

答案

参考答案:D

解析:

VLAN trunk的配置任务有:设置交换机端口的VLAN Trunk模式,为VLAN Trunk封装VLAN协议和设置VLAN Trunk允许中继的VLAN。选项D正确,即:Switch-3548(config-if)#switchport mode trunk//配置VLAN Trunk模式。

Switch-3548(config-if)#switchport trunk encapsulation dotlq//封装IEEE 802.1Q协议。

Switch-3548(config-if)#switchport trunk allowed vlan 1,10,20,30//设置允许中继的VLAN。

填空题
单项选择题 A1/A2型题