CL Command Reference - ADDIPSRTE
CL Command List > ADDIPSRTE Reference
Description:
The Add IP over SNA Route (ADDIPSRTE) command is used to identify a route to a remote network or a route to a remote destination system in the AF_INET sockets over SNA configuration.
Restrictions:
1. The user must have *IOSYSCFG authority to use this command.
2. A route cannot be added unless the internet address of the gateway system specified by the NEXTHOP parameter can be reached directly through a network associated with a previously defined AF_INET sockets over SNA interface. An interface can be added using the Add IP over SNA Interface (ADDIPSIFC) CL command.
Examples:
Example 1: Adding a Network Route on the Network
ADDIPSRTE RTEDEST(¡¯128.2.0.0¡¯) SUBNETMASK(¡¯255.255.0.0¡¯)
NEXTHOP(¡¯9.2.3.4¡¯)
This command defines a network route for all remote hosts on the network 128.2. Network 128.2 is not subnetted since the first two octets of a class B internet address are the network ID portion of the address and the subnet mask is only masking off the first two octets. The gateway specified by NEXTHOP must be in the same network or subnetwork as one of the AF_INET sockets of SNA interfaces that has already been defined on the local host.
Example 2: Adding a Network Route on the Subnetwork
ADDIPSRTE RTEDEST(¡¯129.1.1.0¡¯) SUBNETMASK¡¯(255.255.255.0¡¯)
NEXTHOP(¡¯128.3.4.5¡¯)
This command defines a network route for all remote hosts on the subnetwork 129.1.1. Network 129.1 is subnetted, with the subnet portion of the IP address contained in byte 3. For this example assume that subnet mask 129.1.1 is directly accessible only through the AF_INET Sockets over SNA interface 128.3.4.5 that has already been defined on the local host. Since the network id portion of interface 128.3.4.5 is not the same as the route destination¡¯s network id, we need to specify that the NEXTHOP is the local interface 128.3.4.5. This tells AF_INET Sockets over SNA to use local interface 128.3.4.5 to get to subnetwork 129.1.1.