Adding multiple IPs to one NIC

poon2313

New Member
Apr 3, 2020
10
0
1
27
Hi there, it is possible to add multiple public IP address to the host server in only 1 NIC card. The purpose is to assign those IPs to VMs in future.
 
Hi there,

I had gone through a lot of articles and forums and google searches but could not find answer / get working the following scenario. The picture shows what I would like to achieve:

- I have a server in DC and have /28 IP range where x.x.x.1 is the gateway - the server has (at the moment) just one physical NIC connected (eno1)

- I would like to build a single PVE node (for now), where the default public IP will be x.x.x.5 and the private IP 192.168.0.1

- I want that all VMs are accessible via private network within the Node and thus should have their own private IPs from the 192.168.0.0/24 range and using their public IPs (when applicable)

- then I would like to have several VMs in different "configurations / scenarios"

- scenario #1 - the VMs do not have their own public IPs (VM1 and VM2) and the traffic is routed to them using nginx as reverse proxy

- scenario #2 - the VM does not have its own public IP (VM3) and the traffic is routed to it using iptables (port forwarding)

- scenario #3 - the VM has its own public IP (VM4) and can be accessed from outside using this public IP but still being "bridged" via the single NIC (eno1)

Can someone, please, give a hand on the /etc/network/interfaces content on the PVE Node for each individual scenario and also the VMs network settings?

Thanks all in advance!

tom.+

EDIT: I actually had the same question 3 years ago (https://forum.proxmox.com/threads/multiple-public-ips-on-a-single-nic.44537/) but then it was not real issue but still remains unresolved. Now I am getting back to it as I am building a new Node with more public IPs that I would like to use.
 

Attachments

  • PVE Node.png
    PVE Node.png
    15.8 KB · Views: 212
Last edited:
As a follow up to this question, I would like to place my PVE management, VM data and ceph public and cluster networks on a single 10G NIC, I will keep the PVE cluster network on its own physical NIC.
Hi, while adding multiple IPs is possible it probably won't help you here, as the VMs need to use the IPs, not the Proxmox VE host.
A better option for you could be a routed configuration, see the docs:
https://pve.proxmox.com/pve-docs/chapter-sysadmin.html#_choosing_a_network_configuration
Scroll down to "Routed Configuration"
 
Hi there,

I had gone through a lot of articles and forums and google searches but could not find answer / get working the following scenario. The picture shows what I would like to achieve:

- I have a server in DC and have /28 IP range where x.x.x.1 is the gateway - the server has (at the moment) just one physical NIC connected (eno1)

- I would like to build a single PVE node (for now), where the default public IP will be x.x.x.5 and the private IP 192.168.0.1

- I want that all VMs are accessible via private network within the Node and thus should have their own private IPs from the 192.168.0.0/24 range and using their public IPs (when applicable)

- then I would like to have several VMs in different "configurations / scenarios"

- scenario #1 - the VMs do not have their own public IPs (VM1 and VM2) and the traffic is routed to them using nginx as reverse proxy

- scenario #2 - the VM does not have its own public IP (VM3) and the traffic is routed to it using iptables (port forwarding)

- scenario #3 - the VM has its own public IP (VM4) and can be accessed from outside using this public IP but still being "bridged" via the single NIC (eno1)

Can someone, please, give a hand on the /etc/network/interfaces content on the PVE Node for each individual scenario and also the VMs network settings?

Thanks all in advance!

tom.+

EDIT: I actually had the same question 3 years ago (https://forum.proxmox.com/threads/multiple-public-ips-on-a-single-nic.44537/) but then it was not real issue but still remains unresolved. Now I am getting back to it as I am building a new Node with more public IPs that I would like to use.

Hi Thomas,
I have the same need of your and cannot figure out how to get there, I can work good with scenario #1 and scenario #2 but not the #3, did you succeed? Any tip to share?

Thanks,

Simone
 
Hi to all,

same problem here, got that easy solved with my actual ESXi as virtualisation host. The first address was for managing the ESXi, some of the rest access VM on the internal net via NAT some are still free. It is a public /28 net.

No I will migrate to proxmox and try to fin out a solution in virtual configuration on my tests network. I am stuck
Thanks for any help or link
Rainer
 
Any solution @muekno , did you find a way to resolve this ? I am not looking to use this as IP Addresses for VM , rather creating another network for VM Migration.
 
Thank you @muekno , Could you post here if you find anything.. and I will do the same if I find a solution. Right now, I am leaning towards adding another Network card to the machines.
 
Last edited:

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!