Gateways

I have a QNX client with an IP Address of “152.116.118.27”. I need to
communicate to a server with an address of “152.116.28.152” through a
gateway of “152.116.118.1”. My software uses the connect socket
function to connect to the server. How do I configure my system so that
whenever I send something on the socket it will use the gateway. It was
suggested in a previous posting to use the route command as follows:

route add default X.X.X.X where X.X.X.X is the IP address of the
gateway.

Where do I actually use the route command. Is it in the hosts file?

Thank You.

Dan Szymanski

/etc/netstart typically contains the commands to start/config TCP/IP
services. I would place the route command just after the ifconfig line(s).

  • Richard