On Mon, May 22, 2006 at 10:50:08PM -0400, G Douglas Davidson wrote:
> I'm having a heck of a time with openbgp on openbsd 3.7.  I am  
> attempting to set the localpref for a network and somehow it does not  
> appear to be happening.  I've tried:
> 
>       network 192.168.1.0/24 set localpref 200
> 
> and
> 
>       match to any prefix 192.168.1.0/24 set localpref 200
> 
> and I can't seem to make things happen.  If I do a:
> 
> freeza# bgpctl show rib 192.168.1.0/24
> flags: * = Valid, > = Selected, I = via IBGP, A = Announced
> origin: i = IGP, e = EGP, ? = Incomplete
> 
> flags destination         gateway          lpref   med aspath origin
> AI*> 192.168.1.0/24     0.0.0.0            200     0 i
> 
> It looks like the localpref has been set.  But checking out the  
> update produced by the "dump updates out" command, I don't see the  
> localpref set.  Also, looking at each of our two upstreams, the  
> localpref is still "100".  I've successfully used the match statement  
> to a specific upstream to set a community value, so I'm just not sure  
> what the issue is with this.
> 

Localpref is a non transitive attribute. It will only be passed to IBGP
peers. Localpref is not included in updates to your upstreams.
You probably need to look at metric/med or perhaps even do some
prepending.

-- 
:wq Claudio

Reply via email to