Access to various networks


Big corporations often sub-divide their networks into small networks, hidden behind gateways. To access
them, you need to tell your Linux system that there is a gateway to use to access the networks.
The route program makes it easy to add networks, hosts and gateways to your routing table. To add a default
gateway, for example to access the Internet, you can set it as default with the following line:
route add default gw
This will work if you need to access the Internet via the gateway. Now, if you want to access
networks and through other gateways, here is what you will want to do:
route add -net gw
route add -net gw

Leave a Reply

Your email address will not be published. Required fields are marked *