From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Lepiller Subject: Re: how can I add a static IPv4 route? Date: Wed, 12 Feb 2020 13:34:10 -0500 Message-ID: References: <87blq3brv5.fsf@roquette.mug.biscuolo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54209) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1wqM-0005MN-Au for help-guix@gnu.org; Wed, 12 Feb 2020 13:34:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1wqL-0006Ki-0o for help-guix@gnu.org; Wed, 12 Feb 2020 13:34:38 -0500 Received: from lepiller.eu ([2a00:5884:8208::1]:58452) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j1wqK-0005x2-Ns for help-guix@gnu.org; Wed, 12 Feb 2020 13:34:36 -0500 In-Reply-To: <87blq3brv5.fsf@roquette.mug.biscuolo.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org, Giovanni Biscuolo Le 12 f=C3=A9vrier 2020 13:08:46 GMT-05:00, Giovanni Biscuolo a =C3=A9crit : >Hello, > >I have a very simple networking configuration: > >--8<---------------cut here---------------start------------->8--- >(service dhcp-client-service-type) >--8<---------------cut here---------------end--------------->8--- > >Please how can I add a static route? (I know there is wip-netlink, but >AFAIU it's still not in master) > >I found a message from Julien [1] explaining he is using a custom >service [2] to define both IPv4 and IPv6 for the same device: do I have >to adapt that? > >Since my guile-fu is very minimal, please do you have a snippet I can >reuse apart Julien's above? > >Thanks! Gio' > >[1] Message-ID: <80602DD8-60A9-487D-B39C-46360F42C0D2@lepiller=2Eeu> > >[2] >https://framagit=2Eorg/tyreunom/system-configuration/blob/master/modules/= config/network=2Escm Hi, I only use this custom service because guix doesn't provide static network= ing for IPv6=2E However, if you don't need IPv6, I'd like to encourage you = to use the static-networking-service that's described in the manual: https:= //guix=2Egnu=2Eorg/manual/devel/en/html_node/Networking-Services=2Ehtml#Net= working-Services Otherwise, feel free to copy and adapt my stuff :)