Derive OSPF stub network configuration from interface?
Is it possible to configure OSPF stub network by giving the interface as parameter instead of the prefix? E.g. current syntax is area { stubnet prefix; } But can it be stated as interface instead of prefix so that if the interface address changes I don't need to update my configuration file?
On Wed, Nov 25, 2020 at 02:24:47PM +0000, Kenth Eriksson wrote:
Is it possible to configure OSPF stub network by giving the interface as parameter instead of the prefix? E.g. current syntax is
area { stubnet prefix; }
But can it be stated as interface instead of prefix so that if the interface address changes I don't need to update my configuration file?
Hi The stubnet option is targeted on cases, where stub prefix is not directly related to an iface, e.g. an aggregate stub network covering multiple ifaces. It is an analogy of 'networks', just on node level instead of area level. If you want just stub network based on iface prefix, then just define stub interface: area { interface "ethX" { stub; }; }; -- 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."
If you want just stub network based on iface prefix, then just define stub interface:
area { interface "ethX" { stub; }; };
But defining stub on the interface makes it become a passive interface. I still want to exchange OSPF hellos. Another option is with export filter rule, but then it becomes an E1 or E2, and I want to be an OSPF derived prefix. Or can an export filter do other than E1/E2? The manual says that stub network are generated implicitly by the following statement "By default, BIRD generates a stub network record for each primary network address on each OSPF interface that does not have any OSPF neighbors, and also for each non-primary network address on each OSPF interface." Is this true for unnumbered interfaces?
participants (2)
-
Kenth Eriksson -
Ondrej Zajicek