I configured "ip community-list" and "route-map" in router named "r2" in order to prepend AS path, modify origin attribute and decrease local-preference value based on the community value attached to received prefix. This "route-map" works fine, but why do I receive two prefixes and one of those is "received-only"?
Before the route-map was applied:r2#sh ip bgp 192.168.1.0
BGP routing table entry for 192.168.1.0/24, version 13
Paths: (1 available, best #1, table default)
Not advertised to any peer
65000, (received & used)
10.10.10.1 from 10.10.10.1 (192.168.1.1)
Origin IGP, metric 0, localpref 100, valid, external, best
Community: 1111:222
r2#
After the route-map was applied:r2#sh ip bgp 192.168.1.0
BGP routing table entry for 192.168.1.0/24, version 14
Paths: (2 available, best #1, table default)
Not advertised to any peer
65000 65000 65000 65000 65000 65000 65000 65000 65000 65000 65000
10.10.10.1 from 10.10.10.1 (192.168.1.1)
Origin incomplete, metric 0, localpref 87, valid, external, best
Community: 1111:222
65000, (received-only)
10.10.10.1 from 10.10.10.1 (192.168.1.1)
Origin IGP, metric 0, localpref 100, valid, external
Community: 1111:222
r2#