API Guide

查看路由映射
OS10(conf-route-map)# do show route-map
route-map bgproutemap, permit, sequence 1
Match clauses:
Set clauses:
local-preference 500
metric 400
origin incomplete
Identifier GUID-7E0730F7-1B99-4ABD-9F13-B38186957B78
Version 7
Status Translation approved
权重属性
您可以根据权重值影响 BGP 路由。当存在多个到同一目标的路由时具有较高权重值的路由具有优先权。
1. ROUTER-BGP 模式下为邻居连接分配权重。
neighbor {ip-address}
2. ROUTER-NEIGHBOR 模式下设置路由的权重值1 4294967295默认值为 0
weight weight
3. 返回到 ROUTER-BGP 模式。
exit
4. ROUTER-BGP 模式下为对等组分配权重值。
template template name
5. ROUTER-BGP 模式下设置路由的权重值。
weight weight
修改权重属性
OS10(config)# router bgp 10
OS10(config-router-bgp-10)# neighbor 10.1.1.4
OS10(config-router-neighbor)# weight 400
OS10(config-router-neighbor)# exit
OS10(config-router-bgp-10)# template zanzibar
OS10(config-router-template)# weight 200
Identifier
GUID-9624C362-53F5-4824-81E6-EF6C94D87293
Version 6
Status Translation approved
启用多路径
默认情况下您可以具有一个到目标的路径并且可以启用多路径以允许到目标的最多 64 个并行路径。show ip bgp network
令包括该网络的多路径信息。
ROUTER-BGP 模式下启用多个并行路径。
maximum-paths {ebgp | ibgp} number
启用多路径
OS10(config)# router bgp 10
OS10(conf-router-bgp-10)# maximum-paths ebgp 10
558 3