OSPF Create and Originate Default Route
Anton Danilov
littlesmilingcloud at gmail.com
Mon Apr 2 17:45:02 CEST 2018
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 at 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 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.
>>>
>>>
>>>
>
--
Anton.
More information about the Bird-users
mailing list