OpenVZ Forum


Home » General » Support » routing problem
routing problem [message #29845] Sat, 26 April 2008 13:38 Go to next message
l4ndy74 is currently offline  l4ndy74
Messages: 27
Registered: August 2006
Junior Member
hi all
i have this problem.

when i create a vps and i add the ip with --ipadd, the vps are unreachable.
i try to ping the ip but don't work.

if i add the ip in the node hardware and then remove the vps works correctly.

a simple example.

vpz create with ip 1.2.3.4 and start correctly.
i try the ping on 1.2.3.4 and it's unreachable (but the vps is running)

i add in the node hardware the ip 1.2.3.4 in the eth0:1
i try the ping on 1.2.3.4 and the ip response correctly
i delete the eth0:1 in the node and now the vps works correctly.

any ideas? Smile

i use on the node hardware 2.6.18-ovz-028stab053.5 with debian4.
debian4 idem in the vps and vzctl version 3.0.22-1dso1.

thank you.
Re: routing problem [message #29846 is a reply to message #29845] Sat, 26 April 2008 13:51 Go to previous messageGo to next message
maser is currently offline  maser
Messages: 3
Registered: April 2008
Location: London
Junior Member
I just posted before you the exact same problem Sad
Re: routing problem [message #29849 is a reply to message #29846] Sat, 26 April 2008 16:05 Go to previous messageGo to next message
l4ndy74 is currently offline  l4ndy74
Messages: 27
Registered: August 2006
Junior Member
you have a set up gateway in the /etc/network/interfaces (on the node hardware)?
Re: routing problem [message #29850 is a reply to message #29849] Sat, 26 April 2008 16:08 Go to previous messageGo to next message
maser is currently offline  maser
Messages: 3
Registered: April 2008
Location: London
Junior Member
This file doesn't exist, also they used to work just fine just suddenly they got messed up. I have made now a plan by setting all the virtual servers to use 192* IP's and by using iptables to route them like:

[root@santrex ~]# iptables -t nat -A POSTROUTING -s 192.168.22.43 -o eth0 -j SNAT --to 66.90.88.228
[root@santrex ~]# iptables -t nat -A PREROUTING -d 66.90.88.229 -i eth0 -j DNAT --to-destination 192.168.22.44

now that I have done that, it did fix my problem. But on the other hand I wanted to be using the real ips ofcourse but it didnt seem to work as they work 1 hour and another hour don't
Re: routing problem [message #29955 is a reply to message #29845] Thu, 01 May 2008 14:40 Go to previous message
l4ndy74 is currently offline  l4ndy74
Messages: 27
Registered: August 2006
Junior Member
it will be a openvz's bug.
the vps cannot use another ips range but only the range of the node hardware.

if i use the same range of the node i cannot have this problem.
Previous Topic: Quota problem in cpanel vps
Next Topic: fuse can not be used in containers after fuse-2.7.3 is installed in Hardware Node
Goto Forum:
  


Current Time: Tue Nov 05 20:37:02 GMT 2024

Total time taken to generate the page: 0.08688 seconds