How can I have a public and a private IP?

seschi98

New Member
Nov 21, 2016
1
0
1
26
Hello, I recently installed Proxmox on our server, now I am a little bit confused about the network configuration:

The host machine m1.mydomain.com has an IP like 79.xxx.xxx.106.

I have configured my vmbr0 interface the right way, all my KVM machines are reachable on a seperated IP adress provided by our hoster. But now my question is how to add a second, internal network for communication between my guest machines?

I want to configure my webserver to only allow connections from other VMs because it is a very sensible web resource, so I thought it would be easy to configure a second network bridge (vmbr1) to provide a local network. I already tried a setup in my VMs with the following approach:

(iface eth0 is my public network adapter with public ip from hoster)

auto eth1
iface eth1 inet static
address 10.0.0.x (where x is an internal number to identify my VMs...)

I did this setup on all my machines, tried to ping each other with this local IP which worked, but after a reboot of the VM holding my webserver (running Plesk Onyx) I could not connect to my webserver.

Again, I want to have both a public and private IP for internal and external communication so that I can tell my webserver to serve some websites on the external IP for everyone and other websites on the internal one only for my other VMs.

I hope you are able to read this messy text and that someone can help me ;)

Best regards,

Sebastian
 
You need to make sure that the second NIC you added to your VMs for your private LAN is connected to the vmbr1 bridge, and that inside each VM you have the 'auto' parameter on the second NIC so the network is started on boot.
 

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!