warning: netlink: enp7s0: cannot delete address xx.x.xx.xx/32 dev enp7s0: operation failed with 'Cannot assign requested address' (99)

Apr 20, 2022
4
0
6
Hi,

Recently I'm having a warning when trying to reload network configurations.
This happens from the GUI (Apply configuration) and also directly in cli, I tried with -f and -c as well.

warning: netlink: enp7s0: cannot delete address xx.x.xx.33/32 dev enp7s0: operation failed with 'Cannot assign requested address' (99)

The reload seams to go through and everything is working, but this bothers me not being able to pinpoint the source.

Here is my interfaces:

Bash:
auto lo
iface lo inet loopback
iface lo inet6 loopback

auto enp7s0
iface enp7s0 inet static
    address xx.x.xx.45/32
    gateway xx.x.xx.33
    pointopoint xx.x.xx.33

iface enp7s0 inet6 static
    address xxxx:xxx:xxx:2054::2/64
    gateway fe80::1

auto vmbr0
iface vmbr0 inet static
    address xx.x.xx.45/32
    bridge-ports none
    bridge-stp off
    bridge-fd 0
    up ip route add xx.x.xx.43/32 dev vmbr0
    up ip route add xx.x.xx.41/32 dev vmbr0
    up ip route add xx.x.xx.40/32 dev vmbr0
    up ip route add xx.x.xx.34/32 dev vmbr0
    up ip route add xx.x.xx.253/32 dev vmbr0
    up ip route add xx.x.xx.252/32 dev vmbr0
# individual ip addresses

source /etc/network/interfaces.d/*
 
Last edited:
You have assigned the address xx.x.xx.45/32 twice for two different interfaces, enp7s0 and vmbr0 that does not seem right.
Can you describe your desired setup and have you read our network setup guide [0]?

[0] https://pve.proxmox.com/wiki/Network_Configuration
 
Hello,

Thank you for your response. I've reviewed the Network Configuration page and am currently utilizing Hetzner dedicated servers, closely following their tutorial alongside Proxmox guidelines. Initially, I encountered a lack of network connectivity and had to resort to the rescue mode. Through a process of trial and error, I managed to discover a configuration that works with this server [Proxmox Forum Link](https://forum.proxmox.com/threads/adding-second-ip-to-one-of-vms-of-current-proxmox-on-hetzner.136721/post-606925).

I am certainly open to suggestions for an improved configuration, if you could guide me in the right direction. I also have a different server with a distinct configuration that functions well. I tried replicating that setup on this server, altering only the IP addresses (the servers are identical except for their SSDs), but it was unsuccessful. Here is the configuration of my other server:

One notable difference between the two servers is the use of a subnet /28 on one, while the other uses individual IPs.

Here's the configuration of my other server:

Bash:
auto lo
iface lo inet loopback

iface enp7s0 inet manual

auto vmbr0
iface vmbr0 inet static
    address xxx.x.xxx.254/32
    gateway xxx.x.xxx.225
    bridge-ports enp7s0
    bridge-stp off
    bridge-fd 0
#Main IP for proxmox

iface vmbr0 inet6 static
    address xxxx:xxx:xxx:63c3::1/64
    gateway fe80::1

auto vmbr1
iface vmbr1 inet static
    address xxx.x.xxx.217/32
    bridge-ports none
    bridge-stp off
    bridge-fd 0
    up ip route add xxx.xx.xxx.144/28 dev vmbr1
#subnet routed: xxx.xx.xxx.144/28

iface vmbr1 inet6 static
    address xxxx:xxx:xxx:63c3:0:1:0:2/96

auto vmbr2
iface vmbr2 inet static
    address xxx.x.xxx.254/32
    bridge-ports none
    bridge-stp off
    bridge-fd 0
# up ip route add xxx.x.xxx.217/32 dev vmbr0 (individual IPs routed)

iface vmbr2 inet6 static
    address xxxx:xxx:xxx:63c3:0:2:0:2/96
    up ip -6 route add xxxx:xxx:xxx:63c3:0:2::/96 dev vmbr2

auto vmbr200
iface vmbr200 inet manual
    bridge-ports none
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 2-4094
#pfSense LAN

I aim to create a routed setup, where VMs with individual IPs are routed through the host IP as a gateway for some (without needing Hetzner Virtual MAC), and also to configure VMs with their own Individual IP gateway, which would require a Virtual MAC. This setup would be used with some VMs, like OPNsense, and others that I don't want to route through the Proxmox host. I'm exploring whether this is achievable or if a combination of bridged and routed setups is possible.
 
Last edited: