华为配置非等价负载分担.docx

上传人:工**** 文档编号:558096051 上传时间:2022-11-23 格式:DOCX 页数:5 大小:50.08KB
返回 下载 相关 举报
华为配置非等价负载分担.docx_第1页
第1页 / 共5页
华为配置非等价负载分担.docx_第2页
第2页 / 共5页
华为配置非等价负载分担.docx_第3页
第3页 / 共5页
华为配置非等价负载分担.docx_第4页
第4页 / 共5页
华为配置非等价负载分担.docx_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

《华为配置非等价负载分担.docx》由会员分享,可在线阅读,更多相关《华为配置非等价负载分担.docx(5页珍藏版)》请在金锄头文库上搜索。

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 配置非等价负载分担组网图配置思路非等价负载分担配置思路如下:在Route

2、rA和RouterB上配置静态路由。在RouterA的接口上配置非等价负载分担功能,使RouterA和RouterB之间的流量基于不同的链路进行非等价负载分担。数据准备为完成此配置示例,需准备如下的数据:接口类型和接口编号。各接口的IP地址和子网掩码。Eth-Trunk接口编号。Eth-Trunk接口的带宽值。操作步骤配置各个接口的IP地址(略)。配置静态路由。 # 在RouterA上配置静态路由。RouterA ip route-static 2.2.2.2 32 30.1.1.2RouterA ip route-static 2.2.2.2 32 40.1.1.2# 在RouterB上配置

3、静态路由。RouterB ip route-static 1.1.1.1 32 30.1.1.1RouterB ip route-static 1.1.1.1 32 40.1.1.1 检查路由配置。 # 在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 2.

4、1.1.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0 2.2.2.0/24 Static 60 0 RD 30.1.1.1 Eth-Trunk1 Static 60 0 RD 40.1.1.1 GigabitEthernet0/0/1 2.2.2.2/32 Static 60 0 RD 30.1.1.1 Eth-Trunk1 Static 60 0 RD 40.1.1.1 GigabitEthernet0/0/1 # 在RouterA上可以ping通2.2.2.2。缺省情况下,RouterA的出接口上实现了等价负载分担功能。 在RouterA的接口上使能非

5、等价路由负载分担功能。 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 重启

6、接口,使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 验证配置结果 # 在Rout

7、erA上仍可以ping通20.1.1.1。 ping 2.2.2.2PING 2.2.2.2: 56 data bytes, press CTRL_C to break Reply from 2.2.2.2: bytes=56 Sequence=1 ttl=255 time=2 ms Reply from 2.2.2.2: bytes=56 Sequence=2 ttl=255 time=2 ms Reply from 2.2.2.2: bytes=56 Sequence=3 ttl=255 time=2 ms Reply from 2.2.2.2: bytes=56 Sequence=4 t

8、tl=255 time=2 ms Reply from 2.2.2.2: bytes=56 Sequence=5 ttl=255 time=2 ms - 2.2.2.2 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

9、 current-configuration.interface Eth-trunk1 undo portswitch load-balance bandwidth 1500000 load-balance unequal-cost enable ip address 30.1.1.1 255.255.255.0interface GigabitEthernet0/0/1 load-balance unequal-cost enable ip address 40.1.1.1 255.255.255.0. 配置文件RouterA的配置文件。# sysname RouterA# interfac

10、e Eth-trunk1 undo portswitch trunkport GigabitEthernet1/0/0 trunkport GigabitEthernet2/0/0 load-balance bandwidth 1500000 load-balance unequal-cost enable ip address 30.1.1.1 255.255.255.0 # interface GigabitEthernet0/0/1 load-balance unequal-cost enable ip address 40.1.1.1 255.255.255.0 #interface LoopBack0 ip address 1.1.1.1 255.255.255.255#

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 医学/心理学 > 医学现状与发展

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号