OpenVZ Forum


Home » General » Support » HN with different eth in different network classes
HN with different eth in different network classes [message #48790] Sun, 02 December 2012 17:53 Go to next message
jmginer is currently offline  jmginer
Messages: 26
Registered: July 2008
Junior Member
Hi, I have a OVZ server configured with three NICs in different subnets.

eth0 with IP - 5.134.112.xxx
eth1 with IP - 192.168.1.xxx
eth2 with IP - 5.134.113.xxx

From the hardware node, I can ping correctly to other hosts on all subnets.

But when I create a container, I only can add a IP in the eth0 subnet (for example, 5.134.112.xxx).

But if I change the IP of that container, to 5.134.113.xxx, I lost connection in the container and not run.

Can somebody let me know some help?
Thanks!

[Updated on: Sun, 02 December 2012 19:03]

Report message to a moderator

Re: HN with different eth in different network classes [message #48791 is a reply to message #48790] Sun, 02 December 2012 18:58 Go to previous message
jmginer is currently offline  jmginer
Messages: 26
Registered: July 2008
Junior Member
Solved editing /etc/sysctl.conf
and setting:


net.ipv4.conf.all.rp_filter = 2
net.ipv4.conf.all.send_redirects = 0
net.ipv4.conf.all.arp_announce = 0
net.ipv4.conf.all.arp_ignore = 0
Previous Topic: unmount a bind mount
Next Topic: Creating new venet for difrent gateway
Goto Forum:
  


Current Time: Mon Aug 12 07:39:46 GMT 2024

Total time taken to generate the page: 0.02872 seconds