TCP/IP Configuration and Management Manual
NonStop Systems Used as Internet Gateways
TCP/IP Configuration and Management Manual—427132-004
F-12
Startup Files for GTWY1
The next difference concerns the routes that are added.
ADD ROUTE #ROU1, DESTINATION 150.60.0.0, GATEWAY 128.30.128.2
ADD ROUTE #ROU2, DESTINATION 150.70.0.0, GATEWAY 128.30.128.3
Thus, if GTWY1 receives an IP datagram destined for the network 150.60.0.0, the
gateway routes that datagram to GTWY2. And likewise, if GTWY1 receives an IP
datagram destined for the network 150.70.0.0, the gateway routes that datagram to
GTWY3.
The HOSTS File
The HOSTS file, shown in Example F-6, contains only one minor change that makes it
differ from the file for HOST1. The address, name, and aliases have been changed for
HOST1. HOSTS is the main host file for all the hosts, regardless of the configuration.
You can include the current host in your host file. Note that we could have done the
same in the HOSTS file for HOST1 as well. Communication destined for HOST1
defaults to the line $LAN01, but the other line can also be used by calling HOST1B.
Example F-5. SCFSBNT File for TCPIPUP3
== SCFSBNT FOR GTWY1========= SCFSBNT FOR GTWY1========
== SCF command file to ADD and START SUBNETs
== This file is created to support GTWY1 (Refer to
== Figure F-6
)
ALLOW ALL ERRORS
ALLOW ALL WARNINGS
== ADD AND START SUBNET $ZTC0.#SN0
ASSUME PROCESS $ZTC0
== HELP TCPIP ADD SUBNET
ADD SUBNET #SN0,TYPE ETHERNET,DEVICENAME LAN01,IPADDRESS
150.50.192.1,GATEWAY ON
ADD SUBNET #SN1,TYPE ETHERNET,DEVICENAME LAN02,IPADDRESS
128.30.128.1,GATEWAY ON
== HELP TCPIP ALTER SUBNET
ALTER SUBNET #LOOP0, IPADDRESS 127.1
== HELP TCPIP ADD ROUTE
== ADD ROUTES
ADD ROUTE #ROU1, DESTINATION 150.60.0.0, GATEWAY 128.30.128.2
ADD ROUTE #ROU2, DESTINATION 150.70.0.0, GATEWAY 128.30.128.3
== HELP TCPIP START SUBNETS & ROUTES
START SUBNET *
START ROUTE *
=========== END OF SCFSBNT ============= END OF SCFSBNT ===========