TCP/IP Configuration and Management Manual
SCF Reference
TCP/IP Configuration and Management Manual—427132-004
4-19
ADD ROUTE Command
GATEWAY gateway-ip-address
specifies the Internet address of the router or gateway host through which the
network or host addressed in DESTINATION can be reached. This is a required
attribute.
DESTTYPE
specifies whether the route is a connection to a specific host (HOST) or to a
network (BROADCAST). This is an optional attribute.
NETMASK mask-val
specifies a subnet mask value to be associated with the route entry. This attribute
allows NonStop TCP/IP to interface with routers that support and use Classless
Inter-Domain routing (CIDR).
Specify mask-val in dotted-decimal or hexadecimal notation. If mask-val is not
specified, it defaults to the default network mask of the specified IP address. The
netmask value is set to 0.0.0.0 for the network routes to IP address of 0 (0.0.0.0).
The NETMASK value is set to 255.255.255.255 for the host route. Because a non-
contiguous mask value is not supported, netmask values such as 0.255.255.0,
255.0.255.0, 0.0.255.0 are invalid.
METRIC metric-val
indicates the number of hops to the destination. The METRIC attribute is optional
for add commands; If you do not specify METRIC, its value defaults to
Zero (0) if the destination is on a directly-attached network.
One (1) if the route utilizes one or more routers or gateways. Note that this
default value assumes that there is only one hop.
Examples
The following command adds a route, named #ROU1, to the process $ZTC0:
1-> ADD ROUTE $ZTC0.#ROU1, DESTINATION 120.0.1.5, &
1-> GATEWAY 120.0.1.0, DESTTYPE HOST
Default: The subsystem supplies no default value for it unless the route is
being added automatically as a part of the ADD SUBNET operation.
The default value is the IP address of the SUBNET's host (the value
for the SUBNET's IPADDRESS attribute).
Default: If you do not specify DESTTYPE in an ADD ROUTE command, the
default value is BROADCAST. If a route is added automatically as the
result of an ADD SUBNET command, the default value is
BROADCAST.