简析路由负载均衡的配置

网络 网络优化 网络运维
本文针对路由负载均衡的一些问题进行了说明。从路由表的配置中我们可以找到答案,那么这些内容可以帮助我们了解这些相关配置的属性。

对于交换和路由设备我们也可是加上负载均衡技术,使他们的的性能更加优越。但是,从路由负载均衡的实际应用的链路中的路由分配和负载均衡并不是单一的对应关系,这是什么原因呢?下面我们就为大家说明一下这类问题。

BGP对其BGP表中的路由是必须选出一条***的,但可以对最终放到路由表中的路由负载均衡。

R1配置:

r1#show running-config | b r b
router bgp 1
no synchronization
bgp log-neighbor-changes
network 1.1.1.0 mask 255.255.255.0
neighbor 12.1.1.2 remote-as 2
neighbor 13.1.1.2 remote-as 2
maximum-paths 2(此时看到BGP表中还是只有一条***的路由被标记但是有2条路由负载均衡被放进路由表中!)
no auto-summary

R2配置:

r2#show running-config | b r b
router bgp 2
no synchronization
bgp log-neighbor-changes
network 2.2.2.0 mask 255.255.255.0
neighbor 12.1.1.1 remote-as 1
neighbor 23.1.1.2 remote-as 2
neighbor 23.1.1.2 next-hop-self(保证R3可以通过R2学到1.1.1.0/24的路由条目)
no auto-summary

#p#R3配置:

r3#show running-config | b r b
router bgp 2
no synchronization
bgp log-neighbor-changes
neighbor 13.1.1.1 remote-as 1
neighbor 23.1.1.1 remote-as 2
maximum-paths 2(没有任何效果)
no auto-summary

R1的路由表和BGP表:

r1#show ip bgp
BGP table version is 8, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
   Network   Next Hop     Metric LocPrf Weight Path
*> 1.1.1.0/240.0.0.0    0  32768 i
*> 2.2.2.0/2413.1.1.2   0 2 i
*     12.1.1.2   0      0 2 i
r1#show ip route
   1.0.0.0/24 is subnetted, 1 subnets
C1.1.1.0 is directly connected, Loopback0
     2.0.0.0/24 is subnetted, 1 subnets
B2.2.2.0 [20/0] via 12.1.1.2, 00:06:48
  [20/0] via 13.1.1.2, 00:05:52
     12.0.0.0/24 is subnetted, 1 subnets
C12.1.1.0 is directly connected, Serial1/0
     13.0.0.0/24 is subnetted, 1 subnets
C13.1.1.0 is directly connected, Serial1/1

做负载均衡的两条(或更高的)路径必须是EBGP属性,经我测试一条EBGP,一条IBGP是不可以的,2条IBGP也是不可以的。BGP表中还是一条***的路径被选择就是11条选录原则 但是命令maximum-paths可以对最终放进路由表中进行路由负载均衡.

责任编辑:佟健 来源: 互联网
相关推荐

2010-05-07 12:39:05

SQL Server负载均衡

2010-04-20 20:46:01

负载均衡

2010-04-23 11:05:16

流量负载均衡

2010-04-20 16:06:12

有线负载均衡

2010-04-28 16:26:45

Windows负载均衡

2010-05-10 14:29:11

线路负载均衡

2010-05-06 10:14:31

负载均衡器

2010-05-10 15:03:50

交换负载均衡

2009-11-09 12:45:44

路由负载均衡

2010-05-04 18:03:10

智能负载均衡

2010-04-22 14:19:21

LVS负载均衡集群

2018-11-27 12:56:09

负载均衡应用路由

2010-04-21 12:28:50

Oracle负载均衡

2010-04-22 12:45:05

2012-05-07 10:17:48

2010-05-05 23:27:32

负载均衡配置

2009-04-22 09:41:00

负载均衡设备

2011-07-12 14:04:58

2013-01-16 15:47:33

路由器IP地址负载均衡

2010-04-20 22:19:29

tomcat负载均衡配
点赞
收藏

51CTO技术栈公众号