Re: BGP Local-Pref route map

From: Prakash H Somani (pdsccie@rediffmail.com)
Date: Sat Sep 21 2002 - 04:38:41 GMT-3


Hi,

Remote permit 20 statement.

regards...Prakash
On Fri, 20 Sep 2002 perkinsr@WellsFargo.COM wrote :
>I am trying to set local pref to 200 on specific incoming BGP
>routes.
>Specifically the network 21.21.21.0. I created the route-map
>setlocalpref
>that matches the ip and sets the local pref, then permits all
>others. For
>some reason all routes from that peer have the local-pref set to
>200.
>
>I don't know why this happens, if I add a 'set weight 50' to
>the
>setlocalpref premit 10 then the only the 21.21.21.0 route has its
>weight set
>to 50, but with local-pref it seems to be all the routes get it
>or none.
>
>Anyone know what to do about this?
>
>Ray
>
>
>
>
>
>router bgp 4799
> no synchronization
> network 111.111.111.0 mask 255.255.255.0
> network 150.50.111.0 mask 255.255.255.0
> aggregate-address 201.201.0.0 255.255.224.0 summary-only
> neighbor 150.50.44.44 remote-as 4799
> neighbor 150.50.44.44 update-source Loopback0
> neighbor 150.50.111.111 remote-as 111
> neighbor 150.50.111.111 send-community
> neighbor 150.50.111.111 remove-private-AS
> neighbor 150.50.111.111 route-map setlocalpref in
> neighbor 150.50.111.111 route-map step3.6 out
> neighbor 150.50.111.111 filter-list 1 out
> no auto-summary
>!
>route-map setlocalpref permit 10
> match ip address 14
> set local-preference 200
>!
>route-map setlocalpref permit 20
>!
>access-list 14 permit 21.21.21.0 log
>
>
>
>
>r1#sh ip bgp
>BGP table version is 25, local router ID is 150.50.11.11
>Status codes: s suppressed, d damped, h history, * valid, > best,
>i -
>internal
>Origin codes: i - IGP, e - EGP, ? - incomplete
>
> Network Next Hop Metric LocPrf Weight
>Path
>*> 12.12.12.0/24 150.50.111.111 0 0 111
>i
>*> 21.21.21.0/24 150.50.111.111 0 200 0 111
>i
>*> 111.111.111.0/24 0.0.0.0 0 32768 i
>*>i122.122.122.0/24 150.50.22.22 0 100 0 ?
>*>i144.144.144.0/24 150.50.44.44 0 100 0 i
>*> 150.50.111.0/24 0.0.0.0 0 32768 i
>*>i166.166.166.0/24 150.50.56.6 0 100 0
>65060 i
>*>i177.177.177.0/24 150.50.77.77 0 100 0 i
>*> 201.201.0.0/19 0.0.0.0 32768 i
>s> 201.201.1.0 150.50.111.111 0 200 0 111
>i
>s> 201.201.2.0 150.50.111.111 0 200 0 111
>i
>s> 201.201.3.0 150.50.111.111 0 200 0 111
>i
>s> 201.201.4.0 150.50.111.111 0 200 0 111
>i
>s> 201.201.5.0 150.50.111.111 0 200 0 111
>i
>*>i202.202.1.0 150.50.112.112 0 100 0 112
>i
>*>i202.202.2.0 150.50.112.112 0 100 0 112
>i
>*>i202.202.3.0 150.50.112.112 0 100 0 112
>i
>r1#



This archive was generated by hypermail 2.1.4 : Mon Oct 07 2002 - 07:43:59 GMT-3