TCP/IP (Parallel Library) Configuration and Management Manual

SCF Reference for Parallel Library TCP/IP
HP NonStop TCP/IP (Parallel Library) Configuration and Management Manual522271-006
5-20
ADD ROUTE Command for TCPMAN
METRIC metric-val
indicates the number of hops to the destination. The metric is optional for add
commands; it defaults to zero if the destination is on a directly-attached network
and the metric is not specified. It is non-zero if the route uses one or more
gateways. The default is 1 if the destination is not on a directly-attached network
and the metric is not specified.
CLONING { ON | OFF }
enables (ON) or disables (OFF) the cloning capability of a route. A network route
with cloning capability clones/generates an additional route with a subnet mask
specified by GENMASK when it is referenced. This additional/cloned route is
flagged with “c” in the “INFO ROUTE” display to indicate it’s a cloned route.
GENMASK mask-val
specifies a subnet mask value to be associated with the cloned route. This
mask-val is specified as dotted-decimal or hexadecimal notation. If it is not
specified, the cloning capability is turned off. Since non-contiguous mask values
are not supported, genmask values such as 0.255.255.0, 255.0.255.0, 0.0.255.0
are considered invalid. The GENMASK value differs from the NETMASK value.
In the example below, the route MR3 is created by the system administrator with a
destination 155.186.0.0 and a network mask of 0xffff0000. Since the cloning
capability is turned on (CLONING ON) and the genmask is set to 0xffffff00 which
differs from the network mask. If the routing table is searched for 155.186.72.123
and the entry does not exist for 155.186.72.0 subnet, the entry for 155.186.0.0 with
the mask of 0xffff0000 as the best match. A new route entry (since CLONING is
ON) with a destination of 155.186.72.0 and a network mask of 0xffffff00 (the
genmask value) would be created. The next time any host on this subnet is
referenced, say 155.186.72.88, it matches this newly created entry.
SUBNET subnet-name
allows a route to be associated with a particular LIF. This feature allows up to n
routes to be configured for n LIFs in the same subnet range; all these routes would
go to the same destination but through a different LIF.
Examples
The following commands show how to add routes:
-> ADD ROUTE $ZZTCP.*.MR1, DESTINATION 192.17.72.0, &
NETMASK 255.255.255.0, GATEWAY 172.17.214.1, METRIC 1
-> ADD ROUTE $ZZTCP.*.MR2, DESTINATION 192.17.73.0,&
NETMASK %HFFFFFF00, GATEWAY 172.17.214.2, METRIC 2
-> ADD ROUTE $ZZTCP.*.MR3, DESTINATION 155.186.0.0, &
NETMASK 255.255.0.0, CLONING ON, GENMASK 255.255.255.0,&
GATEWAY 172.17.214.1, METRIC 1