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 <an...@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.


Reply via email to