From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id wMWTMS+SbGbodQEAe85BDQ:P1 (envelope-from ) for ; Fri, 14 Jun 2024 18:55:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id wMWTMS+SbGbodQEAe85BDQ (envelope-from ) for ; Fri, 14 Jun 2024 20:55:43 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=IQ++Zpfe; dmarc=none; 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-Seal: i=1; s=key1; d=yhetil.org; t=1718391343; a=rsa-sha256; cv=none; b=k9qhX7oJJi5mP4/tDZKC4C7jF+pZNgRPYK8M+qYXJ+nsO8Z9GVcYWPJ3vrBoL7hwhjFrgQ cfNPSEyqg3HJJJjdWO1MGkjvfx6PTYhGZC8pvSo4pZ21wYgkdSdiAdFbFY8ChR5vaC4aoD 8FjtT9K05YjX+gr42sEuLInG9kQV7xAA23pWOfXFJ/Cl05stM2/esVGRdhVl9JESaq98xQ bhreMkrKd+bTO1yktLo3oO+R+VyYzNbI+DIhiP336XYRLXu6OZt8/y9y2jLmf+pubWmp6L kV/FMmbsw+uFdAAIdiG0A3/0FxHp1go8m9SW3p3zZUORboXkRcTzLQiWBRExYQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=freakingpenguin.com header.s=x header.b=IQ++Zpfe; dmarc=none; 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=1718391343; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=yfRgQ3PjSHn2rsYXU0U/TskXAC9xUSqDT5ANZFrltdY=; b=dCdT9MKbNM1tyloM6h1fIhKkVvxe/nASb9UyQJW7476lXQ8WwLRgnN9cJRKt928iu7jvk1 Tuf07pnCbbXkmQWqljzZSic7g2avOC28SRD2GhA0FJR9NRoyvrIc+qAGXhk8iqNTgQYReb ebl6Czlzr67v/bpPl+Dkm4K/YODkeHdua+6HHEabp6RgjoRRRuErCQN0/eKq+g5zYm3qAr CQgVRpVoMnq3PJKbGwkxxydA6nK6G/+WuKyKOT/SERdGr2/yQpzYGQIXxI8s2rvTiYJiZo /+bqxnxqF/Tqmxj60U+qN3+Aqxkp8V6CWLHO+VLzbh3kewRQG/6pcpp0I2ibIw== 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 844A51B385 for ; Fri, 14 Jun 2024 20:55:43 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sIC56-00020K-S4; Fri, 14 Jun 2024 14:55:24 -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 1sIC4x-0001yn-Ft for help-guix@gnu.org; Fri, 14 Jun 2024 14:55:16 -0400 Received: from mail-108-mta159.mxroute.com ([136.175.108.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sIC4v-0004Dh-Dp for help-guix@gnu.org; Fri, 14 Jun 2024 14:55:15 -0400 Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta159.mxroute.com (ZoneMTA) with ESMTPSA id 190181a841400017a3.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Fri, 14 Jun 2024 18:55:09 +0000 X-Zone-Loop: e7a84700568a3e332cab03b2757711326b579804de33 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=yfRgQ3PjSHn2rsYXU0U/TskXAC9xUSqDT5ANZFrltdY=; b=IQ++ZpfesZUIddp1X8vLSIAvHd QfRAV+xro3BKnWTMZV1miJF9v/9RXwdiqP+OrhEGHvIjBsgzUSMOj35+f4UEBn/pG8mTArGbSCOTM DMUoM3QZndmL8BFs5EWCBwxOUQ1Rm5212jUt1k+ja1HiRAODknl0MhTbPLJA/8AawzDYSg7AGZOjW QFM0G806ztIpK8aVUj3O6p/wKIH+4pBnV4mxYVf0ye2tD48K5b+LwsGvP5rB+MmgHXcSPpiBW6Y1U fnBBA6tC1SoLsMA9MhrCi82a9vKpmEEE1zfEa8DTezlJR72SrWiKNt/F02wj+akvDebNdHIfIHEGk MKRQLOfA==; From: Richard Sent To: Felix Lechner Cc: help-guix@gnu.org Subject: Re: dhcp-client default gateway with multiple interfaces, race condition? In-Reply-To: <877cer2y5b.fsf@lease-up.com> (Felix Lechner's message of "Fri, 14 Jun 2024 11:10:40 -0700") References: <87sexfpjp5.fsf@freakingpenguin.com> <877cer2y5b.fsf@lease-up.com> Date: Fri, 14 Jun 2024 14:55:01 -0400 Message-ID: <87o783pd6i.fsf@freakingpenguin.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Authenticated-Id: richard@freakingpenguin.com Received-SPF: pass client-ip=136.175.108.159; envelope-from=richard@freakingpenguin.com; helo=mail-108-mta159.mxroute.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 844A51B385 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.35 X-Spam-Score: -5.35 X-TUID: 1k4La8UuxRGV Hi Felix! Felix Lechner writes: > 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] Thanks for helping out! I think the existing code only supports providing a config file to dhcpd (dhcp server), not dhcp-client (aka dhclient, dhcp client). I submitted a patch for specifying a dhclient config file just now in dhcp-client-configuration [1]. Unfortunately while the patch itself seems fine, the config file doesn't seem to have an effect in my case. --8<---------------cut here---------------start------------->8--- # Problem still occurs if we run the command manually like this $ dhclient -nw -I -pf /var/run/dhclient.pid \ -cf /gnu/store/blah-dhclient.conf --8<---------------cut here---------------end--------------->8--- Annoyingly that nogateway option I mentioned seems to be a feature of dhcpcd [2], which has no organizational relationship to dhclient or dhcpd. I have confirmed the issue is solved if I manually invoke dhclient, don't provide a config file, and only specify eth0 as an interface. e.g. --8<---------------cut here---------------start------------->8--- $ dhclient -nw -I -pf /var/run/dhclient.pid eth0 --8<---------------cut here---------------end--------------->8--- Curiously providing the config file causes the error to appear again even if eth0 is the only interface provided at the command line. Presumably the fact that the config file references eth1 is enough for dhclient to scan it. For completeness, this is the contents of dhclient.conf: --8<---------------cut here---------------start------------->8--- # 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; } --8<---------------cut here---------------end--------------->8--- [1]: https://issues.guix.gnu.org/71561 [2]: https://github.com/NetworkConfiguration/dhcpcd -- Take it easy, Richard Sent Making my computer weirder one commit at a time.