On Sun, May 30, 2010 at 10:38:01PM +0000, a b wrote:
> (1) With "set localpref 500" on EBGP session on BSD02
> 
> "bgpctl sh rib" on BSD01 :
> I*> 0.0.0.0/0    172.16.99.254    500    0    65432    i
> *   0.0.0.0/0    172.16.99.254    100    0    65432    i
> 
> "bgpctl sh rib" on BSD02 :
> *>  0.0.0.0/0    172.16.99.254    500    0    65432    i
> 

This looks right. BSD02 is propegating the route to BSD01 and BSD01
selects that one as more prefered over the non iBGP route.

> (2) With no localpref set on EBGP session on BGP02
> 
> "bgpctl sh rib" on BSD01 :
> *> 0.0.0.0/0    172.16.99.254    100    0    65432    i
> I* 0.0.0.0/0    172.16.99.254    100    0    65432    i
> 
> "bgpctl sh rib" on BSD02 :
> *> 0.0.0.0/0    172.16.99.254    100    0    65432    i
> I* 0.0.0.0/0    172.16.99.254    100    0    65432    i
> 

Again correct, both routers select the eBGP route since the prefixes have
the same metrics until the tiebreaker reaches the ebgp vs ibgp check. In
both cases the router select the eBGP route and propagate that route to
the other iBGP router.

> (3) With "set localpref 25" on EBGP session on BSD02
> 
> "bgpctl sh rib" on BSD01 :
> *>    0.0.0.0/0    172.16.99.254 100    0    65432    i
> 
> "bgpctl sh rib" on BSD02 :
> I*>  0.0.0.0/0  172.16.99.254    100    0    65432    i
> *    0.0.0.0/0  172.16.99.254    25     0    65432    i
> 

Again everything is fine. BSD01 selects the eBGP route and propagets that
route as iBGP route the BSD02 where that route is more prefered because of
the higher localpref.

Note, only the active route is redistributed and over iBGP sessions only
the active routes that are not internal are redistributed. That is the
reason why in case 1 and 3 only one router ends up with both routes.

PS: please fix your mailclient. It is almost impossible to read the mails
because of the insane linewrapping.
-- 
:wq Claudio

Reply via email to