Discussion:
OSPF generate default route
Slawa Olhovchenkov
2013-08-25 21:36:13 UTC
Permalink
I have configuration problem: how I can generate default route in OSPF
area?

Generate, not redistribute from static kernel route or other routing
protocol.

Generate, not installed into kernel routeng table.

Same as for Cisco 'default-information originate always'.

Next question: conditional advertise default route (for example -- if
present announce in BGP to some network).
Ondrej Zajicek
2013-08-26 08:09:17 UTC
Permalink
Post by Slawa Olhovchenkov
I have configuration problem: how I can generate default route in OSPF
area?
Generate, not redistribute from static kernel route or other routing
protocol.
What is the difference?
--
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: ***@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."
Slawa Olhovchenkov
2013-08-26 07:41:33 UTC
Permalink
Post by Ondrej Zajicek
Post by Slawa Olhovchenkov
I have configuration problem: how I can generate default route in OSPF
area?
Generate, not redistribute from static kernel route or other routing
protocol.
What is the difference?
default route not present in kernel nor other routing protocols, only
prpopagate to OSPF area (from border router with full view BGP, for example).
Ondrej Filip
2013-08-26 07:49:14 UTC
Permalink
Post by Slawa Olhovchenkov
Post by Ondrej Zajicek
Post by Slawa Olhovchenkov
I have configuration problem: how I can generate default route in OSPF
area?
Generate, not redistribute from static kernel route or other routing
protocol.
What is the difference?
default route not present in kernel nor other routing protocols, only
prpopagate to OSPF area (from border router with full view BGP, for example).
Santiago's point is, that you don't have to connect such a static
protocol to anything else. So it does not have to be connected to
kernel protocol.

Ondrej
Slawa Olhovchenkov
2013-08-26 08:14:15 UTC
Permalink
Post by Ondrej Filip
Post by Slawa Olhovchenkov
Post by Ondrej Zajicek
Post by Slawa Olhovchenkov
I have configuration problem: how I can generate default route in OSPF
area?
Generate, not redistribute from static kernel route or other routing
protocol.
What is the difference?
default route not present in kernel nor other routing protocols, only
prpopagate to OSPF area (from border router with full view BGP, for example).
Santiago's point is, that you don't have to connect such a static
protocol to anything else. So it does not have to be connected to
kernel protocol.
OK, what about conditional propagate?
For example where 8.8.8.0/24 present in table?
(ex: two full-view BGP router with OSPF between, need to switch to
backup gateway)
Ondrej Zajicek
2013-08-26 09:11:36 UTC
Permalink
Post by Slawa Olhovchenkov
OK, what about conditional propagate?
For example where 8.8.8.0/24 present in table?
(ex: two full-view BGP router with OSPF between, need to switch to
backup gateway)
This is not supported. (Although planned.)
--
Elen sila lumenn' omentielvo

Ondrej 'SanTiago' Zajicek (email: ***@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."
Alexander V. Chernikov
2013-08-26 20:40:11 UTC
Permalink
Post by Ondrej Filip
On Mon, Aug 26, 2013 at 10:09:17AM +0200, Ondrej Zajicek
Post by Ondrej Zajicek
Post by Slawa Olhovchenkov
I have configuration problem: how I can generate default
route in OSPF area?
Generate, not redistribute from static kernel route or
other routing protocol.
What is the difference?
default route not present in kernel nor other routing
protocols, only prpopagate to OSPF area (from border router
with full view BGP, for example).
Santiago's point is, that you don't have to connect such a
static protocol to anything else. So it does not have to be
connected to kernel protocol.
OK, what about conditional propagate? For example where 8.8.8.0/24
present in table?
You can use 'aggregate' protocol (available in FreeBSD port) with
'mandatory route' to achieve conditional advertisement.
(ex: two full-view BGP router with OSPF between, need to switch to
backup gateway)
Slawa Olhovchenkov
2013-08-26 08:25:47 UTC
Permalink
Hi,
Post by Slawa Olhovchenkov
I have configuration problem: how I can generate default route in OSPF
area?
Use static protocol with different bird table (and not connected to kernel
table), add your route in it, an then using pipe transfer it into desired
bird tables (to which other proocols - OSP,BGP are connected).
Why several bird table? What issues with one, common table?
I am using this to insert some special routes (default outside and few
specific internal routes) into OSPF and it works flawlessly.
Post by Slawa Olhovchenkov
Generate, not redistribute from static kernel route or other routing
protocol.
Using independent static protocol is de-facto "generate" :-) And if you use
for it standalone config file, you can change it by external scripts and
then run birdc configure to apply changed route.
Post by Slawa Olhovchenkov
Generate, not installed into kernel routeng table.
If you use right export/import filter, then it won't change any kernel
routing table.
Post by Slawa Olhovchenkov
Next question: conditional advertise default route (for example -- if
present
Post by Slawa Olhovchenkov
announce in BGP to some network).
Again, use export/import filters. They are very functional for almost
everything you can imagine to filter :-)
I don't understand how in filter change (or add) network announce. In
documentation this attribute market as 'read-only'.
Loading...