ROUTE

The second utility you'll need to be able to network beyond the local systems is route. The route utility will enable you to specify a default gateway to the Internet. If your system is connected directly to the Internet through a modem, your system should have been automatically configured by your Internet provider. Otherwise, you'll have to tell your system where the system (gateway) is that's connected to the Internet.

Assuming your host has IP 192.168.0.2 and the system 192.168.0.1 is connected to the Internet, you'll need to tell your host to use 192.168.0.1 as its gateway to the Internet. You can do this as follows:

route add default gateway 192.168.0.1

This command tells route to add 192.168.0.1 as the default to reach the Internet. ...

Get Special Edition Using Linux®, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.