OpenVZ Forum


Home » General » Support » VEs in more than one subnet/with more than one NIC
icon5.gif  VEs in more than one subnet/with more than one NIC [message #37487] Wed, 16 September 2009 16:57 Go to next message
drups
Messages: 5
Registered: September 2005
Location: Germany
Junior Member
Hi,

I want to connect my VEs to different subnets connected to different NICs and wonder, if this is possible!?

My HN has four NICs:
- eth0: connected to net 10.1.44.0/24 with gateway 10.1.44.1
- eth1: connected to net 10.1.45.0/24 (our storage net)
- eth2: connected to net 10.1.46.0/24 with gateway 10.1.46.1
- eth3: connected to net 10.1.47.0/24 with gateway 10.1.47.1

Now I want to create two types of VEs: Some are connected with eth1 and eth2 and the others are connected with eth1 and eth3.

The problem I have:
On my HN only a venet0 exists which is 'linked' to eth0.

So the question is:
How do I create other venets and how do I attach them to the VEs? Or did I misunderstood the concepts of OpenVZ completly?

MANY thanx for any hints!
drups

P.S.: Iptables are off!
Re: VEs in more than one subnet/with more than one NIC [message #37495 is a reply to message #37487] Thu, 17 September 2009 20:24 Go to previous message
bithead2 is currently offline  bithead2
Messages: 5
Registered: July 2009
Junior Member
I have posted similar questions before and never got an answer so I would like to hear about how to do this.

I think if I knew what the general procedure involved to give a container 2 different IPs in 2 different subnets I'd be happy.

For example, let's say you have a host computer with 2 ethernets, one in the 192.168.2.0/24 network and one in the 10.3.2.0/24 network. Let's say that 192.168.2.0 is the "upstream" network and you are using 10.3.2.0 as the network that talks to private machines not on the internet.

What would be involved in putting the IP of 192.168.2.4 as well as 10.3.2.4 on the container, with 192.168.2.1 as your default gateway?

CJ
Previous Topic: No physical login to hardware node
Next Topic: Samba Printer on USB within a container
Goto Forum:
  


Current Time: Sun Jul 28 21:20:55 GMT 2024

Total time taken to generate the page: 0.02905 seconds