Cannot configure a static IPv6 with static-networking-service-type

OpenSubmitted by divoplade.
Details
3 participants
  • divoplade
  • Julien Lepiller
  • Ludovic Courtès
Owner
unassigned
Severity
important
D
D
divoplade wrote on 11 Nov 2020 11:56
(address . bug-guix@gnu.org)
1ec636e29d4ab70948fce3cf016d5240977a4423.camel@divoplade.fr
Dear guix,
My interface should be configured to have 2 static ip addresses, anIPv4 address and a global IPv6 address.
The static-networking-service-type will only accept one per device, andwill reject the IPv6 address (if I drop the IPv4 address) because itcan't parse it.
My workaround is to add a shepherd service that runs ip address add deveno1 the-address and ip address delete dev eno1 the-address, with ipfrom iproute2. Maybe static-networking-service-type could do somethingbetter for me?
Best regards,
divoplade
J
J
Julien Lepiller wrote on 11 Nov 2020 13:03
3121D0B2-5320-4232-A968-E68A791F6A80@lepiller.eu
Le 11 novembre 2020 05:56:24 GMT-05:00, divoplade <d@divoplade.fr> a écrit :
Toggle quote (9 lines)>Dear guix,>>My interface should be configured to have 2 static ip addresses, an>IPv4 address and a global IPv6 address.>>The static-networking-service-type will only accept one per device, and>will reject the IPv6 address (if I drop the IPv4 address) because it>can't parse it.
Thanks for the report. This is a known issue and I'm working on it. The idea is to implement the netlink interface in guile and use it to configure the network. I currently have the low-level bits for managing interfaces and addresses. I'm missing the routing part. Once I have this, I can think of a high-level interface that will allow us to build a static-network-service-type that understands IPv4 and IPv6.
See https://git.lepiller.eu/guile-netlink
Toggle quote (9 lines)>>My workaround is to add a shepherd service that runs ip address add dev>eno1 the-address and ip address delete dev eno1 the-address, with ip>from iproute2. Maybe static-networking-service-type could do something>better for me?>>Best regards,>>divoplade
L
L
Ludovic Courtès wrote on 3 Dec 2020 18:08
control message for bug #44571
(address . control@debbugs.gnu.org)
87wnxybyx9.fsf@gnu.org
severity 44571 importantquit
?