OpenVZ Forum


Home » General » Support » How to report networking-related problems
icon3.gif  How to report networking-related problems [message #27545] Tue, 19 February 2008 11:16
xemul is currently offline  xemul
Messages: 248
Registered: November 2005
Senior Member
From: *sw.ru
When you have some problems with networking and going to report it here, most likely we will need to know three things:

  1. Routing rules
  2. Netfilter configuration
  3. Packets paths

Routing rules can be obtained by the ip rule list command. If the problem concerns VEs, then we need both HN and VE routing rules. Routing tables can be dumped altogether via ip route list table all.


Netfilter configuration is discovered by the iptables -t nat -L && iptables -t filter -L && iptables -t mangle -L command. BTW, in many cases network traffic doesn't leave/enter the HN due to bad netfilter configuration, so flushing the rules with iptables -F may help.

You need to understand how the packet goes and whether this path is correct from your point of view. This applies to both, incoming and outgoing traffic.

Packet paths can be observed via the tcpdump tool. In most of the cases you should launch the tcpdump -i <if> -e host <ip>, where the <if> is the interface name you're experience problems with and the <ip> is the IP address relevant to you traffic (e.g. if you can't ping kernel.org, then the <ip> is the kernel.org's IP).

For a generic case of venet VE outgoing packet should flow via VE's venet0 interface, VE0 venet0 interface and ethN in the HN.

So, you should observe the packet on each interface above. Incoming packets fly in the reversed order and you also should observe them there.

In case veth device is used packets also pass bridge interfaces in VE0.


With this information provided, the problem can at least be tried to be solved.

Thanks.


http://static.openvz.org/userbars/openvz-developer.png

[Updated on: Wed, 20 February 2008 08:58]

Report message to a moderator

Previous Topic: Bug reports should go to bugs.openvz.org
Goto Forum:
  


Current Time: Thu Mar 30 00:42:52 GMT 2017