Adding VPS on other iprange

Chow

Member
Apr 28, 2008
90
0
6
Hi,

When I add a vps with an ip from another range I have no connectivity to this vps. What would be the quickest workaround?
 
Hi,

When I add a vps with an ip from another range I have no connectivity to this vps. What would be the quickest workaround?

maybe this sounds to easy - change the IP to an IP that is in your range?
 
That's easy but not what I need ;)

I thought this would be to simple.

But anyway, if your container is in another IP network the behaviour is the same than if you have real servers.

pls give more details, maybe I did not get your request clearly.
 
It seems the default gateway is not set properly.. I will see how to adjust that..
 
I guess you need to add a route manually, for example:

Code:
route add -net 12.12.14.0 netmask 255.255.255.0 gw 12.12.12.4

you can also add it to the vmbr0 config in /etc/network/interfaces:

Code:
...
iface vmbr0 inet static
        post-up route add -net 12.12.14.0 netmask 255.255.255.0 gw 12.12.12.4
...

- Dietmar