From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Lepiller Subject: Re: static-networking-service Date: Thu, 31 May 2018 13:14:54 +0200 Message-ID: References: <87d0xcp2ki.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fOLXr-0006Fn-Ee for help-guix@gnu.org; Thu, 31 May 2018 07:15:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fOLXm-0002Aj-Jh for help-guix@gnu.org; Thu, 31 May 2018 07:15:03 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:45020) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fOLXm-00025y-91 for help-guix@gnu.org; Thu, 31 May 2018 07:14:58 -0400 Received: from webmail.lepiller.eu (static-176-182-42-79.ncc.abo.bbox.fr [176.182.42.79]) by lepiller.eu (OpenSMTPD) with ESMTPSA id 4d08c9f9 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for ; Thu, 31 May 2018 11:17:03 +0000 (UTC) In-Reply-To: <87d0xcp2ki.fsf@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org Le 2018-05-31 12:00, Ricardo Wurmus a écrit : > Catonano 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"))))))