From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id mKtVB8yHbGZReAAA62LTzQ:P1 (envelope-from ) for ; Fri, 14 Jun 2024 18:11:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id mKtVB8yHbGZReAAA62LTzQ (envelope-from ) for ; Fri, 14 Jun 2024 20:11:24 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=Yau2F7Co; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718388684; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=IU4iQYLe7YeJ4wypIFUQyCScEsjCrA9Tcy/3p/OhCxU=; b=LFoPjidIqqmeB8iELJXjHO42KL0PWzRoT03n9ikV6PfpLRw/Sg4gZ3qd0BNDe2WK7dSRW5 /NFnoLYFpk9Q3G+Q+5+dJgXm7LSLssnhUoEiPMgnN0AqHsz3fXOzKd0rBcVEEh4hW2Kigc i5MQQZ8p8UUvgya4wriRJVitr8N9Jr5F649ZtOftCe1F5ouvxCLNM/Xe7W8BhTlbjNzzog Ddk8E2Tafi6Fp1Op/AkpBZiukJWPfvKqUTimZOTRODjUkDCEHUJjevxyTDqfe2jVAEWZgn OxtBrJFHctUikRqrgHzx/tmBTs/vxyPVpHlSe97QYZzXMB/URpO3mLgcq8r7uA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718388684; a=rsa-sha256; cv=none; b=ABcs2zbc43dZYiUBswnhAl+HfmmofD2uMIY/ViydU5gW2+Z37HtZzNUPUlDUhLkKwuAI/e oQdo9iNvwSMimhTDs5bhncBXA/C7S6u/PRyqHgy36Di9zUnxvzqIbHbr3cVo7rTf4mxFeW nFSgHQL/c7FI05bfVnQvLJaWViON0OuZHHylXlG32mVp6nT4tOnwnwnXV1WpM9GgtLTUVU Kt3ChqdJzrq0GzKTwy+LH1GGltku2S2Br0G3F4s4/v/ojlaQbS/nbsGqw55BMrLoheztgf WS9m0Ukz8QQtOwb/0rq9Z8TDdqIkpTev7HCCgpgc2z110nqxhfsILaz1m9wqHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=Yau2F7Co; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 219D963ECC for ; Fri, 14 Jun 2024 20:11:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sIBNv-0002GM-Oe; Fri, 14 Jun 2024 14:10:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sIBNt-0002Fs-Vq for help-guix@gnu.org; Fri, 14 Jun 2024 14:10:45 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1sIBNr-00054t-Me for help-guix@gnu.org; Fri, 14 Jun 2024 14:10:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=ZftzSdjWBGOzzf4 0YC61kJy1QysXgFAO/l9g0wb+4Yw=; h=date:references:in-reply-to:subject: to:from; d=lease-up.com; b=Yau2F7CopH+LH6K0YCnT3bamSijUHmejHfU/yecmmRo zC6uXwUPdUznJQD+2EZBzCVd6xHb5srPTqOg0LnEnZIF40LaBTKm17tq32Ev6TYma0OkbL WEw9DIFfYLU5wt+Ai21WzBLwRlkHDC318SMCeJZOwuc6wq3J7KCHpLrh7o= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id f8d46005 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Fri, 14 Jun 2024 18:10:41 +0000 (UTC) To: Richard Sent , help-guix@gnu.org Subject: Re: dhcp-client default gateway with multiple interfaces, race condition? In-Reply-To: <87sexfpjp5.fsf@freakingpenguin.com> References: <87sexfpjp5.fsf@freakingpenguin.com> Date: Fri, 14 Jun 2024 11:10:40 -0700 Message-ID: <877cer2y5b.fsf@lease-up.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@lease-up.com; helo=sail-ipv4.us-core.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Felix Lechner From: Felix Lechner via Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.85 X-Spam-Score: -2.85 X-Migadu-Queue-Id: 219D963ECC X-Migadu-Scanner: mx11.migadu.com X-TUID: JF5c8h+M5D/Z Hi Richard, On Fri, Jun 14 2024, Richard Sent wrote: > the default gateway isn't pointing towards the internet-routable > gateway The traditional answer has been that our dhclient service doesn't work very well. I had similar issues two years ago and, lacking time, simply went with network-manager or connman. Now, however, I took a look. I'm not sure what causes the discrepancy. Guix reads the contents of /proc/net/dev (in syscalls.scm) in a deterministic fashion so the error isn't in how we invoke 'dhclient'. I believe the 'dhcp-configuration' is not quite sophisticated enough so you may have to use the config-file option and include this content: # Assign this interface an IP address only. # (This disables setting the gateway router, DNS, domain, etc.) interface "eth1" { request subnet-mask, broadcast-address, interface-mtu; } That idea came from here. [1] It could also be enough to use the 'nogateway' option as suggested in the link you posted already. [2] I am just trying to help and did not try any of this. No warranties. Kind regards Felix [1] https://unix.stackexchange.com/questions/399659/how-to-avoid-dhclient-default-gateway-on-an-interface [2] https://unix.stackexchange.com/a/333610