Vlan负载均衡地实验.docx

  1. 1、本文档共6页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
实用标准文案 图一CiscoPacketTracer实验图 对上图的一些说明:两个互换机经过两个GigabitEthernet端口相连。共创 建两个VLAN,Vlan100与Vlan200。 一、利用switchporttrunkallowedvlanvlanid命令实现Vlan负载均 衡 分别在两个互换机上创立两个VLan: Switch>en Switch#conft Enterconfigurationcommands,oneperline.EndwithCNTL/Z. Switch(config)#vlan100 Switch(config-vlan)#vlan200 Switch(config-vlan)#查察创立的Vlan信息 Switch(config-vlan)#doshowvlan Switch(config-vlan)# 在两个计算机上把相应的端口划到两个VLan内。 Switch(config-vlan)#intf0/1 Switch(config-if)#switchportmodeaccess Switch(config-if)#switchportaccessvlan100 Switch(config-if)#intfa0/2 Switch(config-if)#switchportmodeaccessSwitch(config-if)#switchportaccessvlan200 Switch(config-if)# 配置trunk端口: Switch(config-if)#intgig0/1 精彩文档 实用标准文案 Switch(config-if)#switchporttrunkencapsulationdot1q Switch(config-if)#switchportmodetrunk Switch(config-if)#switchporttrunkallowedvlan100 Switch(config-if)#intgig0/2 Switch(config-if)#switchporttrunkencapsulationdot1q Switch(config-if)#switchportmodetrunk Switch(config-if)#switchporttrunkallowedvlan200 Switch(config-if)# 为计算机配置IP地点,检查网络是否通畅: Vlan100的网络地点:;Vlan200的网络地点: 以上配置实现了每个Vlan一个专用链路,实现了负载平衡。当某一个链路 Down掉后, 其中的一个Vlan通信将中止。 二、利用STP实现Vlan的负载平衡及链路冗余备份 去掉前面的一些配置: Switch(config-if)#noswitchporttrunkallowedvlan200 Switch(config-if)#intgig0/1 Switch(config-if)#noswitchporttrunkallowedvlan100 Switch(config-if)# 为Vlan配置STP: 在一个互换上配置: Switch>en Switch#conft Enterconfigurationcommands,oneperline.EndwithCNTL/Z. Switch(config)#spanning-treevlan100rootprimary Switch(config)# 在另一个互换相配置: Switch>en Switch#conft Enterconfigurationcommands,oneperline.EndwithCNTL/Z. Switch(config)#spanning-treevlan200rootprimary Switch(config)# 在一个互换机查察配置: Switch#shspanning-treevlan100 VLAN0100 Spanningtreeenabledprotocolieee RootIDPriority24676 Address Cost4 精彩文档 实用标准文案 Port25(GigabitEthernet0/1) HelloTime2secMaxAge20secForward Delay15sec BridgeIDPriority32868(priority32768sys-id-ext100) Address HelloTime2secMaxAge20secForwardDelay15sec AgingTime20 InterfaceRoleStsCostPrio.NbrType ---------------------------------------- ---

文档评论(0)

131****9837 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档