help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: static-networking-service


From: Julien Lepiller
Subject: Re: static-networking-service
Date: Thu, 31 May 2018 13:14:54 +0200
User-agent: Roundcube Webmail/1.3.6

Le 2018-05-31 12:00, Ricardo Wurmus a écrit :
Catonano <address@hidden> writes:

I think I could use some help about how to set up a networing device to be
used as a "bridge" for the libvirt-manager bridged networking

In the manual I found a procedure named static-networking-service but I
have no idea about how to use it

The static-networking-service currently does not support setting up
bonding or bridges.  It’s something I need for berlin.guixsd.org,
actually, so I’d be very happy to see this implemented :)

--
Ricardo

static-networking-service is also limited to IPv4. I wanted to configure an
IPv6 address, so I quickly wrote a service for this:

(define (iproute2-shepherd-service config)
  (list (shepherd-service
          (documentation "Run the iproute2 network service")
          (provision '(networking))
          (requirement '())
          (start #~(lambda _
                     (let ((ip (string-append #$iproute "/sbin/ip")))
(system* ip "a" "add" "89.234.186.109/32" "dev" "ens18")
                       (system* ip "l" "set" "ens18" "up")
(system* ip "-6" "a" "add" "2a00:5884:8208::1/48" "dev" "ens18") (system* ip "r" "add" "89.234.186.1" "dev" "ens18") (system* ip "r" "add" "default" "via" "89.234.186.1" "dev" "ens18") (system* ip "-6" "r" "add" "default" "via" "fe80::204:92:100:1" "dev" "ens18"))))
          (stop #~(lambda _
                    (display "Cannot stop iproute2 service.\n"))))))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]