[f-nsp] What should be a simple route-map...

Tuc at T-B-O-H.NET ml at t-b-o-h.net
Thu Oct 19 16:53:41 EDT 2006


> On Wednesday 18 October 2006 18:03, you wrote:
> > > On Wednesday 18 October 2006 15:43, Tuc at T-B-O-H.NET wrote:
> > > > Hi,
> > > >
> > > > 	What should be a simple route map is kicking my backside this mornin=
> g.
> > > >
> > > > ip community-list extended as22822-customer seq 5 permit 4...
> > > > ip community-list extended as22822-customer seq 10 permit 5...
> > > >
> > > > ip prefix-list  filter24 seq 5 deny 0.0.0.0/0 ge 25
> > > > ip prefix-list  filter24 seq 10 permit 0.0.0.0/0 le 32
> > > >
> > > > route-map  bgp-from-as22822-primary permit  20
> > > >  match community  as22822-customer
> > > >  set metric 100
> > > >  set local-preference 160
> > > >  set community  35954:1000 35954:1004 35954:10041 additive
> > > > route-map  bgp-from-as22822-primary permit  25
> > > >  match ip address prefix-list filter24
> > > > route-map  bgp-from-as22822-primary permit  30
> > > >  set metric 100
> > > >  set local-preference 110
> > > >  set community  35954:1000 35954:1004 additive
> > > >
> > > >
> > > > 	It seems to not be throwing the route away. (I can't tell, the
> > > > reason I'm implementing is that my max-pref gets triggered constantly.
> > > > I can't take it off since its hitting the max the unit can take).
> > >
> > > Maybe this would work in your setup:
> > >
> > > !
> > > ip prefix-list  filter24 seq 5 permit 0.0.0.0/0 ge 25
> > > ip prefix-list  filter24 seq 10 deny 0.0.0.0/0 le 32
> > > !
> > > route-map  bgp-from-as22822-primary deny  25
> > >   match ip address prefix-list filter24
> > > !
> > >
> > 	:-/ No...
> >
> > #sho ip route bgp  | inc 255.255.255.224
> >         4.78.192.96     255.255.255.224 69.28.152.229   1
> >         63.209.69.32    255.255.255.224 69.28.152.229   1
> >         63.209.69.160   255.255.255.224 69.28.152.229   1
> >         63.209.70.0     255.255.255.224 69.28.152.229   1
> >         64.156.191.96   255.255.255.224 69.28.152.229   1
> >         166.90.144.32   255.255.255.224 69.28.152.229   1
> >         209.247.191.160 255.255.255.224 69.28.152.229   1
> >
> > 		Tuc
> 
> How about a direct prefix-filter, like:
> 
> !
> ip prefix-list  filter24 seq 5 deny 0.0.0.0/0 ge 25
> ip prefix-list  filter24 seq 10 permit 0.0.0.0/0 le 32
> !
> router bgp
>   ...
>   neighbor x.x.x.x prefix-list filter24 in
>   ...
> !
> 
	ACTUALLY.... I don't know why that 2nd line
was there, what I was trying to do with it. I was SUPPOSED
to be copying the line from an old router config, drop it
in, and "bobs your uncle" it would work.

ip prefix-list  long-prefixes seq 5 permit 0.0.0.0/0 ge 25


route-map  bgp-from-as22822-primary deny  25 
 match ip address prefix-list long-prefixes

	Which lead me to a startling discovery at first. It
didn't help any. Odd. So ok, I changed it to anything /20
or smaller. WHOOSH. I lost 166K routes! Ok, bumped to
"ge 23". Only 124K routes lost. Better, but lets see.
"ge 24". 107K routes lost. "ge 25"... Hits the max prefix of
199K I have on the router. Are you telling me there are
107K routes on the net that are /24 or smaller?

http://bgp.potaroo.net/286/bgp-active.html


	I guess so! Unreal!!!!!!! So now I need to figure
a way to put alot of those /24's back, but not all. I
guess I'll look to see if there is a way to tell it
"/24 AND more than 2 hops".

	I appreciate everyones help and understanding. I
didn't realize what I was getting into here.

		Thanks, Tuc



More information about the foundry-nsp mailing list