From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 6D4821FF0B4 for ; Fri, 27 Nov 2026 11:37:31 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 9F0BB2171E; Fri, 27 Nov 2026 11:37:29 +0100 (CET) Date: Fri, 27 Nov 2026 11:37:23 +0100 From: Gabriel Goller To: Stoiko Ivanov Subject: Re: [PATCH docs] network: ipv6: mention that all interfaces do slaac Message-ID: References: <20261127090546.1830489-1-s.ivanov@proxmox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20261127090546.1830489-1-s.ivanov@proxmox.com> User-Agent: NeoMutt/20260616 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1795775844889 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.209 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: 2NQ7ENMQFVHTNP7HUZGBSNLHVYLVA4LB X-Message-ID-Hash: 2NQ7ENMQFVHTNP7HUZGBSNLHVYLVA4LB X-MailFrom: g.goller@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: pve-devel@lists.proxmox.com X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On 27.11.2026 10:05, Stoiko Ivanov wrote: > Configuring a bridge with the mindset of it being a pure layer 2 > device can lead to suprises when it suddenly gets a internet > connectivity (by the network announcing a prefix and router). > > This holds even more for users not coming from a Linux background > (where this has been the default behavior for as long as I can > remember). > > Adding a note to our documentation might help prevent surprises with > this. > > This partially addresses https://bugzilla.proxmox.com/show_bug.cgi?id=1251 > > Adding a checkbox or similar to the options of a network interface to > set the sysctl's as post-up can happen independently of this change. > > Signed-off-by: Stoiko Ivanov > --- > pve-network.adoc | 31 ++++++++++++++++++++++++++----- > 1 file changed, 26 insertions(+), 5 deletions(-) > > diff --git a/pve-network.adoc b/pve-network.adoc > index f8bfe2d..7a66e07 100644 > --- a/pve-network.adoc > +++ b/pve-network.adoc > @@ -861,16 +861,37 @@ This means that packets arriving on vmbr0, that have VLAN Tag 49 set and > destination MAC address aa:aa:aa:d8:36:7c will not be forwarded, but be > terminated locally. > > +IPv6 considerations > +~~~~~~~~~~~~~~~~~~~ > + > +For IPv6 the Linux kernel defaults to having stateless autoconfiguration and > +accepting router advertisements enabled. > + > +All interfaces, including bridges, will configure addresses and routers s/routers/routes I think? > +if the network provides prefix and router information. > + > +To disable automatically configuring addresses and routers on an interface > +`$IFACE` you can use the proper > +https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt[sysctls]: We have a bit of a mix between recommending `/etc/sysctl.d/` and post-up for setting sysctls. I'd be in favor of `/etc/sysctl.d/`, but this is fine as well. > + > +---- > +net.ipv6.conf.$IFACE.accept_ra = 0 > +net.ipv6.conf.$IFACE.autoconf = 0 > +---- If we add this as post-up we need to add `sysctl` in front of these. BUT AFAIK we also support: iface vmbr0 inet static accept-ra 0 autoconf 0 No hard feelings which one we want... > + > +You can add this as `post-up` command in `/etc/network/interfaces`. > + > Disabling IPv6 on the Node > -~~~~~~~~~~~~~~~~~~~~~~~~~~ > +^^^^^^^^^^^^^^^^^^^^^^^^^^ > > {pve} works correctly in all environments, irrespective of whether IPv6 is > deployed or not. We recommend leaving all settings at the provided defaults. > > -Should you still need to disable support for IPv6 on your node, do so by > -creating an appropriate `sysctl.conf (5)` snippet file and setting the proper > -https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt[sysctls], > -for example adding `/etc/sysctl.d/disable-ipv6.conf` with content: > +Should you still need to disable support for IPv6 completely on for a node, do s/on// > +so by creating an appropriate `sysctl.conf (5)` snippet file and setting the > +proper > +https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt[sysctls], for > +example adding `/etc/sysctl.d/disable-ipv6.conf` with content: > > ---- > net.ipv6.conf.all.disable_ipv6 = 1 > -- > 2.47.3 > > > > >