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
 
or maybe something like:

Code:
route add -net 12.12.14.0 netmask 255.255.255.0 dev vmbr0
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!