OpenVZ Forum


Home » General » Support » Network newb questions - multiple nics, mac address
Re: Network newb questions - multiple nics, mac address [message #31314 is a reply to message #31308] Tue, 24 June 2008 16:16 Go to previous messageGo to previous message
khorenko is currently offline  khorenko
Messages: 533
Registered: January 2006
Location: Moscow, Russia
Senior Member
Hi,

Quote:

#1 -
The vm's are running an application that is pretty network intensive, so I'm trying to figure out how to tell vm's 0-3 to use eth0, and vm's 4-7 to use eth1. I'm not too network savvy, so I've been trying bits and pieces of things I've gleaned from the forum, but haven't been successful.


Well, you can try to configure source based routing on the Hardware Node - i mean if a packet came with source address from Containers 0-3, then process table A with default gateway X.
If a packet came with source address from Containers 4-7, then process table B with default gateway Y.

Another solution is to use veth and create two bridges:
* bridge 1 : eth0 + veth0 + veth1 + veth2 + veth3
* bridge 2 : eth1 + veth4 + veth5 + veth6 + veth7

Quote:

#2 -
The application we are running looks for the mac address of the machine for licensing and identification. We have a work around from the software vendor, but it's cumbersome at best, so I've been researching for a way to have a mac address without the performance hit mentioned for the veth device.


Unfortunately venet interface cannot have a MAC address, so you have to create a veth device for a Container.
Note: you can just create veth interface for Container and continue using venet - they are not alternative.
Note1: if you afraid of veth performance degradation, just compare the performance of configuration with veth and with venet. And it would be great if you'll share the results. Smile
Quite probably that the degradation won't be noticable at all - it depends on really many factors.

Hope this helps.

--
Konstantin


If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
 
Read Message
Read Message
Read Message
Previous Topic: upstart: touch or creation of a file in /etc/event.d causes ve to crash
Next Topic: OpenVZ ???
Goto Forum:
  


Current Time: Thu Oct 17 16:47:53 GMT 2024

Total time taken to generate the page: 0.05554 seconds