From: Hannes Laimer <h.laimer@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH pve-network 1/2] evpn: add ipv6 slaac support for vnets in an evpn zone
Date: Wed, 14 Jan 2026 15:52:55 +0100 [thread overview]
Message-ID: <20260114145257.47587-2-h.laimer@proxmox.com> (raw)
In-Reply-To: <20260114145257.47587-1-h.laimer@proxmox.com>
With this we allow to configure a `ipv6-nd-prefix` for vnets in a evpn
zone. If set, RAs with this prefix will be sent regularly so clients on
the vnet can perform SLAAC. Currently we don't set any of the available
(in RFC5175 specified) flags.
Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
---
src/PVE/API2/Network/SDN/Vnets.pm | 7 +++++++
src/PVE/Network/SDN/Controllers/EvpnPlugin.pm | 15 +++++++++++++++
src/PVE/Network/SDN/VnetPlugin.pm | 8 ++++++++
3 files changed, 30 insertions(+)
diff --git a/src/PVE/API2/Network/SDN/Vnets.pm b/src/PVE/API2/Network/SDN/Vnets.pm
index b8faeac..c767d55 100644
--- a/src/PVE/API2/Network/SDN/Vnets.pm
+++ b/src/PVE/API2/Network/SDN/Vnets.pm
@@ -82,6 +82,13 @@ my $VNET_PROPERTIES = {
maxLength => 256,
optional => 1,
},
+ 'ipv6-nd-prefix' => {
+ type => 'string',
+ format => 'CIDR',
+ description =>
+ 'IPv6 prefix to announce via Router Advertisements (SLAAC) on this VNet (EVPN).',
+ optional => 1,
+ },
'isolate-ports' => {
type => 'boolean',
description =>
diff --git a/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm b/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm
index e53000a..7db620b 100644
--- a/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm
+++ b/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm
@@ -447,6 +447,21 @@ sub generate_zone_frr_config {
sub generate_vnet_frr_config {
my ($class, $plugin_config, $controller, $zone, $zoneid, $vnetid, $config) = @_;
+ # SLAAC EVPN VNet
+ my $nd_prefix = $plugin_config->{'ipv6-nd-prefix'};
+ if (defined($nd_prefix) && length($nd_prefix)) {
+ my ($net) = split(/\//, $nd_prefix);
+ $nd_prefix = undef if !Net::IP::ip_is_ipv6($net);
+ } else {
+ $nd_prefix = undef;
+ }
+
+ if ($nd_prefix) {
+ my $iface_rules = ($config->{frr_interfaces}->{$vnetid} //= []);
+ push @$iface_rules, "ipv6 nd prefix $nd_prefix";
+ push @$iface_rules, "no ipv6 nd suppress-ra";
+ }
+
my $exitnodes = $zone->{'exitnodes'};
my $exitnodes_local_routing = $zone->{'exitnodes-local-routing'};
diff --git a/src/PVE/Network/SDN/VnetPlugin.pm b/src/PVE/Network/SDN/VnetPlugin.pm
index 717438c..3505f6e 100644
--- a/src/PVE/Network/SDN/VnetPlugin.pm
+++ b/src/PVE/Network/SDN/VnetPlugin.pm
@@ -62,6 +62,13 @@ sub properties {
type => 'string',
description => 'Name of the zone this VNet belongs to.',
},
+ 'ipv6-nd-prefix' => {
+ type => 'string',
+ format => 'CIDR',
+ description =>
+ 'IPv6 prefix to announce via Router Advertisements (SLAAC) on this VNet (EVPN).',
+ optional => 1,
+ },
type => {
type => 'string',
enum => ['vnet'],
@@ -104,6 +111,7 @@ sub options {
alias => { optional => 1 },
vlanaware => { optional => 1 },
'isolate-ports' => { optional => 1 },
+ 'ipv6-nd-prefix' => { optional => 1 },
};
}
--
2.47.3
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next prev parent reply other threads:[~2026-01-14 14:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-14 14:52 [pve-devel] [PATCH manager/network 0/3] add IPv6 SLAAC for vnets in evpn zones Hannes Laimer
2026-01-14 14:52 ` Hannes Laimer [this message]
2026-01-14 14:52 ` [pve-devel] [PATCH pve-network 2/2] evpn: add test for vnets with a `ipv6-nd-prefix` set Hannes Laimer
2026-01-14 14:52 ` [pve-devel] [PATCH pve-manager 1/1] ui: sdn: add `ipv6-nd-prefix` field to vnet form Hannes Laimer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260114145257.47587-2-h.laimer@proxmox.com \
--to=h.laimer@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.