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 ms0.migadu.com with LMTPS id 0GKGNxrb3WEWNAEAgWs5BA (envelope-from ) for ; Tue, 11 Jan 2022 20:31:38 +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 mI80MBrb3WEL2gAAG6o9tA (envelope-from ) for ; Tue, 11 Jan 2022 20:31:38 +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 4A2D539199 for ; Tue, 11 Jan 2022 20:31:38 +0100 (CET) Received: from localhost ([::1]:56758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7Mrp-00027h-3r for larch@yhetil.org; Tue, 11 Jan 2022 14:31:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40138) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7MrJ-00025k-6b for help-guix@gnu.org; Tue, 11 Jan 2022 14:31:05 -0500 Received: from mout01.posteo.de ([185.67.36.65]:39525) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7MrE-00052l-W1 for help-guix@gnu.org; Tue, 11 Jan 2022 14:31:04 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 4CF43240027 for ; Tue, 11 Jan 2022 20:30:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1641929457; bh=Dz+cyhhO4DdkEnoAgo6w6MLI45+hAFXCNT8TjiHOACk=; h=Date:From:To:Cc:Subject:From; b=Ae3soQVxvyn276CY9KDWEH/D8QXOdSkXdb/0p1VaLf9okHEgw9zI/aQeEyM5QZRuu vE6+g8Ad+yoN6TlxSeSPxZ6itnRfAccJPwpE5nCdDLzTN9n8rjttwubiyYdgb7TN/f DZcLn6PsyQzYOMdhG/MMNzxurNz1rneMzr5SY5wuTYMXyG/PR2cm4+0/7s0q+7u9u9 KD+9bEzewYI4HZwq/OVfc1CTWmMeYlRRtrx5tznuxqgR6BAIfq3Wn0ZRL6Jn9yNTxF r5SzjqMOFZPJEYjJW1aGfoLnJDvjQ3I0OD5FkqcchnU/h4coKtYTGEHQZeqCvnERAY RCX4tcKL6XTxQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4JYLQS43vgz6tnv; Tue, 11 Jan 2022 20:30:54 +0100 (CET) Date: Tue, 11 Jan 2022 19:30:53 +0000 From: Niklas Schmidt To: Julien Lepiller Subject: Re: Add VLAN with Guile Netlink link-add Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=185.67.36.65; envelope-from=snlabs@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=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: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641929498; 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=RMRNPj9zrgaEVL5cQHSs7NhFijSrt6B0OY0f5QA+uwE=; b=u0Yyc19OLFSfj9t8OdQhmxB4ZdwhThotPbVwYuYRPT870KgRLNpE3m0lVEDvfQKh+yNuob 8cCC5HByUhI+Xny5Rbpt0zmuTaOxSrf+8WeVUQ8kGrMhk3mUqWBZp/eTOVG+6D03WlgCoi Ht1xf7pwsTPZ66m6L/6YPQ4gtvaKl+db2F0USWXcYUitHw4o8LdWlqhKqJWgahzZWL9Hh5 DUN+0F3lK5x09+yfdnG6MQsRyCBvVOw+u/2zoTBd3SZTk9ZREsV8udyEWrx82JLCyZxTv/ +olkSBT5eVMt3lMxlvgYJ3DLiMKDgb71Et7zJ9Jzc0PwJ/xz23SxeSKyri0+cQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641929498; a=rsa-sha256; cv=none; b=qGVhTmXmt1BL2yLYZwwU7Lge4fNkGDRkjIfd7u213fw3lwnfZKsf7qT5dS1WeMIG5c8I03 0zK8sYrdnhFh+0F19yGCJBkHm+w/74TVIvfXHb+ia2j60uPPAqQSxBxOb53fAfbi70GCHA 0TewP6MNFVpO2RlzTYm7ODm0WmwgMucyY7reWzrEmO6k4fa5oIVlzML5u200Comoi75dU6 8eUGgnIFc+YsRQMLJfuxQBgL5EYKdz4YuTHUENha1T3LjuF/VAJ92L24Rrf+8wuIT8I/lm F2Bv4iUjPFZe8zWBMvPgw+J0XhiXak4+LgFq1IjR3NZy2bWr3To2jHpTlTuhlA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Ae3soQVx; dmarc=pass (policy=none) header.from=posteo.net; 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-Spam-Score: -4.52 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Ae3soQVx; dmarc=pass (policy=none) header.from=posteo.net; 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-Queue-Id: 4A2D539199 X-Spam-Score: -4.52 X-Migadu-Scanner: scn1.migadu.com X-TUID: yqAf2CIDrvvn Thanks a lot, Julien! I really like the short examples in the documentation. They are very helpful to me. Adding the VLAN link works now. For anyone interested, here is what works for me, based on Julien's documentation: As root (in order to configure network interfaces): root@guix ~# guix shell \ > --pure \ > --with-latest=guile-netlink \ > guile guile-netlink \ > -- guile guix shell: warning: cannot authenticate source of 'guile-netlink', version 1.1.2 updating checkout of 'https://git.lepiller.eu/git/guile-netlink'... retrieved commit 81c33102905b6a4467bbe2eefb9c17c6c23a58b3 Consider installing the 'guile-readline' package for convenient interactive line editing and input history. Consider installing the 'guile-colorized' package for a colorful Guile experience. GNU Guile 3.0.7 Copyright (C) 1995-2021 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> (use-modules (ip link) (ip addr)) scheme@(guile-user)> (link-add "ens3.10" "vlan" #:type-args '((id . 10) (link . "ens3"))) $1 = #t scheme@(guile-user)> (addr-add "ens3.10" "192.168.10.219/24") $2 = #t scheme@(guile-user)> (link-set "ens3.10" #:up #t) $3 = #t A ping over the newly created link works. Greetings Niklas On Tue, Jan 11, 2022 at 14:01:08 +0100, Julien Lepiller wrote: >Thanks for the report! It looks like I didn't read the netlink documentation properly and forgot a part of the message. I think I just fixed that in guile-netlink 1.1.2. You can access it with --with-latest=guile-netlink ;) >