OpenVZ Forum


Home » General » Support » VServers in three different networks: veth, venet or mixture?
VServers in three different networks: veth, venet or mixture? [message #35617] Wed, 08 April 2009 14:13 Go to previous message
divB is currently offline  divB
Messages: 79
Registered: April 2009
Member
Hi,

I am going to virtualize servers which are in three different networks and - if possible - should not be able to communicate with each other (if I do not allow it explicitely).

In the server there is an Intel E1000 with three VLANs: vlan2 (private network), vlan3 (public network with public IP addresses (/29-network) ), vlan4 (semipublic network with RF1918 addresses). The VServer itself should only be connected to the vlan2 network, so it's the single device having an IP address. This is the Debian network configuration on the host:

auto lo vlan2 vlan3 vlan4

iface lo inet loopback

# private, LAN (192.168.200.0/24)
iface vlan2 inet static
        vlan-raw-device eth0
        address 192.168.200.1
        netmask 255.255.255.0
        gateway 192.168.200.120

# public
iface vlan3 inet manual
        vlan-raw-device eth0
        up ip link set vlan3 up
        down ip link set vlan3 down

# semi-plublic (192.168.0.0/24)
iface vlan4 inet manual
        vlan-raw-device eth0
        up ip link set vlan4 up
        down ip link set vlan4 down


So what's the best way to use OpenVZs network?

My thought would be: Forget about venet (swith it off completely if possible) and just use veth in each VServer.

On the host bridge all private VServers with vlan2, all public VServers with vlan3 and all semi-public VServers with vlan4.

Is this a good or a bad idea? Any hints or tips left?

Thank you,
divB

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Debian — kernel error
Next Topic: kernel/rhel5/028stab060.8 Kernel Compilation Error
Goto Forum:
  


Current Time: Mon Aug 12 10:37:31 GMT 2024

Total time taken to generate the page: 0.02718 seconds