Technical data

Configuring Routing
4.2 Configuring Static Routes
4.2 Configuring Static Routes
The first time you run the configuration procedure, TCPIP$CONFIG.COM, static
routing is configured automatically. To manually configure static routing, use the
CREATE ROUTE command to create an empty routes database file.
The default file name is SYS$COMMON:[SYSEXE]TCPIP$ROUTE.DAT. To
specify a different name, define the systemwide logical name TCPIP$ROUTE.
Note
Do not enter the CREATE ROUTE command unless you intend to
reconfigure your entire cluster.
4.2.1 Creating a Default Route
When TCP/IP is sending a packet, it consults the routing table to determine
which interface is connected to the destination network. If the packet has a
destination network address that is unknown, the packet is sent to the default
router. The default route points at the default router. For example, if a router
with address 16.20.0.173 is designated to route all packets between the local
network and the rest of the world, then the default route can be set with the
following command:
$ TCPIP SET ROUTE /DEFAULT /GATEWAY=16.20.0.173
If TCP/IP Services is active, this affects the active routes database. To ensure this
default route is available next time TCP/IP Services is started, the /PERMANENT
qualifier must be used. For example:
$ TCPIP SET ROUTE /DEFAULT /GATEWAY=16.20.0.173 /PERMANENT
Use the SET NOROUTE command to remove a route.
Or you can define the default route using the
route
UNIX command. In this case,
to ensure the default route is recreated next time TCP/IP Services is started,
add the command to SYS$STARTUP:TCPIP$SYSTARTUP.COM. For example,
to create the same default route as defined above, use the following UNIX style
command:
$ route add default 16.20.0.173
To remove the route, enter the following command:
$ route delete default 16.20.0.173
4.2.2 Manually Defining Static Routes
To create a static route, use the SET ROUTE command. The command has the
following effects:
If TCP/IP Services is not active, SET ROUTE modifies the permanent
database.
If TCP/IP Services is active, SET ROUTE modifies the volatile database.
If TCP/IP Services is active, SET ROUTE/PERMANENT updates the
permanent database.
The SET ROUTE command requires the following information:
The IP address or domain name of the destination host or network
Configuring Routing 4–3