OVH Community

Welcome to your community space. Ask questions, search for information, post content, and interact with other OVH Community members.

Multiple IPs wont work inside a proxmox vm


#1

Hi there,

I hope someone can help me with this because it’s driving me crazy.

I have 3 ips I wanna use on a Proxmox VM. I’ve assigned 3 interfaces to it and setup the macaddresses from OVH panel to each interface for the IPs.

I’m running Ubuntu 18.04 server. I’m using netplan to setup the ips, but whatever I do, I can only get one of the IP working. if I comment the other interfaces, I can get all of the IP working, but only one at a time. I need some serious help in what is suppose to go into the netplan config.

Proxmox IP: 51.178.68.146

My virtual machines IP I wanna configure:
5.196.33.108 (ens18) (mac: 02:00:00:d0:f5:01)
37.59.82.61 (ens21) (mac: 02:00:00:aa:6b:03)
37.59.82.62 (ens22) (mac: 02:00:00:32:24:39)

the last two are on it’s own block while the first is on another block.

My netplan with one working at a time looks like this:

network:
  version: 2
  renderer: networkd
  ethernets:
    ens18:
      addresses: [ 5.196.33.108/24 ]
      gateway4: 5.196.33.254
      nameservers:
          addresses: [ 8.8.8.8,8.8.4.4 ]
          search: []
    ens19:
      addresses: [ 192.168.1.10/24 ]
    ens20:
      addresses: [ 192.168.100.10/24 ]
   ens21:
     addresses: [ 37.59.82.61/24 ]
     gateway4: 37.59.82.61.254
     nameservers:
         addresses:
             - "8.8.8.8"
             - "8.8.4.4"
   ens22:
     addresses: [ 37.59.82.62/24 ]
     gateway4: 37.59.82.62.254
     nameservers:
         addresses:
             - "8.8.8.8"
             - "8.8.4.4"

Any help would be appreciated, because I’ve tried it all, and I really can’t get it working.

Here’s an image to the ip setup on OVH panel: