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 100 0 1 i
>i 200.1.2.0 2.2.2.2 0 100 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 17, 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 100 0 (23) 1 i
> 200.1.4.0 2.2.2.2 0 100 0 (23) 1 i
R5#show ip bgp
BGP table version is 17, 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 i
扩展community属性----邻居之间一定要开启传输社团属性
R2(config)#router bgp 23
R2(config-router)# neighbor 12.1.1.1 route-map aa in
R2(config-route-map)#set community 100000
R2#show ip bgp 200.1.1.0
BGP routing table entry for 200.1.1.0/24, version 16
Paths: (1 available, best #1, table default)
Advertised to update-groups:
2
Refresh Epoch 5
1
12.1.1.1 from 12.1.1.1 (1.1.1.1)
Origin IGP, metric 0, localpref 100, valid, external, best
Community: internet 100000
R2(config)#ip bgp-community new-format
R2(config)#exit
Apr 9 17:06:06.826: %SYS-5-CONFIG_I: Configured from console by console
R2#show ip bgp 200.1.1.0
BGP routing table entry for 200.1.1.0/24, version 16
Paths: (1 available, best #1, table default)
Advertised to update-groups:
2
Refresh Epoch 7
1
12.1.1.1 from 12.1.1.1 (1.1.1.1)
Origin IGP, metric 0, localpref 100, valid, external, best
Community: internet 1:34464
原文地址:http://blog.51cto.com/13625527/2104120