This has been frustrating me immensely for the past week. I have an OVH server with the IP of 144.217.76.xxx. I purchased an additional 2 IP addresses for VM configuration: 66.70.243.x81 66.70.243.x85
No matter what I do, I cannot seem to get the IP addresses to work with the VM's. I am not sure if it on the guest OS side or on the proxmox networking side. Normally this wouldn't be an issue for me, however, the Proxmox networking setup and the fact that the addresses are on a completely separate subnet has thrown me off a bit.
Current Ubuntu VM /etc/network/interfaces/
Please help if you can! I greatly apologize if there is another question like this, I was unable to find anything. Thanks again.
Best Answer
Okay, so on the OVH system there is a particular way of actually utilising IP's as vaguely laid out in their documentation.
(I'm guessing your bridge already works...)
To use any additional IP / or also known as failover IPs (since OVH do not actually do plain additional IPs) you will need to first create a virtual mac address.
How do you do this?
So now we need to setup the VM inside proxmox; we do this by setting the primary NIC interface Mac Address to that of the one just created.
http://prntscr.com/ftqi9p http://prntscr.com/ftqiht
Once you have done this turn the virtual machine back on - then once it boots, configure the interface. (spelling broadcast right this time would be a big help ;)
The network settings for 'ens18' should look something like:
OVH Gateway IP is always .254 of the subnet - good tip
Now once you have saved this configuration - reboot the network
service network-manager restart
If that is successfull you should be able to successfully ping google using the following command
ping -c3 google.com
(If this is successful then your DNS resolution and network is working)I am quite tired so forgive any mistakes I made - however this should work fine. ;)