From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (unknown [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id D401C1FF141 for ; Fri, 16 Jan 2026 17:33:48 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 088EB1DA54; Fri, 16 Jan 2026 17:33:43 +0100 (CET) From: Hannes Laimer To: pve-devel@lists.proxmox.com Date: Fri, 16 Jan 2026 17:33:38 +0100 Message-ID: <20260116163338.142289-1-h.laimer@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1768581170347 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.058 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [evpnplugin.pm] Subject: [pve-devel] [PATCH pve-network] sdn: evpn: fix IPv6 exitnode local routing X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Proxmox VE development discussion Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" IPv6 subnets on exitnodes had no working local-routing path. Add a v6 address on the xvrf veth pair and install IPv6 routes via that next-hop. Signed-off-by: Hannes Laimer --- src/PVE/Network/SDN/Controllers/EvpnPlugin.pm | 7 ++++++- src/PVE/Network/SDN/Zones/EvpnPlugin.pm | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm b/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm index e53000a..74fc35d 100644 --- a/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm +++ b/src/PVE/Network/SDN/Controllers/EvpnPlugin.pm @@ -462,7 +462,12 @@ sub generate_vnet_frr_config { foreach my $subnetid (sort keys %{$subnets}) { my $subnet = $subnets->{$subnetid}; my $cidr = $subnet->{cidr}; - push @controller_config, "ip route $cidr 10.255.255.2 xvrf_$zoneid"; + my ($ip) = split(/\//, $cidr, 2); + if (Net::IP::ip_is_ipv6($ip)) { + push @controller_config, "ipv6 route $cidr fd00:ffff::2 xvrf_$zoneid"; + } else { + push @controller_config, "ip route $cidr 10.255.255.2 xvrf_$zoneid"; + } } push(@{ $config->{frr_ip_protocol} }, @controller_config); } diff --git a/src/PVE/Network/SDN/Zones/EvpnPlugin.pm b/src/PVE/Network/SDN/Zones/EvpnPlugin.pm index 6d89499..4a61a4d 100644 --- a/src/PVE/Network/SDN/Zones/EvpnPlugin.pm +++ b/src/PVE/Network/SDN/Zones/EvpnPlugin.pm @@ -327,6 +327,7 @@ sub generate_sdn_config { @iface_config = (); push @iface_config, "link-type veth"; push @iface_config, "address 10.255.255.1/30"; + push @iface_config, "address6 fd00:ffff::1/126" if $ipv6; push @iface_config, "veth-peer-name $iface_xvrfp"; push @iface_config, "mtu " . ($mtu + 50) if $mtu; push(@{ $config->{$iface_xvrf} }, @iface_config) if !$config->{$iface_xvrf}; @@ -334,6 +335,7 @@ sub generate_sdn_config { @iface_config = (); push @iface_config, "link-type veth"; push @iface_config, "address 10.255.255.2/30"; + push @iface_config, "address6 fd00:ffff::2/126" if $ipv6; push @iface_config, "veth-peer-name $iface_xvrf"; push @iface_config, "vrf $vrf_iface"; push @iface_config, "mtu " . ($mtu + 50) if $mtu; -- 2.47.3 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel