华为配置非等价负载分担.docx_第1页
华为配置非等价负载分担.docx_第2页
华为配置非等价负载分担.docx_第3页
华为配置非等价负载分担.docx_第4页
免费预览已结束,剩余1页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

本举例介绍基于接口的非等价负载分担的配置示例。组网需求如图1所示,RouterA和RouterB之间通过两条链路连接。 RouterA上Eth-Trunk1接口的成员口是GE1/0/0和GE2/0/0;RouterB上Eth-Trunk1接口的成员口是GE1/0/0和GE2/0/0。 RouterA的GE0/0/1到RouterB的GE0/0/1是一条实际物理链路。 因为Eth-Trunk1接口包含了两个GE接口,所以其带宽是单独一条物理链路的两倍。要求RouterA到RouterB的这两条链路上实现非等价负载分担。图1 配置非等价负载分担组网图配置思路非等价负载分担配置思路如下:在RouterA和RouterB上配置静态路由。在RouterA的接口上配置非等价负载分担功能,使RouterA和RouterB之间的流量基于不同的链路进行非等价负载分担。数据准备为完成此配置示例,需准备如下的数据:接口类型和接口编号。各接口的IP地址和子网掩码。Eth-Trunk接口编号。Eth-Trunk接口的带宽值。操作步骤配置各个接口的IP地址(略)。配置静态路由。 # 在RouterA上配置静态路由。RouterA ip route-static 32 RouterA ip route-static 32 # 在RouterB上配置静态路由。RouterB ip route-static 32 RouterB ip route-static 32 检查路由配置。 # 在RouterA上查看静态路由信息。 display ip routing-tableRoute Flags: R - relay, D - download to fib - Routing Tables: Public Destinations : 3 Routes : 5 Destination/Mask Proto Pre Cost Flags NextHop Interface 55/32 Direct 0 0 D InLoopBack0 /24 Static 60 0 RD Eth-Trunk1 Static 60 0 RD GigabitEthernet0/0/1 /32 Static 60 0 RD Eth-Trunk1 Static 60 0 RD GigabitEthernet0/0/1 # 在RouterA上可以ping通。缺省情况下,RouterA的出接口上实现了等价负载分担功能。 在RouterA的接口上使能非等价路由负载分担功能。 RouterA interface eth-trunk 1RouterA-Eth-Trunk1 load-balance bandwidth 1500000RouterA-Eth-Trunk1 load-balance unequal-cost enableRouterA-Eth-Trunk1 quitRouterA interface gigabitethernet 0/0/1RouterA-GigabitEthernet0/0/1 load-balance unequal-cost enableRouterA-GigabitEthernet0/0/1 quit 重启接口,使RouterA上的UCMP配置生效。 RouterA interface eth-trunk 1RouterA-Eth-Trunk1 shutdownRouterA-Eth-Trunk1 undo shutdownRouterA-Eth-Trunk1 quitRouterA interface gigabitethernet 0/0/1RouterA-GigabitEthernet0/0/1 shutdownRouterA-GigabitEthernet0/0/1 undo shutdownRouterA-GigabitEthernet0/0/1 quit 验证配置结果 # 在RouterA上仍可以ping通。 ping PING : 56 data bytes, press CTRL_C to break Reply from : bytes=56 Sequence=1 ttl=255 time=2 ms Reply from : bytes=56 Sequence=2 ttl=255 time=2 ms Reply from : bytes=56 Sequence=3 ttl=255 time=2 ms Reply from : bytes=56 Sequence=4 ttl=255 time=2 ms Reply from : bytes=56 Sequence=5 ttl=255 time=2 ms - ping statistics - 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 2/2/2 ms # 在用户视图下执行命令display current-configuration,可以看到接口Eth-trunk1和GigabitEthernet0/0/1已配置非等价负载分担功能。 display erface Eth-trunk1 undo portswitch load-balance bandwidth 1500000 load-balance unequal-cost enable ip address interface GigabitEthernet0/0/1 load-balance unequal-cost enable ip address . 配置文件RouterA的配置文件。# sysname RouterA# interface Eth-trunk1 undo portswitch trunkport GigabitEthernet1/0/0 trunkport GigabitEthernet2/0/0 load-balance bandwidth 1500000 load-balance unequal-cost enable ip address # interface GigabitEthernet0/0/1 load-balance unequal-cost enable ip address #interface LoopBack0 ip address 55# ip route-static 32 ip route-static 32 #returnRouterB的配置文件。# sysname RouterB# interface Eth-trunk1 undo portswitch trunkport GigabitEthernet1/0/0 trunkport GigabitEthernet2/0/0 ip address # interface GigabitEthernet0

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论