[Error] Using SDN to allocate public IPs to server - Nexthop has invalid gateway

denormalize

New Member
Dec 23, 2024
3
1
3
Hey all,
I am currently trying to set up SDN to allocate my public IPs to each server using MAC address specification from IPAM. Unfortunately, it has been a tough trial. The goal was to maintain internet access to VMs (which I could only get working my DHCP setup in SDN on this server for some reason) while automatically assigning one of my five IPs meant to be outward facing to each new container -- and manage them using MAC addresses w/ IPAM.

Configuration:
Zone is VLAN type named "publicIP" bound to the vmbr0 Linux Bridge that is connected like so --
Port/Slave is enp5s0, only network device | CIDR is xx.xxx.xxx.98/29, my public IP | Gateway is xx.xxx.xxx.97
VNet is named "vnetIP" and is connected to the previous zone.
Here's where the problem is. The subnet...
Subnet configuration is as follows -
Subnet IP is xx.xxx.xxx.96/29 (host told me that's where the allocation begins) | Gateway is same as on vmbr0, xx.xxx.xxx.97 |SNAT is on | DHCP Range is xx.xxx.xxx.98 to xx.xxx.xxx.102

When I apply this to my SDN, I get the following error logs:
Code:
Removed "/etc/systemd/system/multi-user.target.wants/dnsmasq@dhcp.service".
Created symlink /etc/systemd/system/multi-user.target.wants/dnsmasq@dhcp.service -> /lib/systemd/system/dnsmasq@.service.
vmbr0 : error: vmbr0: cmd '/bin/ip route replace default via 69.197.131.97 proto kernel dev vmbr0 onlink' failed: returned 2 (Error: Nexthop has invalid gateway.

TASK ERROR: command 'ifreload -a' failed: exit code 1

Any help would be super appreciated.
 

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!