unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#44571: Cannot configure a static IPv6 with static-networking-service-type
@ 2020-11-11 10:56 divoplade
  2020-11-11 12:03 ` Julien Lepiller
  0 siblings, 1 reply; 3+ messages in thread
From: divoplade @ 2020-11-11 10:56 UTC (permalink / raw)
  To: 44571

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#44571: Cannot configure a static IPv6 with static-networking-service-type
  2020-11-11 10:56 bug#44571: Cannot configure a static IPv6 with static-networking-service-type divoplade
@ 2020-11-11 12:03 ` Julien Lepiller
  2022-01-27 20:56   ` Jack Hill
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Lepiller @ 2020-11-11 12:03 UTC (permalink / raw)
  To: 44571, d



Le 11 novembre 2020 05:56:24 GMT-05:00, divoplade <d@divoplade.fr> a écrit :
>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

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#44571: Cannot configure a static IPv6 with static-networking-service-type
  2020-11-11 12:03 ` Julien Lepiller
@ 2022-01-27 20:56   ` Jack Hill
  0 siblings, 0 replies; 3+ messages in thread
From: Jack Hill @ 2022-01-27 20:56 UTC (permalink / raw)
  To: 44571-done

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-27 21:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-11 10:56 bug#44571: Cannot configure a static IPv6 with static-networking-service-type divoplade
2020-11-11 12:03 ` Julien Lepiller
2022-01-27 20:56   ` Jack Hill

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).