Network Next Hop Metric LocPrf Weight Path
> 1.1.1.1/32 12.1.1.1 0 0 1 i
>i 5.5.5.5/32 3.3.3.3 0 100 0 (4) 5 i
> 200.1.0.0/22 0.0.0.0 3000 32768 1 ?
> 200.1.1.0 12.1.1.1 0 1000 0 1 ?
> 200.1.2.0 12.1.1.1 0 2000 0 1 i
> 200.1.3.0 12.1.1.1 0 3000 0 1 i
> 200.1.4.0 12.1.1.1 0 0 1 i
R3#show ip bgp
BGP table version is 29, local router ID is 3.3.3.3
Status codes: s suppressed, d damped, h history, valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
>i 1.1.1.1/32 2.2.2.2 0 100 0 1 i
> 5.5.5.5/32 4.4.4.4 0 100 0 (4) 5 i
>i 200.1.1.0 2.2.2.2 0 1000 0 1 ?
>i 200.1.2.0 2.2.2.2 0 2000 0 1 i
>i 200.1.4.0 2.2.2.2 0 100 0 1 i
R4#show ip bgp
BGP table version is 27, local router ID is 4.4.4.4
Status codes: s suppressed, d damped, h history, valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
> 1.1.1.1/32 2.2.2.2 0 100 0 (23) 1 i
> 5.5.5.5/32 45.1.1.5 0 0 5 i
> 200.1.1.0 2.2.2.2 0 1000 0 (23) 1 ?
> 200.1.4.0 2.2.2.2 0 100 0 (23) 1 i
R4#
R5#show ip bgp
BGP table version is 35, local router ID is 5.5.5.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
> 1.1.1.1/32 45.1.1.4 0 100 1 i
> 5.5.5.5/32 0.0.0.0 0 32768 i
> 200.1.1.0 45.1.1.4 0 100 1 ?
R2(config)#route-map aa permit 10
R2(config-route-map)#set as prepend 10 20 30 40 50
R2(config-route-map)#exit
R2(config)#route-map aa per
R2(config)#route-map aa permit 20
R2(config-route-map)#set as prepend 30 40 50
R2#show ip bgp
BGP table version is 36, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network Next Hop Metric LocPrf Weight Path
> 1.1.1.1/32 12.1.1.1 0 0 1 i
>i 5.5.5.5/32 3.3.3.3 0 100 0 (4) 5 i
> 200.1.0.0/22 0.0.0.0 3000 32768 {10,20,30,40,50,1} ?
> 200.1.1.0 12.1.1.1 0 1000 0 10 20 30 40 50 1 ?
> 200.1.2.0 12.1.1.1 0 2000 0 30 40 50 1 i
> 200.1.3.0 12.1.1.1 0 3000 0 1 i
*> 200.1.4.0 12.1.1.1 0 0 1 i
R2#show ip bgp 200.1.0.0
BGP routing table entry for 200.1.0.0/22, version 36
Paths: (1 available, best #1, table default, not advertised to any peer)
Not advertised to any peer
Refresh Epoch 1
{10,20,30,40,50,1}, (aggregated by 100 2.2.2.2)
0.0.0.0 from 0.0.0.0 (2.2.2.2)
Origin incomplete, localpref 3000, weight 32768, valid, aggregated, local, best
Community: internet 1:34464 3:3392 4:37856 no-advertise local-AS
原文地址:http://blog.51cto.com/13625527/2104125