华为配置非等价负载分担

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

《华为配置非等价负载分担》由会员分享,可在线阅读,更多相关《华为配置非等价负载分担(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 配置非

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

3、A ip route-static 2.2.2.2 32 40.1.1.2# 在 RouterB 上配置静态路由。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 Destina

4、tion/Mask Proto Pre Cost Flags NextHop Interface 2.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

5、通 2.2.2.2。缺省情况下,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-balanc

6、e 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 un

7、do shutdownRouterA-GigabitEthernet0/0/1 quit验证配置结果# 在 RouterA 上仍可以 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=

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

9、ion,可以看到接口Eth-trunk1 和 GigabitEthernet0/0/1 已配置非等价负载分担功能。display current-configuration.interface Eth-trunk1undo portswitch load-balance bandwidth 1500000load-balance unequal-cost enableip address 30.1.1.1 255.255.255.0interface GigabitEthernet0/0/1load-balance unequal-cost enableip address 40.1.1.1

10、255.255.255.0.配置文件RouterA 的配置文件。#sysname RouterA# interface Eth-trunk1undo portswitch trunkport GigabitEthernet1/0/0 trunkport GigabitEthernet2/0/0load-balance bandwidth 1500000load-balance unequal-cost enable ip address 30.1.1.1 255.255.255.0 # interface GigabitEthernet0/0/1load-balance unequal-cos

11、t enable ip address 40.1.1.1 255.255.255.0 #interface LoopBack0 ip address 1.1.1.1 255.255.255.255# ip route-static 2.2.2.2 32 30.1.1.2 ip route-static 2.2.2.2 32 40.1.1.2 #returnRouterB 的配置文件。#sysname RouterB# interface Eth-trunk1undo portswitch trunkport GigabitEthernet1/0/0 trunkport GigabitEthernet2/0/0ip address 30.1.1.2 255.255.255.0 # interface GigabitEthernet0/0/1ip address 40.1.1.2 255.255.255.0 #interface

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 建筑/环境 > 建筑资料

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