2 or more networks on 1 LAN card

henryk251

New Member
Feb 2, 2009
1
0
1
Hi

I want to use Proxmox VE like www serwers.
Is it possible that I create 2 (or more) VMs with different IP class?
For example:

VM1:
IP: X.Y.10.10
Netmask 255.255.255.0
Gateway X.Y.10.1

VM2:
IP: W.Z.120.10
Netmask 255.255.255.224
Gateway W.Z.120.15

How to do this?

Best regards
Henryk
 
yup I do this now... I have about 6 different network address ranges..

The best and most secure way is to use VLANs.. but you have to have a VLAN capable router. Of course you can build a VM one :) if you don't have the physical tin.

Here are just some of mine... as an example:

auto vmbr1
iface vmbr1 inet manual
bridge_ports eth0.55
bridge_stp off
bridge_fd 0

auto vmbr2
iface vmbr2 inet manual
bridge_ports eth0.4094
bridge_stp off
bridge_fd 0

auto vmbr3
iface vmbr3 inet manual
bridge_ports eth0.208
bridge_stp off
bridge_fd 0


Each vmbr is sitting in a different VLAN, when I build a VM image I just select which VLAN I want it to exist in and then select the right vmbr.

You note that the vmbr's don't have IP addresses... that deliberate... I don't want the Proxmox server it's self responding or participating in the VLAN network as some of them are live unfiltered internet feeds.

--Guy