OpenVZ Forum


Home » General » Support » veth and venet on one hardware node
veth and venet on one hardware node [message #39510] Tue, 04 May 2010 07:38 Go to next message
wojtek_z is currently offline  wojtek_z
Messages: 5
Registered: May 2010
Junior Member
Hi,
I have a problem with configuring veth (with dhcpd in virtual client) on hardware node with working venet.

I have hardware node with few conteiners with veneth configuration. I need another container but with veth (with dhcpd). Hardware node has two nic's in bonding (active-standby) configuration.
I create container with veth device veth155.0 and bridge br155.
bridge name     bridge id               STP enabled     interfaces
br155           8000.000000000000       no
.
In virtual conteiner i have interface eth0 with ip addres, netmask, gateway etc.

Configuration of Hardware Node:
2.6.26-2-openvz-amd64
debian 5.0.4 - lenny


[Updated on: Wed, 05 May 2010 06:29]

Report message to a moderator

Re: veth and venet on one hardware node [message #39540 is a reply to message #39510] Fri, 07 May 2010 14:17 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

briefly speaking you have to unite bond and veth interface on the HN.
Please, see details in
http://wiki.openvz.org/Using_private_IPs_for_Hardware_Nodes
(search in wiki if you need)

Also be careful when bridging bond0 and veth.
https://bugzilla.redhat.com/show_bug.cgi?id=487763
Re: veth and venet on one hardware node [message #39544 is a reply to message #39540] Sat, 08 May 2010 20:40 Go to previous messageGo to next message
wojtek_z is currently offline  wojtek_z
Messages: 5
Registered: May 2010
Junior Member
Hi
Thanks for your information.
I have another question: is that possible to cooperate in one Hardware Node configuration some virtual Clients with veth and another Virtual clients with venet ?
Re: veth and venet on one hardware node [message #39612 is a reply to message #39544] Mon, 17 May 2010 05:21 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Quote:

I have another question: is that possible to cooperate in one Hardware Node configuration some virtual Clients with veth and another Virtual clients with venet ?



Hello, yes, don't see any problems.
Re: veth and venet on one hardware node [message #39846 is a reply to message #39612] Wed, 09 June 2010 20:44 Go to previous messageGo to next message
wojtek_z is currently offline  wojtek_z
Messages: 5
Registered: May 2010
Junior Member
Hi
I have interface eth0 witch is bridged with br155 (with ip), also i have venet0. VC with veth bridged with br155 work great. But VC with network by venet doesn't has network acces.

Is there a special configuration ?
Re: veth and venet on one hardware node [message #39865 is a reply to message #39846] Fri, 11 June 2010 12:45 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
No that is not a special configuration and it should work.
To find out the root of the problem I'd recommend you to use
tcpdump utility. You may use it in the following manner:

* ping any host from inside the VE
* at the same moment run tcpdump utility on three interfaces simultaneously: venet0 interface inside your VE, venet0 interface on the HN and physical interface on the HN.
* This way can help you to trace the networking packets i.e. whether they leave your VE, whether they reach a HN, whether they move through physical interface and are not dropped by iptables rules.
Re: veth and venet on one hardware node [message #39875 is a reply to message #39865] Fri, 11 June 2010 21:13 Go to previous message
wojtek_z is currently offline  wojtek_z
Messages: 5
Registered: May 2010
Junior Member
Hi,

- iptables on HN is off
- ping from another HN didn't work
- ping from HN to VE (hosted on this HN) ok
- tcpdump from VE - no transmission
- tcpdump from HN on bridge - ok
- tcpdump from HN on physical interface - ok

It look's like no transmission between HN (venet) and VE

I checked /proc/sys/net/*
and compare with documentation.
After that I set echo 1 /proc/sys/net/ipv4/ip_forward

and all works fine

[Updated on: Fri, 11 June 2010 21:22]

Report message to a moderator

Previous Topic: Make VEs looked like the standalone nodes
Next Topic: Network problem
Goto Forum:
  


Current Time: Mon Jul 15 10:12:46 GMT 2024

Total time taken to generate the page: 0.02883 seconds