Static Route Configuration

Static routes are permanent entries that do not change. They can be configured in two ways: manually by using the route command, or through the use of two configuration files, /etc/defaultrouter and /etc/gateways. This section covers the use of the route command. The configuration files are discussed later in this chapter.

The route Command

The route command is used to manipulate the routing table manually. Routes can be added, deleted, and changed with this command. The general format of the route command is

route add | delete | change <destination> <gateway>

where <destination> is the host or network you are trying to reach and <gateway> is the router that will forward the packet to the destination.

The routing ...

Get Solaris™ 9 Network Administrator Exam Cram™ 2 (Exam CX-310-044) now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.