Technical data

Configuring Routing
4.2 Configuring Static Routes
The IP address or host name of a gateway that can reach the destination host
Compaq strongly recommends that you do not specify alias names with the
destination parameter or the /GATEWAY=host qualifier.
To define a route to any host on a specific network, enter:
TCPIP> SET ROUTE network_IP_address /GATEWAY="gateway" /NETWORK
To define a route to a specific host on a specific network, enter:
TCPIP> SET ROUTE remote_host /GATEWAY="gateway"
4.2.2.1 Examples
1. In the following example, the network is active. The SET ROUTE command
adds a route to the volatile routes database. TCPIP starts directing
communication for
flamingo
through gateway
francolin
.
TCPIP> SET ROUTE "flamingo" /GATEWAY="francolin"
2. In the following example, the network is active. The SET ROUTE command
defines a routing path in the volatile routes database. The command
specifies that traffic for the network with IP address 128.30.0.0 uses gateway
francolin
.
TCPIP> SET ROUTE 128.30.0.0 /NETWORK /GATEWAY="francolin"
3. In the following example, the network is not active. The SET ROUTE
command adds the new route to the permanent routes database. The next
time the product starts up, packets for NENE will go through a gateway
called
bird.of.paradise
.
TCPIP> SET ROUTE NENE /GATEWAY="bird.of.paradise"
At startup, the information in the permanent routes database, if any exists,
is loaded into the volatile routes database. You can add permanent routes
while the product is stopped or while it is running. If it is running, use the
/PERMANENT qualifier.
4. The following command permanently sets routing for host
albatross
to go
through gateway
birdygate
.
TCPIP> SET ROUTE "albatross" /GATEWAY="birdygate" /PERMANENT
A default route is a route used to direct data that is addressed to an
unidentifiable network address. To define a default route, use the /DEFAULT
qualifier.
5. The following command sets a default route. NIGHTINGALE is the default
gateway.
TCPIP> SET ROUTE /DEFAULT /GATEWAY=NIGHTINGALE
To check that your routes are set up correctly, use either the LOOP or PING
command.
4–4 Configuring Routing