i have a client who has a need to route traffic from one server back to the lan, apparently, and wants to do it via static routes. i most likely don't have all the details on this, but it seems something like this (fictitious IPs):
cable modem/gateway: 180.0.0.10
-> hub
server: 180.0.0.90
router: 180.0.0.89
router lan ip: 192.168.40.1
lan range: 192.168.40.0/24
the cable modem connects to a small hub with at least the router and this one server attached.
client wants to set a static route from the server (180.0.0.90) to the lan IP of the router (192.168.40.1).
first, is this even possible?
second, is it advisable?
i tried looking at setting a static route with something like the following but am hesitant to leave it in place. i'm not even convinced it will work.
Code:
ip route add 192.168.40.0/24 via 180.0.0.10 dev eth0
i've also looked into using /etc/sysconfig/network-scripts/route-eth0 to do this with similar parameters.
thanks for any tips.