BGP对其BGP表中的路由是必须选出一条最优的,但可以对最终放到路由表中的路由做负载均衡。
R1配置:
r1#show running-config | b r b
router bgp 1
no synchronization
bgp log-neighbor-changes
network
neighbor
neighbor
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
neighbor
neighbor
neighbor
no auto-summary
R3配置:
r3#show running-config | b r b
router bgp 2
no synchronization
bgp log-neighbor-changes
neighbor
neighbor
maximum-paths 2(没有任何效果)
no auto-summary
R1的路由表和BGP表:
r1#show ip bgp
BGP table version is 8, local router ID is
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
*>
*>
*
r1#show ip route
C
B
[20/0] vi
C
C
我们可以得到这样的结论:
做负载均衡的两条(或更高的)路径必须是EBGP属性,经我测试一条EBGP,一条IBGP是不可以的,2条IBGP也是不可以的。BGP表中还是一条最优的路径被选择就是11条选录原则 但是命令maximum-paths可以对最终放进路由表中的路由进行负载均衡
上一篇:[56cto网友尾巴原创]路由反射器 联邦综合实验
下一篇:[56cto网友原创]15.下一跳可达



