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

DoneSubmitted by divoplade.
Details
4 participants
  • divoplade
  • Jack Hill
  • 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, 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.

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
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.


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 important
quit
J
J
Jack Hill wrote on 27 Jan 21:56 +0100
Re: bug#44571: Cannot configure a static IPv6 with static-networking-service-type
(address . 44571-done@debbugs.gnu.org)
alpine.DEB.2.21.2201271554470.9433@marsh.hcoop.net
Hi,

I believe this was fixed in c8609493ba6fd36c05815cad198060e54ea8c4f9 (and
related commits before and after). See the manual about the new
static-networking-service-type and welcome to the future!

Cheers,
Jack
Closed
?
Your comment

This issue is archived.

To comment on this conversation send email to 44571@debbugs.gnu.org