OpenVZ Forum


Home » General » Support » How to use two different eth interfaces inside CT
How to use two different eth interfaces inside CT [message #37087] Tue, 18 August 2009 10:27 Go to next message
Mistery is currently offline  Mistery
Messages: 8
Registered: August 2009
Junior Member
Hi, I have a OpenVZ node with the following network setup:

eth0 (public net) 212.40.207.7 / 255.255.255.0 vlan ID 2
eth1 (private net) 10.0.10.7 / 255.255.255.0 vlan ID 3

on this node, there is a CT configured with venet0 212.40.207.240 / 255.255.255.0

Public LAN access works fine inside CT, however now I need the CT to also access the private net.
I tried adding a private IP address (10.0.10.240) to the CT but it didn't solve my issue.
I also tried playing with vzctl --netif_add but wasn't able to access the private LAN.

Can you please explain what should I do to make the CT access both LANs ?

Thanks in advance for any help!
Re: How to use two different eth interfaces inside CT [message #37116 is a reply to message #37087] Wed, 19 August 2009 13:21 Go to previous messageGo to next message
Mistery is currently offline  Mistery
Messages: 8
Registered: August 2009
Junior Member
Any tips on this matter ?
Re: How to use two different eth interfaces inside CT [message #37119 is a reply to message #37087] Wed, 19 August 2009 13:24 Go to previous messageGo to next message
tomp is currently offline  tomp
Messages: 64
Registered: August 2007
Member
If its a VLAN, I think you have to create a virtual bridge and then connect the VLAN interface on the hardware node to the virtual bridge.

Then create a veth device inside the container and attach that to the bridge on the hardware node.

There are some tutorials on bridging in the wiki. I don't think OpenVZ supports VLAN tagging yet, so this is your best way round it.
Re: How to use two different eth interfaces inside CT [message #37120 is a reply to message #37119] Wed, 19 August 2009 13:29 Go to previous messageGo to next message
Mistery is currently offline  Mistery
Messages: 8
Registered: August 2009
Junior Member
Currently the VLAN is implemented on the switch itself, not on hardware nodes.
On OpenVZ hardware node I have two physical ethX interfaces connected to different switch's ports on different VLANs
Can you please explain step by step what exactly I need to do on hardware node / CT to try make it working ?
Thanks!
Re: How to use two different eth interfaces inside CT [message #37127 is a reply to message #37120] Wed, 19 August 2009 15:06 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
I suppose Tomp is recommending you the configuration that is described here:
http://wiki.openvz.org/Veth#Virtual_Ethernet_devices_can_be_ joined_in_one_bridge
Previous Topic: Creating tun in container fails after following wiki instruction on host
Next Topic: Sharing Shared Memory ?
Goto Forum:
  


Current Time: Fri Aug 09 20:22:26 GMT 2024

Total time taken to generate the page: 0.02840 seconds