17 Jan
2013
17 Jan
'13
2:41 p.m.
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