OSPF Create and Originate Default Route

André Carlim andre at stubnet.info
Mon Apr 2 17:25:59 CEST 2018


Very good man!

Now, how do I change the metric for the routes that will be installed in 
the kernel?

---

Atenciosamente,
André Carlim
StubNetwork

Em 2018-03-27 03:42, Anton Danilov escreveu:
> It looks like something this:
> 
> # "s_" means "static"
> protocol s_default {
>   route 0.0.0.0/0 reject;
> }
> 
> filter ospf1_export {
>     # allow to advertise this default
>     # through ospf
>     if proto = "s_default" then {
>         accept;
>     }
>     ...
> }
> 
> filter kernel_export {
>     # if you don't want to insert this default
>     # into kernel route tables
>     if proto = "s_default" then {
>         reject;
>     }
>     accept;
> }
> 
> Then just use these filters in the ospf and the kernel protocol 
> declarations.
> If you use several bird tables you can use the pipe protocol or
> declare static protocol with default for every bird table.
> 
> 
> On 27 March 2018 at 01:09, André Carlim <andre at stubnet.info> wrote:
>> I do not quite understand you, can you exemplify?
>> 
>> ---
>> 
>> Atenciosamente,
>> André Carlim
>> StubNetwork
>> 
>> Em 2018-03-26 18:11, Anton Danilov escreveu:
>>> 
>>> Hi.
>>> You can create the static protocol with "route 0.0.0.0/0 reject" 
>>> entry
>>> and redistribute it into OSPF to advertise the default route through
>>> itself.
>> 
>> 


More information about the Bird-users mailing list