Cisco多层交换之VTP实验


所属类别:网络技术

文章作者:victoryan

特别推荐:免费发布信息 承包关键词~~抢爆了!HOT!


版权声明:原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://victoryan.blog.51cto.com/191603/109728实验拓扑:拓扑介绍:DS1和DS2分别为两台3560交换机,网络拓扑可以看作是分布层和接入层的两层结构,也可以看作是核心层和接入层的紧缩骨干式架构;实验中称作分布层;AS1和AS2是两台2960作为接入层交换机,二者均使用千兆上联至两台分布层交换机,并且均为双挂;实验介绍:把接入层交换机作为VTP的客户端,而分布层交换机做为VTP的服务器端(可能这样并不适合真正的生产网络环境);实验步骤:1.设置分布层的vtp域:DS1:Switch#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#hostnameDS1DS1(config)#vtpdomainciscoChangingVTPdomainnamefromNULLtociscoDS2同上,免去叙述查看DS1此时的VTP状态:DS1(config)#doshvtpstatusVTPVersion:2ConfigurationRevision:0MaximumVLANssupportedlocally:1005NumberofexistingVLANs:5VTPOperatingMode:ServerVTPDomainName:ciscoVTPPruningMode:DisabledVTPV2Mode:DisabledVTPTrapsGeneration:DisabledMD5digest:0xAA0xB90x0C0xCD0xD70xE80xA60xE0Configurationlastmodifiedby0.0.0.0at0-0-0000:00:00LocalupdaterIDis0.0.0.0(novalidinterfacefound)因为vtp的默认状态即是server模式,因此DS1和DS2毋须改变vtp模式;2.设置接入层的vtp域:AS1:Switch#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#hostnameAS1AS1(config)#vtpdomainciscoChangingVTPdomainnamefromNULLtociscoAS1(config)#vtpmodeclientSettingdevicetoVTPCLIENTmode.AS2同上,免去叙述查看AS1此时的VTP状态:AS1(config)#doshvtpstatusVTPVersion:2ConfigurationRevision:0MaximumVLANssupportedlocally:255NumberofexistingVLANs:5VTPOperatingMode:ClientVTPDomainName:ciscoVTPPruningMode:DisabledVTPV2Mode:DisabledVTPTrapsGeneration:DisabledMD5digest:0xAA0xB90x0C0xCD0xD70xE80xA60xE0Configurationlastmodifiedby0.0.0.0at0-0-0000:00:00至此,四个交换机均属于cisco这个vtpdomain,并且DS1和DS2工作在server模式,AS1和AS2工作在client模式。3.配置trunk:因为交换机之间通过干道链路交换VTP更新,所以在这四个交换机之间的链路都需要配置成trunk链路。DS1:DS1(config)#intgi0/1DS1(config-if)#switchportDS1(config-if)#switchportmodetrunk%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceGigabitEthernet0/1,changedstatetodown%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceGigabitEthernet0/1,changedstatetoupDS1(config-if)#switchporttrunk?allowedSetallowedVLANcharacteristicswheninterfaceisintrunkingmodenativeSettrunkingnativecharacteristicswheninterfaceisintrunkingModeCisco的PacketTracer模拟器里面的3560没有配置干道封装模式的选项DS2的配置同上;AS1:AS1(config)#intgi1/1AS1(config-if)#swmotrunkAS2的配置同上;4.在DS1上新建3个vlan10,20,30,查看DS1的VTP状态:DS1(config)#vlan10DS1(config-vlan)#exitDS1(config)#vlan20DS1(config-vlan)#exitDS1(config)#vlan30DS1(config-vlan)#exitDS1#shvtpstatusVTPVersion:2ConfigurationRevision:3MaximumVLANssupportedlocally:1005NumberofexistingVLANs:8VTPOperatingMode:ServerVTPDomainName:ciscoVTPPruningMode:DisabledVTPV2Mode:DisabledVTPTrapsGeneration:DisabledMD5digest:0x3D0x7B0xC70x5E0xC30xF00x520xC8Configurationlastmodifiedby0.0.0.0at3-1-9300:21:19LocalupdaterIDis0.0.0.0(novalidinterfacefound)查看AS1的VTP状态:AS1#shvtpstatusVTPVersion:2ConfigurationRevision:3MaximumVLANssupportedlocally:255NumberofexistingVLANs:8VTPOperatingMode:ClientVTPDomainName:ciscoVTPPruningMode:DisabledVTPV2Mode:DisabledVTPTrapsGeneration:DisabledMD5digest:0x3D0x7B0xC70x5E0xC30xF00x520xC8Configurationlastmodifiedby0.0.0.0at3-1-9300:21:19ConfigurationRevision从0变到了3,原因是新增一个VLAN,ConfigurationRevision就会加1;结束:至此,VTP配置成功,sevrver上的更新可以通过干道传播到client端,client端根据更细的ConfigurationRevision和目前自己的ConfigurationRevision,如果更新的版本号大于目前的版本号,client将使用新的VLAN信息覆盖已有的VLAN配置信息。本文出自 “Keep Moving” 博客,请务必保留此出处http://victoryan.blog.51cto.com/191603/109728本文出自 51CTO.COM技术博客

相关信息

· 转贴自MS:扩展TreeView控件(2)

· Windows引导Linux+Redhat9.0引导修复

· 高手论道:象棋的求精之路

· 正确地调用字符串相关的函数(第二部分)








....

59743 13321