Silly question about bgp_local_pref

Ondrej Zajicek santiago at crfreenet.org
Wed May 11 02:14:14 CEST 2011


On Tue, May 10, 2011 at 04:37:12PM +0200, fredrik danerklint wrote:
> Hi!
> 
> Can someone show me a working example how that works with iBGP?
> 
> I've tried with:
> 
> protocol bgp bgp4_1_2_3 {
> 	import filter {
> 	bgp_local_pref=150;
> 	accept;
> 	};
> etc....
> };
> 
> without any success with 'show route':
> bird> show route 
> 10.20.30.0/24      via 1.2.3.4 on igb1 [bgp4_1_2_3] 16:28 from 1.2.3.5] * 
> (100/5) [i]

Hello

Some points:

1) this should work as a way to change LOCAL_PREF

2) LOCAL_PREF is not shown in 'show route'. Use 'show route all' to show
LOCAL_PREF value. (100/5) values are different metrics - 100 is
'preference' (BIRD specific and BGP unrelated metric) and 5 is IGP metric
to the

3) bgp4_1_2_3 is iBGP? In that case you should not change LOCAL_PREF
(and most other BGP attributes) there. LOCAL_PREF is usually set on
import from eBGP. It is generally a bad idea to change route attributes
on iBGP links as that may easily lead to routing loops or oscillations.

-- 
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20110511/f07c4599/attachment-0001.asc>


More information about the Bird-users mailing list