OSPFv2 and unnumbered interfaces without peer ?

Etienne Champetier champetier.etienne at gmail.com
Sun Jan 24 23:43:57 CET 2021


Hi Again

Le dim. 24 janv. 2021 à 11:57, Etienne Champetier
<champetier.etienne at 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



More information about the Bird-users mailing list