From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Hinsen Subject: Re: Adding a network interface Date: Tue, 26 Sep 2017 09:02:12 +0200 Message-ID: References: <877ewmzvto.fsf@elephly.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:4830:134:3::10]:44939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwjsq-0006J9-NO for guix-devel@gnu.org; Tue, 26 Sep 2017 03:02:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwjsn-0007E8-KW for guix-devel@gnu.org; Tue, 26 Sep 2017 03:02:20 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:56153) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dwjsn-0007DG-Af for guix-devel@gnu.org; Tue, 26 Sep 2017 03:02:17 -0400 In-Reply-To: <877ewmzvto.fsf@elephly.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: guix-devel@gnu.org Hi Ricardo, Thanks for your reply! > This works for me. I have configured berlin.guixsd.org with two network > interfaces by simply providing static-networking-service twice. I=E2=80= =99m not > removing any services from %base-services: > > (services (cons* =E2=80=A6 > (static-networking-service "enp6s4f0" > "141.80.181.40" > #:netmask "255.255.255.0" > #:gateway "141.80.181.1") OK, so my first try was right but my interpretation of the error message wasn't. After some further exploration, the already-running network service is indeed not the statically configured loopback, but (dhcp-client-service), which handles all network adapters other than loopback. Configuring both of my adapters with static IPs works very well, but is not practical for a laptop used in different networks. Back to rethinking my deployment strategy... Konrad.