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: 22.214.171.124
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 (126.96.36.199) 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.
ip route add 192.168.40.0/24 via 188.8.131.52 dev eth0
i've also looked into using /etc/sysconfig/network-scripts/route-eth0 to do this with similar parameters.
thanks for any tips.