OpenVZ Forum


Home » General » Support » Dual NICs on OpenVZ
Dual NICs on OpenVZ [message #39738] Wed, 26 May 2010 17:09 Go to next message
aab49 is currently offline  aab49
Messages: 10
Registered: November 2007
Location: USA
Junior Member
We recently added another NIC to our HN and would like to find some ways to take advantage of the additional bandwidth.

Is it possible to tell the vz service to use both eth0 and eth1 and have half our containers use eth0 and the other half use eth1?

If not, we can probably go with bonding the interfaces together.

- Amir
Re: Dual NICs on OpenVZ [message #39739 is a reply to message #39738] Wed, 26 May 2010 17:16 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

It is possible if they are in different network segments.

Say you have
eth0 with 10.2.3.1/24 address
and
eth1 with 10.2.5.1/24 address

Now, containers with addresses like 10.2.3.xxx will use eth0 and containers with addresses like 10.2.5.xxx will use eth1.


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Dual NICs on OpenVZ [message #39740 is a reply to message #39738] Wed, 26 May 2010 17:17 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

I was talking about using default (venet) networking.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Dual NICs on OpenVZ [message #39741 is a reply to message #39738] Wed, 26 May 2010 17:19 Go to previous messageGo to next message
aab49 is currently offline  aab49
Messages: 10
Registered: November 2007
Location: USA
Junior Member
Thanks for the input Kir. They would actually be on the same network segment so I guess it wouldn't work.
Re: Dual NICs on OpenVZ [message #39849 is a reply to message #39738] Thu, 10 June 2010 07:44 Go to previous message
tibby is currently offline  tibby
Messages: 3
Registered: June 2010
Junior Member
I have a weird problem.

I have one machine, with two network interfaces.
Eth0: 10.10.10.0/24
Eth1: 192.168.0.0/24

I have four containers on the machine:
10: IP:10.10.10.10 GW:10.10.10.254
11: IP:10.10.10.11 GW:10.10.10.254
12: IP:10.10.10.10 GW:10.10.10.254
50: IP:192.168.0.50 GW:192.168.0.1

Sometimes all the containers wanting to access on Eth1 instead of Eth0.

Why?
Previous Topic: Stable kernel release
Next Topic: Gentoo: kernel 2.6.32, Received signal: 9 in /usr/sbin/vzquota
Goto Forum:
  


Current Time: Wed May 08 02:59:26 GMT 2024

Total time taken to generate the page: 0.01495 seconds