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: santi...@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."
signature.asc
Description: Digital signature