Feature: allow to specify peer address for point-to-point links #62

Closed
opened 2024-10-22 00:48:04 +02:00 by marekm72 · 1 comment

Please handle the optional peer when configuring IP addresses on interfaces:

$ ip addr help 2>&1 | grep IFADDR
Usage: ip address {add|change|replace} IFADDR dev IFNAME [ LIFETIME ]
       ip address del IFADDR dev IFNAME [mngtmpaddr]
IFADDR := PREFIX | ADDR peer PREFIX

I found this needed for OSPF to work over unnumbered point-to-point links between BIRD and FRR (on the BIRD side, as FRR can find the peer address automagically). Without this the OSPF neighbor appears but remains stuck in Init state on the FRR side, and never appears on the BIRD side.

router1# ip addr add x.x.x.1 peer x.x.x.2/32 dev eth1  # need to declare this in ifstate
router2# ip addr add x.x.x.2/32 dev eth1  # this works with FRR but not with BIRD

If configured manually as router1 above, ifstatecli show only shows the peer address/prefix.

Please handle the optional peer when configuring IP addresses on interfaces: ``` $ ip addr help 2>&1 | grep IFADDR Usage: ip address {add|change|replace} IFADDR dev IFNAME [ LIFETIME ] ip address del IFADDR dev IFNAME [mngtmpaddr] IFADDR := PREFIX | ADDR peer PREFIX ``` I found this needed for OSPF to work over unnumbered point-to-point links between BIRD and FRR (on the BIRD side, as FRR can find the peer address automagically). Without this the OSPF neighbor appears but remains stuck in Init state on the FRR side, and never appears on the BIRD side. ``` router1# ip addr add x.x.x.1 peer x.x.x.2/32 dev eth1 # need to declare this in ifstate router2# ip addr add x.x.x.2/32 dev eth1 # this works with FRR but not with BIRD ``` If configured manually as router1 above, `ifstatecli show` only shows the peer address/prefix.
liske added this to the v2.0.0 milestone 2024-10-23 20:09:21 +02:00
Owner

ifstate 2.0+ will get support to set attributes of ip address like:

  • peer address
  • bcast address
  • protocol
ifstate 2.0+ will get support to set attributes of ip address like: - peer address - bcast address - protocol …
liske modified the milestone from v2.0.0 to 2.1.0 2025-07-06 11:53:17 +02:00
liske modified the milestone from 2.1.0 to v2.0.0 2025-07-06 11:53:54 +02:00
liske modified the milestone from v2.0.0 to 2.1.0 2025-07-06 22:54:44 +02:00
liske closed this issue 2025-11-08 16:53:33 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
liske/ifstate#62
No description provided.