您的位置:首页 > 编程语言 > PHP开发

PingingLab传世经典系列《CCNA完全配置宝典》-3.5 DTP基本配置

2013-08-10 10:10 591 查看
3.5 DTP基础配置实验目的:1、掌握DTP的基本配置。2、理解DTP的接口模式及原理。实验拓扑:


实验步骤:1、DTP协商模式主要分为四种,分别为:DD:主动模式,接口发送DTP分组进行协商; DA:被动模式,接口接收DTP分组进行协商; On :一般接口强制配置为trunk,则为on模式;Off :一般接口强制配置为access,则为off模式; 根据这几种模式,可以有不同的协商结果,如下:[align=center]
Dynamic AutoDynamic DesirableTrunk/onAccess/off
Dynamic AutoAccessTrunkTrunkAccess
Dynamic DesirableTrunkTrunkTrunkAccess
Trunk/onTrunkTrunkTrunkNot recommended
Access/offAccessAccessNot recommendedAccess
[/align]2、依据以上表格在SW1和SW2上部署DTP协议,并观看Trunk链路的协商状态;①范例一:DD & DDSW1(config)#int f0/1SW1(config-if)#switchport trunk encapsulation dot1qSW1(config-if)#switchport mode dynamic desirableSW1(config-if)#exitSW2(config)#int f0/1SW2(config-if)#switchport trunk encapsulation dot1qSW2(config-if)#switchport mode dynamic desirableSW2(config-if)#exit此时查看交换机的Trunk协商状态:②范例二:DD & DASW1(config)#int f0/1SW1(config-if)#switchport trunk encapsulation dot1qSW1(config-if)#switchport mode dynamic desirableSW1(config-if)#exitSW2(config)#int f0/1SW2(config-if)#switchport trunk encapsulation dot1qSW2(config-if)#switchport mode dynamic autoSW2(config-if)#exit此时查看交换机的Trunk协商状态:③范例三:DA & DASW1(config)#int f0/1SW1(config-if)#switchport trunk encapsulation dot1qSW1(config-if)#switchport mode dynamic autoSW1(config-if)#exitSW2(config)#int f0/1SW2(config-if)#switchport trunk encapsulation dot1qSW2(config-if)#switchport mode dynamic autoSW2(config-if)#exit此时查看交换机的Trunk协商状态:……其他协商过程略。3.工程用法。从以上可以看出,DTP可以通过不同模式进行Trunk的协商,但是DTP属于CISCO私有技术,若网络中有其他厂商的交换机则没法进行协商,例如接入层交换机用的是H3C交换机,汇聚层用的是CISCO交换机,则DTP失去意义。所以,一般工程用法习惯直接将接口强制设置为trunk,并关闭DTP协商,如下:SW1(config)#int f0/1SW1(config-if)#switchport trunk encapsulation dot1qSW1(config-if)#switchport mode trunkSW1(config-if)#switchport nonegotiateSW2(config)#int f0/1SW2(config-if)#switchport trunk encapsulation dot1qSW2(config-if)#switchport nonegotiate此实验完成。==========================================PingingLab·高品质IT教育提供商CCIE 实验室·IT项目实战·高端人才定制深圳拼客信息科技有限公司·广州大学城外环西路站新浪微博:@拼客科技PingingLab @PingingLab-陈鑫杰PingingLab微信公众号:pinginglab PingingLab技术交流群:240920680
本文出自 “陈鑫杰讲网络” 博客,请务必保留此出处http://chenxinjie.blog.51cto.com/7749507/1274503
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐