摘要:视频教程在线辅导面授招生考试大纲指定教材报名时间2.配置VLANTrunks配置VLANTrunks的步骤如下。举例如下:Switch#configureterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z。Switch(config)#interfacefastetheme2/4Switch(config-if)#switchportmodetrunkSwitch(config-if)#switchport
2. 配置VLANTrunks
配置VLANTrunks的步骤如下。
举例如下:
Switch#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z。
Switch(config)#interfacefastetheme2/4
Switch(config-if)#switchportmodetrunk
Switch(config-if)#switchporttrunkencapsulationdotlq
Switch(config-if)#end
(1)定义trunk允许的VLAN.缺省情况下trunk允许所有的VLAN通过。可以使用switchporttrunkallowedvlanremovevlan-list来去掉某一VLAN。
回到允许所有VLAN通过时,可用noswitchporttrunkallowedvlan端口配罝命令。
举例如下:
Switch(config)#interfacefastethemet2/l
Switch(config-if)#switchporttrunkallowedvlanremove2
Switch(config-if)#end
(2)配置NativeVLAN(IEEE802.1q)封装IEEE802.1q的trunk端口可以接受带有标签和不带标签的数据流,交换机向nativevlan传送不带标签的数据流,缺省情况下nativeVLAN是1。
使用noswitchporttrunknativevlan端口配置命令回到缺省的状态。
返回目录:通信工程师考试培训互联网交换技术
编辑相关推荐:
通信工程师备考资料免费领取
去领取