OpenVZ Forum


Home » General » Support » Problem with connectivity between containers.
Problem with connectivity between containers. [message #51294] Thu, 03 April 2014 08:48 Go to next message
azel is currently offline  azel
Messages: 1
Registered: April 2014
Junior Member
Hello.

I have 2 HNs (each have 2 uplinks and 3 IP address ranges) with multiple containers on them.

HN1 and HN2 can reach all containers.
Containers from the same address range can reach each other.
All containers can be reached from any external sources.
But containers from different HNs cannot reach each other, if they have their IP addressses are from different ranges.

Network structure:

Cont1 (5.yy.yy.171) - HN1 (5.yy.yy.162, 85.xx.xx.51) - switch - HN2 (5.yy.yy.163, 85.xx.xx.52) - Cont2 (85.xx.xx.54)

Routes from HN2 (they're the same on HN1, only difference is its IP addresses):

# ip ru l
0:      from all lookup local
1:      from all lookup main
32748:  from 5.yy.yy.160/27 lookup 120
32749:  from 85.xx.xx.18/28 lookup 130
32750:  from 85.xx.xx.48/28 lookup 140
32766:  from all lookup 130
32767:  from all lookup default


# ip ro l table main: 
5.yy.yy.189 dev venet0  scope link
5.yy.yy.175 dev venet0  scope link 
85.xx.xx.54 dev venet0  scope link 
85.xx.xx.55 dev venet0  scope link 
85.xx.xx.48/28 dev eth0  proto kernel  scope link  src 85.xx.xx.52 
85.xx.xx.16/28 dev eth0  proto kernel  scope link  src 85.xx.xx.22 
5.yy.yy.160/27 dev eth1  proto kernel  scope link  src 5.yy.yy.163 
169.254.0.0/16 dev eth0  scope link  metric 1002
169.254.0.0/16 dev eth1  scope link  metric 1003
169.254.0.0/16 dev eth2  scope link  metric 1004


# ip ro l table 120: 
5.yy.yy.160/27 dev eth1  scope link  src 5.yy.yy.163
default via 5.yy.yy.161 dev eth1


# ip ro l table 130: 
85.xx.xx.16/28 dev eth0  scope link  src 85.xx.xx.22 
default via 85.xx.xx.17 dev eth0 


# ip ro l table 140: 
85.xx.xx.48/28 dev eth0  scope link  src 85.xx.xx.52 
default via 85.xx.xx.49 dev eth0 


Iptables is empty and defaulted to accept.

Any suggestions?


Solution:

It was pretty simple, my routing tables are good, all i needed was to set rp_filter=0.

[Updated on: Fri, 04 April 2014 08:22]

Report message to a moderator

Re: Problem with connectivity between containers. [message #51295 is a reply to message #51294] Thu, 03 April 2014 19:33 Go to previous message
Paparaciz
Messages: 302
Registered: August 2009
Senior Member
I would look to /etc/vz/vz.conf option NEIGHBOUR_DEVS option.

I suspet that it is a problem of gateway or routes.
tcpdump dump is your friend.

sorry for not helpfull reply. i was trying to read all very carefully but it seems I'm not very strong at networking.
Previous Topic: Snapshot backups with ploop
Next Topic: Repo Error: All mirror URLs are not using ftp, http[s] or file
Goto Forum:
  


Current Time: Mon May 06 10:00:13 GMT 2024

Total time taken to generate the page: 0.01743 seconds