TCP/IP Configuration and Management Manual

SCF Reference
TCP/IP Configuration and Management Manual427132-004
4-23
ADD SUBNET Command
ATMSEL byte-number
is the ATM selector byte to use on an ATM type SUBNET. The default is 0 and
valid value s are 0 to 255.
GATEWAY ON | OFF
ON enables the SUBNET to add a default IP address filter to Ethernet LAN
adapters. For the NonStop TCPIP process to operate as a Gateway, you must
configure it with more than one SUBNET, and you must add each SUBNET
configured on an Ethernet LAN adapter with this option enabled. Only one default
IP filter can be added to each Ethernet LAN adapter. A SUBNET fails to enter the
STARTED state if a SUBNET on another TCPIP process has already been added
with the GATEWAY attribute enabled on the same device. The default is OFF.
SUBNETMASK mask-val
identifies which portion of the IP local address represents the subnet number and
which part represents the host ID. If bits in the subnet mask are set to 1, the
corresponding bits in the IP address are part of the network (and subnet) address.
If bits in the subnet mask are set to 0, the corresponding bits in the IP address are
part of the host ID (that is, that portion of the local address masked with 1s
identifies the subnet, and the remainder of the local address uniquely identifies a
host connected to the subnet). The mask-val is specified in dotted-decimal or
hexadecimal notation. If it is not specified, ask-val defaults to the default network
mask of the specified IP address. Non-contiguous mask values are not supported.
Since non-contiguous mask values are not supported, netmask values such as
0.255.255.0, 255.0.255.0, 0.0.255.0 are considered invalid.
Examples
The first command in the following example, adds a new SUBNET named #SN1 to the
PROCESS named $ZTC0. The SUBNET is of type ETHERNET and uses LAN01 as its
point of connection to the Ethernet LAN. The SUBNET receives packets directed to
IPADDRESS 120.0.0.1. This command also automatically adds the first route to this
SUBNET, named #ROU1, giving it default values for the GATEWAY, DESTINATION,
and DESTTYPE attributes:
1-> ADD SUBNET $ZTC0.#SN1, TYPE ETHERNET, &
1-> DEVICENAME LAN01, IPADDRESS 120.0.0.1
The following command adds a SUBNET of type ATM:
1-> ASSUME PROCESS $ZTC0
2-> ADD SUBNET #SN2, TYPE ATM, DEVICENAME $AM1, &
2-> IPADDRESS 172.16.192.200, ARPSERVER ON, ATMSEL 1
Considerations
See Table 4-3 on page 4-6 for naming conventions and reserved object names.