SDN is applied with errors

vlayerc

New Member
May 27, 2024
5
0
1
...and dont working



Hello!

I updated according to the recommendations in the official documentation https://pve.proxmox.com/pve-docs/chapter-pvesdn.html#pvesdn_installation.

Made a test Simple SDN and when applying it I get Warning:

Code:
WARN: missing 'source /etc/network/interfaces.d/sdn' directive for SDN support!
Removed “/etc/systemd/system/multi-user.target.wants/dnsmasq@test.service”.
Could not configure subnet test-192.168.22.0-24: No gateway defined for subnet test-192.168.22.0-24 at /usr/share/perl5/PVE/Network/SDN/Dhcp/Dnsmasq.pm line 128.


Created symlink /etc/systemd/system/multi-user.target.wants/dnsmasq@test.service -> /lib/systemd/system/dnsmasq@.service.


TASK WARNINGS: 1

Accordingly, Status = error

Specified source /etc/network/interfaces.d/*

under /etc/network/interfaces.d/ there is a sdn config file with the following contents

Code:
#version:9

auto test
iface test
    bridge_ports none
    bridge_stp off
    bridge_fd 0


Why might this be happening?

Thank you!
 
It seems like you have automatic DHCP active, but no gateway configured in the subnet.
 
Hi,

had the same thing on one of my nodes.
Check if in the file /etc/network/interfaces contains the following line:

source /etc/network/interfaces.d/*
 
Hi,

had the same thing on one of my nodes.
Check if in the file /etc/network/interfaces contains the following line:

source /etc/network/interfaces.d/*
Yes, of course, it exists.


Added an alias to SDN->VNets and the error changed
Code:
WARN: missing 'source /etc/network/interfaces.d/sdn' directive for SDN support!
Removed "/etc/systemd/system/multi-user.target.wants/dnsmasq@test.service".
Created symlink /etc/systemd/system/multi-user.target.wants/dnsmasq@test.service -> /lib/systemd/system/dnsmasq@.service.

TASK WARNINGS: 1

It seems like you have automatic DHCP active, but no gateway configured in the subnet.

I removed the DHCP and applied the configuration.
I saw another error below. Or do you mean different by your message?
Code:
WARN: missing 'source /etc/network/interfaces.d/sdn' directive for SDN support!
Removed "/etc/systemd/system/multi-user.target.wants/dnsmasq@test.service".

TASK WARNINGS: 1

Thank you!
 
Yes, the error is gone now, regarding the remaining warning can you please post the contents of your /etc/network/interfaces ?
 
Code:
auto lo
iface lo inet loopback

iface enp11s0f0 inet manual

iface enp11s0f1 inet manual

auto enp16s0f0
iface enp16s0f0 inet dhcp
#mgmt proxmoxve

auto enp16s0f1
iface enp16s0f1 inet static
    address 192.168.255.2/24
#cluster link

iface enxe61f13b0c733 inet manual

auto virtbr5
iface virtbr5 inet manual
    bridge-ports enp11s0f0
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 2-4094
#data for vm

souce /etc/network/interfaced.d/*

Some observation. I have a cluster of 2 servers. one has pve 8.2 and the other 8.0.

Does it make any difference in this case?
 
In subnets I removed also srcnat and now have the following:
Code:
WARN: missing 'source /etc/network/interfaces.d/sdn' directive for SDN support!

TASK WARNINGS: 1

Code:
root@pve2:/etc/network/interfaces.d# ls
sdn

root@pve2:/etc/network/interfaces.d# cat sdn
#version:13

auto test
iface test
    address 192.168.22.1/24
    bridge_ports none
    bridge_stp off
    bridge_fd 0
    alias test
    ip-forward on
 
Last edited:
You have a typo in your interfaces file:

Code:
souce /etc/network/interfaced.d/*

should be:

Code:
source /etc/network/interfaces.d/*
 
  • Like
Reactions: vlayerc
You have a typo in your interfaces file:

Code:
souce /etc/network/interfaced.d/*

should be:

Code:
source /etc/network/interfaces.d/*
Oh, my God. Thank you so much, it was my rush.
Thank you for your time!
Have a good day! :) It's working.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!