Configuration Problem : announce default route via ospf

Raphael Mazelier raph at futomaki.net
Thu Jan 17 15:41:14 CET 2013


> Not with metric but with preference. The OSPF route has preference 150
> while the kernel route has preference 10. Use option 'preference' in
> kernel protocol to set higher value (like 200) for imported kernel
> routes. Or you could use static protocol to define default route
> (static protocol has default preference 200).
>
Thanks a lot. My final working config is :

# redistribute default
filter export_OSPF {
     if ( net = 0.0.0.0/0 ) then {
         ospf_metric2 = 100;
         accept;
     }
     reject;
}

protocol kernel {
         learn;
         preference 200;
         scan time 2;
         import all;
         export all;
}

protocol ospf {
         import all;
         export filter export_OSPF;
...

Looks good.

-- 
Raphael Mazelier





More information about the Bird-users mailing list