Proxomox Hosted CHR - IP Configuration

Hi all

I am working on a feasibility study to replace my existing VM platform to Proxmox and it works in a slightly strange way (IMO) compared to how my current platform works.

Basically I have a Hetzner dedicated server with a single fixed IP + a small /29 subnet. To enable the VMs to use the IPs from the subnet there is a a little bit of routing config required on the host, and then on the VMs I have to manually apply an IP and some routing.

I’ve managed to get this working for a debian and ubuntu hosted VM, but struggling a little with how to configure this for CHR, to try to explain i thought i’d share the IP config for the two linux boxes.

VM Host IP (numbers changed for this post) = 99.88.7.180

Ubuntu VM config (the key here to make this work is the routes)

network:
version: 2
renderer: networkd
ethernets:
ens18:
addresses: [99.88.9.17/32]
gateway4: 99.88.7.180
routes:

  • to: 0.0.0.0/0
    via: 99.88.7.180
    on-link: true
    nameservers:
    addresses: [8.8.8.8,8.8.4.4]

Deian VM config (the key here to make this work is the again the pointopoint statement, which is a route)

auto ens18
iface ens18 inet static
address 99.88.9.17
netmask 255.255.255.255
pointopoint 99.88.7.180
gateway 99.88.7.180

So on my CHR box I tried adding the IP 99.88.9.17/32 to ether1, then put in a route that said 0.0.0.0/0 should go via 99.88.7.180

/ip address add interface=ether1 address=99.88.9.17 netmask=255.255.255.255
/ip route add dst-address=0.0.0.0/0 gateway=99.88.7.180

No joy … do i need to do something above and beyond assigning the IP and sticking the route on the device to get the routing to work in the same way ?

Thanks !

NikC

Try this:

/ip address add interface=ether1 address=99.88.9.17 network=99.88.7.180
/ip route add dst-address=0.0.0.0/0 gateway=99.88.7.180

Awesome that worked a treat, thanks a lot for your help.