t 20 //配置策略路由wei_10,序号为20,允许通过。
R1(config-route-map)#set weight 32768 //刚才没有匹配ACL 10的路由的weight设置为32768
R1(config-route-map)#exit
R1(config)#router bgp 100
R1(config-router)#neighbor 172.16.1.2 route-map wei_
10 in //在邻居172.16.1.2上应用策略路由wei_10
这样配置完成后,我们先在R1上clear ip bgp *,然后再来看看R1的BGP路由表:
R1#show ip bgp
BGP table version is 3, local router ID is
1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*
10.10.10.0/24 172.16.4.2 32768 200 i
*> 172.16.1.2
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>