Proxmox Host & VMS different IP Ranges

andrewhfr

New Member
May 1, 2020
8
1
3
45
Hello,

Please bare with me as I slowly learning proxmox.

My server has 2 Nics labelled "enp2s0" and "enp3s0".

Is it possible to have a Proxmox host running on say 192.168.1.10 and have all the created VMs running on say 192.168.2.1, 192.168.2.2 and so on?

I am not sure where to start on achieving this so any pointers would be much appreciated.

Thanks,

Andrew
 
Last edited:

aaron

Proxmox Staff Member
Staff member
Jun 3, 2019
957
94
28
Yes. You can have the other subnet running on the second NIC if you wish. To do so, add a new Linux Bridge to your network config and use `enp3s0` (or the other) as bridge port. You don't have to define an IP address if the PVE host itself should not be reached in the other network.


Which IP addresses you assign your VMs is completely up to you. Technically it is valid to have different subnets on the same physical link. It's not a secure abstractions (VLANs would be used for that) and traffic between the two networks will need a router.
 
  • Like
Reactions: andrewhfr

andrewhfr

New Member
May 1, 2020
8
1
3
45
Hello Aaron,

Thanks for the reply it is much appreciated. I will have a go at what you said.

Regards,

Andrew
 

aaron

Proxmox Staff Member
Staff member
Jun 3, 2019
957
94
28
Another thing, if you install `ifupdown2` you can apply network changes to the host without a reboot.

apt install ifupdown2 on the CLI
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!