RE: bgp - prepending to locally source routes

From: Ozgur Guler (Garanti Teknoloji) (OzgurG@garanti.com.tr)
Date: Fri Oct 03 2003 - 04:19:07 GMT-3


Quote:
"Choose the route originated locally rather that the one that is not"
is not needed because as-path of a route originated locally will always be
shorter than any route."

---------------
think of ...
"bgp best-path as-path ignore"

this case
if one of the letter steps is in favor of the ebgp path(i.e. origin code),
the locally generated path will be used, by step 3 of the decision process.

and
you can not prepend ibgp routes...

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of Pierre-Alex
Sent: Friday, October 03, 2003 8:00 AM
To: Pierre-Alex; ccielab@groupstudy.com
Subject: Re: bgp - prepending to locally source routes

I also added to my router "ip local policy route-map addas in an attempt to
get this to work but no success even though matches are made

R5# sh route-map addas
route-map addas, permit, sequence 10
  Match clauses:
    ip address (access-lists): 1
  Set clauses:
    as-path prepend 1234
  Policy routing matches: 213 packets, 25679 bytes

I think the reason why I cannot prepend to sourced routes is because the
route goes directly to the Local-RIB .... because the route is not received
from any peer.

If my thinking is right, then my original comment is true :

 "Choose the route originated locally rather that the one that is not" is
not needed because
as-path of a route originated locally will always be shorter than any route.

Any comment welcome...

Thanks,

Pierre-Alex

----- Original Message -----
From: "Pierre-Alex" <pierreg@planetkc.com>
To: <ccielab@groupstudy.com>
Sent: Friday, October 03, 2003 5:42 AM
Subject: RE: bgp - prepending to locally source routes

> For your information this is what I did
>
> =============================
> router bgp 65030
> redistribute connected route-map addas
>
> route-map addas permit 10
> match ip address 1
> set as-path prepend 1234
>
> access-list 1
> permit any
>
> interface loopback 153
> ip addr 172.16.153.1 255.255.255.0
>
> =============================
>
> This is what I get
>
> *> 172.16.153.0/24 0.0.0.0 0 32768 ?
>
> =============================
>
> thanks,
>
> Pierre-Alex

***Get your CCIE and a FREE vacation: Shop.GroupStudy.com***



This archive was generated by hypermail 2.1.4 : Mon Nov 24 2003 - 07:52:56 GMT-3