Hello! I use the OSPF module of the bird, however I use several different tables in both the module and the Linux kernel, and in general I need to create and distribute the default route. I saw in other discussions that the folks there are no problems in reading the route in the kernel table, and so redistribute it, I remember that this is not my case, I do not have the default route in these kernel tables. Does anyone have any idea how I will do this? -- André Carlim StubNetwork
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. On 26 March 2018 at 22:04, André Carlim <andre@stubnet.info> wrote:
Hello!
I use the OSPF module of the bird, however I use several different tables in both the module and the Linux kernel, and in general I need to create and distribute the default route. I saw in other discussions that the folks there are no problems in reading the route in the kernel table, and so redistribute it, I remember that this is not my case, I do not have the default route in these kernel tables. Does anyone have any idea how I will do this?
-- André Carlim StubNetwork
-- Anton.
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.
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@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.
-- Anton.
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@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.
Hi. You can set the metric by setting the attribute krt_metric in the export filter of the kernel protocol. Other way is usage of the 'metric' option in the protocol section. On 2 April 2018 at 18:25, André Carlim <andre@stubnet.info> wrote:
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@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.
-- Anton.
On Mon, Mar 26, 2018 at 04:04:50PM -0300, André Carlim wrote:
Hello!
I use the OSPF module of the bird, however I use several different tables in both the module and the Linux kernel, and in general I need to create and distribute the default route. I saw in other discussions that the folks there are no problems in reading the route in the kernel table, and so redistribute it, I remember that this is not my case, I do not have the default route in these kernel tables. Does anyone have any idea how I will do this?
Hello If you want to get default route from kernel table, you have to use 'learn' option to kernel protocol. Although more natural setup would be to define default route as a static route in BIRD and then export it to the kernel table like other routes. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@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."
participants (3)
-
André Carlim -
Anton Danilov -
Ondrej Zajicek