Hello everyone!
In this guide, I'll show you how to set up SDN Zones in Proxmox VE 8.1.
First, log into your Proxmox server:
https://yourfavoritedomain.tld:8006
Go to your Proxmox Server and open the shell.
Execute the following commands:
echo -e "\nsource /etc/network/interfaces.d/*" >> /etc/network/interfaces apt update apt install dnsmasq libpve-network-perl ifupdown2 -y systemctl disable --now dnsmasq
Click on Datacenter and then select "SDN".
Now click on Zones and add a Simple Zone:
It is very important to enable "automatic DHCP". Click on the checkbox down right and tick it.
Click on VNet, then create a vnet, give your VNet a name, and select your previously created Zone.
Now select your fresh created zapnet and switch over to Subnets. Click on Create and paste in the following configuration:
It's very important to tick the "SNAT" checkbox! Now head over to DHCP Ranges and enter the DHCP Range.
After that, click on Create!
Now, go back to "Datacenter", click on SDN and click on apply!
The status of our new SDN should now be available.
Now when you want to use it for LXC containers, select the new bridge as the adapter and enable IPv4 DHCP.
It's nearly the same for VMs.
The Container/VM should now pull an IP from the DHCP, congratulations!