EnglishGerman

Reliable Linux Hosting

Speed. Reliability. Service.

VPS is on two subnets but only one is reachable.

Routing might need to be manually set up depending on the Linux distribution chosen. If only the IP address on the first interface is accessible from the outside world, you will need to set up a new script that is run when each interface is started, although you might be able to run it upon start (for instance by placing details in /etc/rc.local).

  • echo 252 newtable >> /etc/iproute2/rt_tables
  • ip route add default via table newtable
  • ip rule add from table newtable
  • ip route flush cache

rt_tables stores names of available route tables. 'flush cache' isn't absolutely necessary, but if you have other rules earlier on, it might be useful.

This answer was last updated on 2011-07-06

 

Payment

Technical

General