From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id cITqEfRMGmTdlAAASxT56A (envelope-from ) for ; Wed, 22 Mar 2023 01:33:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GIsUEfRMGmSEbwAAG6o9tA (envelope-from ) for ; Wed, 22 Mar 2023 01:33:56 +0100 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 EBE993BE61 for ; Wed, 22 Mar 2023 01:33:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pemPt-0006sa-Sy; Tue, 21 Mar 2023 20:33:25 -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 1pemPs-0006s2-1V for help-guix@gnu.org; Tue, 21 Mar 2023 20:33:24 -0400 Received: from cyberdimension.org ([80.67.179.20] helo=gnutoo.cyberdimension.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1pemPq-0005f3-6f for help-guix@gnu.org; Tue, 21 Mar 2023 20:33:23 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 133c9400 for ; Wed, 22 Mar 2023 00:33:15 +0000 (UTC) Received: from primary_laptop (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 5eb86696 for ; Wed, 22 Mar 2023 00:33:15 +0000 (UTC) Date: Wed, 22 Mar 2023 01:32:48 +0100 From: Denis 'GNUtoo' Carikli To: help-guix@gnu.org Subject: static-networking-service-type: Using a static network bridge Message-ID: <20230322013248.7299a393@primary_laptop> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.30; i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/bnkDTDssaQLmXZ.qnoB6sJh"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=80.67.179.20; envelope-from=GNUtoo@cyberdimension.org; helo=gnutoo.cyberdimension.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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: , 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679445236; a=rsa-sha256; cv=none; b=gDVeYhjo15iz8hXgZDWjWL1aX60kP9IMtbmbDQo97HWbcnKc4ngk58KA88DD7+lED/Xo27 PMdu1xn6E4D3mpfnQelgxBD/yx4/mXWC7JZllqJGRSEBbMqdnZA0PWFVrENbHbtkCNhOIY cdckmmgu1ZB1zOo4+pU3gCd3sYepEpo/65/eumTUMN8Dh929kBWvEwvVuvazWxUPQJ/URo Dfhd8NALLU7ojkxSyco/Y2XbEI07TZs+wn9wTTaBkZ5xjPzzCQRv8wldqAsLfFghJOho2B ewxddWFNDhp6IXtJKKei9mXkJyV5b3wVdEoGUHiUDrSgUktBSR2cxbHX56AM2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=1679445236; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=BwTktDP59h2R9psw5FrO59yb4NYTdWX7e5TcKIbUvpw=; b=O9jVpaog8KSo4XnUyhf0cGhkXEaBoGfzn9kt7vlDVutANDF9NOI+rE9CxeyR/59nKKeF3e SoCruDoO5QiZ2pNMsQOLQIkopmjnBxkNCHdsc5bHJrKf1sYGx6Aq/0yjGfAWJHjqtY191z EFhiC9JclT8O7+Gq427BlCg8nvVtUZMLn6ZzbgpsH/UdxqsbRtO6+OFLl4gcIr0GrbK02E F09LSSfXddVDBtZhPWO4RuH7KkgH0gczFQVqsy5e8BWPIxgZodN4DceY54Hv0pmgDuBdY2 JDhAnuYUfJjP+5z84S+8ynC6vLFNbkwBBivbVoEtkIerZ8+JdWcwKtKBXHoMpw== X-Migadu-Spam-Score: -4.65 X-Spam-Score: -4.65 X-Migadu-Queue-Id: EBE993BE61 Authentication-Results: aspmx1.migadu.com; dkim=none; 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" X-Migadu-Scanner: scn1.migadu.com X-TUID: hQP3nvhbP9ih --Sig_/bnkDTDssaQLmXZ.qnoB6sJh Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, Is it possible to do something like that in a system configuration?: > ip link add lan0 type bridge > ip link set dev eth0 master lan0 > ip addr add 192.168.1.5/24 dev lan0 > ip route add default via 192.168.1.1 dev lan0 I've tried it with something like that (with the IP addresses and "eth0" changed): > (service static-networking-service-type > (list > (static-networking > (addresses (list (network-address > (device "lan0") > (value "192.168.1.5/24")))) > (links (list (network-link (name "lan0") > (type 'bridge) > (arguments '())) > (network-link > (name "eth0") > (type #f) > (arguments '("master" "lan0"))))) > (name-servers '("192.168.10.1")) > (routes (list (network-route (destination "default") > (gateway "192.168.1.1"))))))) but the issue is that the bridge isn't even created. Did I do something wrong, or is that configuration not supported? Denis. --Sig_/bnkDTDssaQLmXZ.qnoB6sJh Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmQaTLAACgkQX138wUF3 4mNrWA/7BxoWa+OVtqbCHfdm0+IzNH0OevYSSNB0xc8XAU/XuC2qI1Lh4ZtAsQ53 qquq26WUStonkYzxTSUj0fpmi7aEqIPptaSz3xylFZQfl+iD3jwRkogrP+2ygJaJ e/qSWuXm+u5WTeKdCPLNp1z5Tk3LoAvHq8ILGe/YYlRwBqkJbntQIlpAMmSh175P K3A/TilHhdKIgOZJNUv/dXJOaPjN1pr6obB18Srn7wubJ/Dmm8qsdSGkLoyGzScJ OKI/8aMzM6pWCEUqWZlpm0mvpTxOs7o1q9fmQKu/kUJsqGJoP09XKI7m8rsss0Xw 4fdgv8czBZGUTv5LSEH0dLIZmXBdrUNUaWWYmL2OTqnec1YKuaXjiqRPX8EfmqX6 iXRwUlRUAuyKuDTwxhaiZgodJa6Lj4f1VlhoaAUxNOqVnqy2WtCqQjuLKlLwbe2P 393LnCvT2kH37hNRpc8/aWmaJxcz0TTyiTIPduvpnj9cLhCQM5KiUamVyGgcAOCT 20me7gVUBD5YkoR26R94VXaglohXoQsSe8qoeM46tX9DNn0Aa8+JdHbXXSlYCZlb ka9Kxa76F04qATIp0gYsdb6Jlec6dTSAKqVeJWgqcQdtkwuJHU/EBpLc7M7oa4rN s/j5Qh7yQ8BIFVttQ2qnSvaY3JukSUwdU/BWTW4/uZq4p2whJAk= =Xi6p -----END PGP SIGNATURE----- --Sig_/bnkDTDssaQLmXZ.qnoB6sJh--