OSPFv2 and unnumbered interfaces without peer ?
Hi All, Is it possible to use unnumbered interfaces without having a peer address setup ? Without a peer the state stays 'PtP (stub)' # ip link add name wg-test type wireguard # ip addr add dev wg-test local 1.2.3.4 # ip link set wg-test up # birdc show ospf interface Interface wg-test (1.2.3.4/32) Type: ptp Area: 0.0.0.0 (0) State: PtP (stub) ... # ip addr del 1.2.3.4/32 dev wg-test # ip addr add dev wg-test local 1.2.3.4 peer 5.6.7.8 # birdc show ospf interface Interface wg-test (peer 5.6.7.8) Type: ptp Area: 0.0.0.0 (0) State: PtP ... Jason (in CC) and I were wondering if this is a Bird limitation or if having a peer setup is really important semantically (and worth adding to all protocols in OpenWrt)? https://github.com/openwrt/openwrt/pull/3810 Thanks Etienne
Hi Again Le dim. 24 janv. 2021 à 11:57, Etienne Champetier <champetier.etienne@gmail.com> a écrit :
Hi All,
Is it possible to use unnumbered interfaces without having a peer address setup ? Without a peer the state stays 'PtP (stub)'
# ip link add name wg-test type wireguard # ip addr add dev wg-test local 1.2.3.4 # ip link set wg-test up
As pointed by Jason privately, to make the test equivalent to the peer exemple we should add a route # ip route add 5.6.7.8/32 dev wg-test This still give me stub state
# birdc show ospf interface Interface wg-test (1.2.3.4/32) Type: ptp Area: 0.0.0.0 (0) State: PtP (stub) ...
# ip addr del 1.2.3.4/32 dev wg-test # ip addr add dev wg-test local 1.2.3.4 peer 5.6.7.8 # birdc show ospf interface Interface wg-test (peer 5.6.7.8) Type: ptp Area: 0.0.0.0 (0) State: PtP ...
Jason (in CC) and I were wondering if this is a Bird limitation or if having a peer setup is really important semantically (and worth adding to all protocols in OpenWrt)? https://github.com/openwrt/openwrt/pull/3810
Thanks Etienne
On Sun, Jan 24, 2021 at 11:57:36AM -0500, Etienne Champetier wrote:
Hi All,
Is it possible to use unnumbered interfaces without having a peer address setup ? Without a peer the state stays 'PtP (stub)'
Jason (in CC) and I were wondering if this is a Bird limitation or if having a peer setup is really important semantically (and worth adding to all protocols in OpenWrt)?
Hi It is not possible in BIRD, but it is an implementation limitation, where BIRD OSPF implementation is strongly coupled with address slots instead of real interfaces. You can have multiple OSPF 'interfaces' (for each address slot) associated with one real (OS) interface and incoming packets are dispatched based of source addresses. The semantic advantage is that gateway addresses for such routes are considered local (based on interface addresses) so you do not need ONLINK flag. For true PtP link you can use routes without gateway, but often PtP links are just ethernet.
Well, peer address network setup is useful anyways. -- 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 (2)
-
Etienne Champetier -
Ondrej Zajicek