Setting MED (?) for a specific BGP route

Ondrej Zajicek santiago at crfreenet.org
Mon Apr 2 18:30:51 CEST 2012


On Mon, Apr 02, 2012 at 03:26:51PM +1200, Michal Ludvig wrote:
>     export filter {
>             if source = RTS_OSPF then {
>                 bgp_path.prepend(64526);
>             }
>             [...]
>     }
> But that didn't make any difference.
>

Just quick answer:

> Now I've got these questions:
> 1. How do I alter MED for a specific route on one of the routers?

     import filter {
             if net = 1.2.3.4/24 then {
                 bgp_med = xxx;
             }
             [...]
     }

> 2. How can I get more details about the exported routes? Like the MED,  
> BGP path, etc? Just to make sure my filters do what I want them to do.

Add 'all' to the show route command:

show route all
show route 1.2.3.4/24 all

-- 
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/20120402/c33924b9/attachment-0001.asc>


More information about the Bird-users mailing list