Hi,
We are receiving three subnets from external BGP peer next hop 10.1.2.1 expernal BGP peer ID
R6#sh ip bgp
BGP table version is 16, local router ID is 1.1.6.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
*> 0.0.0.0 1.1.3.1 0 0 11 i
*> 172.16.10.0/24 1.1.3.1 0 0 11 i
*> 192.168.1.0 1.1.3.1 0 0 11 i
Here is the pre-fix list and route map configured
ip prefix-list fromr3 seq 5 permit 192.168.1.0/24
route-map fromr3 permit 10
match ip address fromr3
set local-pref 110
set as-path prepend 11 11 11 11
!
route-map fromr3 permit 20
# neighbor 1.1.3.1 route-map fromr3 in Route map applied "in" direction.
With this configuration only subnet 192.168.1.0/24 is expected to have prepended by 11 11 11.
Remaining subnets are passed on the the second statement which will be passed on without any change in any attributes.
But what was found is it is prepending all routes with 11 11 11 and also Loc_pref 110. Here is the output
R6#sh ip bgp
BGP table version is 4, local router ID is 1.1.6.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
*> 0.0.0.0 1.1.3.1 0 110 0 11 11 11 11 11 i
*> 172.16.10.0/24 1.1.3.1 0 110 0 11 11 11 11 11 i
*> 192.168.1.0 1.1.3.1 0 110 0 11 11 11 11 11 i
Why is this taking place?
Please share the experience
Thanks
Subodh