* [PATCH docs v2] network: ipv6: mention that all interfaces do slaac
@ 2026-11-27 17:48 Stoiko Ivanov
0 siblings, 0 replies; only message in thread
From: Stoiko Ivanov @ 2026-11-27 17:48 UTC (permalink / raw)
To: pve-devel
Configuring a bridge with the mindset of it being a pure layer 2
device can lead to surprises when it suddenly gets internet
connectivity (by the network announcing a prefix and router).
This might be especially surprising for users not coming from a Linux
background (where this has been the default for a long time).
Adding a note to our documentation might help prevent surprises.
Using the options in /etc/network/interfaces instead of suggesting
a sysctl.d snippet should ensure that the settings are set on each
reload.
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 sysctls in /etc/network/interfaces can happen independently of
this change.
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
---
v1->v2:
* used the ifupdown2 options instead of post-up, rephrased based
on Gabriel's feedback (thx!!)
v1:
https://lore.proxmox.com/pve-devel/20261127090546.1830489-1-s.ivanov@proxmox.com/
pve-network.adoc | 31 +++++++++++++++++++++++++++++--
1 file changed, 29 insertions(+), 2 deletions(-)
diff --git a/pve-network.adoc b/pve-network.adoc
index f8bfe2d..5008c81 100644
--- a/pve-network.adoc
+++ b/pve-network.adoc
@@ -861,13 +861,40 @@ 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
+~~~~~~~~~~~~~~~~~~~
+
+By default, the Linux kernel enables stateless autoconfiguration and
+accepting router advertisements for IPv6 on all interfaces.
+
+All interfaces, including bridges, will configure addresses and routes
+if the network provides prefix and router information.
+
+Automatic configuration can be disabled through the corresponding
+https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt[sysctls]:
+
+----
+net.ipv6.conf.<interface>.accept_ra = 0
+net.ipv6.conf.<interface>.autoconf = 0
+----
+
+As these only become available once an interface exists, and they need to be
+set every time when activating it, setting them through
+`/etc/network/interfaces` ensures the correct timing:
+
+----
+iface <interface> inet manual
+ accept-ra 0
+ autoconf 0
+----
+
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
+Should you still need to disable support for IPv6 completely on a 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:
--
2.47.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-27 17:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 17:48 [PATCH docs v2] network: ipv6: mention that all interfaces do slaac Stoiko Ivanov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox