Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

BGP -prefix-list route-map problem.

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

1 REPLY
VIP Super Bronze

Re: BGP -prefix-list route-map problem.

Hi Subodh,

To resolve this issue you need to change "match ip address fromr3"

to "match ip address prefix-list fromr3"

Remember you defined a prefix-list and you have to reference that in your route-map.

Also do not forget "cle ip bg

HTH

Reza

352
Views
0
Helpful
1
Replies
CreatePlease login to create content