收藏 分销(赏)

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

上传人:pc****0 文档编号:6108757 上传时间:2024-11-28 格式:DOCX 页数:5 大小:50.07KB 下载积分:10 金币
下载 相关 举报
华为配置非等价负载分担.docx_第1页
第1页 / 共5页
华为配置非等价负载分担.docx_第2页
第2页 / 共5页


点击查看更多>>
资源描述
本举例介绍基于接口的非等价负载分担的配置示例。 组网需求 如图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 2.2.2.2 32 30.1.1.2 [RouterA] 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.1 [RouterB] ip route-static 1.1.1.1 32 40.1.1.1 检查路由配置。 # 在RouterA上查看静态路由信息。 <RouterA> display ip routing-table Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Routing Tables: Public Destinations : 3 Routes : 5 Destination/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 GigabitEthernet 0/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 GigabitEthernet 0/0/1 # 在RouterA上可以ping通2.2.2.2。缺省情况下,RouterA的出接口上实现了等价负载分担功能。 在RouterA的接口上使能非等价路由负载分担功能。 [RouterA] interface eth-trunk 1 [RouterA-Eth-Trunk1] load-balance bandwidth 1500000 [RouterA-Eth-Trunk1] load-balance unequal-cost enable [RouterA-Eth-Trunk1] quit [RouterA] interface gigabitethernet 0/0/1 [RouterA-GigabitEthernet0/0/1] load-balance unequal-cost enable [RouterA-GigabitEthernet0/0/1] quit 重启接口,使RouterA上的UCMP配置生效。 [RouterA] interface eth-trunk 1 [RouterA-Eth-Trunk1] shutdown [RouterA-Eth-Trunk1] undo shutdown [RouterA-Eth-Trunk1] quit [RouterA] interface gigabitethernet 0/0/1 [RouterA-GigabitEthernet0/0/1] shutdown [RouterA-GigabitEthernet0/0/1] undo shutdown [RouterA-GigabitEthernet0/0/1] quit 验证配置结果 # 在RouterA上仍可以ping通20.1.1.1。 <RouterA> ping 2.2.2.2 PING 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 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-configuration,可以看到接口Eth-trunk1和GigabitEthernet0/0/1已配置非等价负载分担功能。 <RouterA> display 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.0 interface GigabitEthernet0/0/1 load-balance unequal-cost enable ip address 40.1.1.1 255.255.255.0 ... 配置文件 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 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 # ip route-static 2.2.2.2 32 30.1.1.2 ip route-static 2.2.2.2 32 40.1.1.2 # return RouterB的配置文件。 # sysname RouterB # interface Eth-trunk1 undo portswitch trunkport GigabitEthernet1/0/0 trunkport GigabitEthernet2/0/0 ip address 30.1.1.2 255.255.255.0 # interface GigabitEthernet0/0/1 ip address 40.1.1.2 255.255.255.0 # interface LoopBack0 ip address 2.2.2.2 255.255.255.255 # ip route-static 1.1.1.1 32 30.1.1.1 ip route-static 1.1.1.1 32 40.1.1.1 # return
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传

当前位置:首页 > 行业资料 > 医学/心理学

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服