Configuring  PASSTHRU  with  a  LAN

Tech tip courtesy of   Dynax Solutions, Inc.   and   Jeff Young

Here's a method for configuring 2 or more AS/400 systems for passthru using a LAN connection. You will need to create a line description on each system and an APPC controller on the system from which you want to start passthru (the "source" system).

On the "Source" system:

1. Create line description for the LAN connection on the AS/400 with a CRTLINxxx command (the xxx is either ETH for Ethernet or TRN for token ring):

CRTLINxxx  LIND(LAN)
           RSRCNAME( Resource Name )
           ADPTADR( Adapter Address )
           AUTOCRTCTL(*YES)

Note:  The adapter address can be specified or left at the default of *ADPT.  The AUTOCRTCTL keyword value *must* be changed from the default of *NO to *YES.

2. Create an APPC Controller Description:

CRTCTLAPPC CTLD( choosename )
           LINKTYPE(*LAN)
           SWTLINLST   (Name of the line description created in step 1)
           RMTNETID    (Remote System Network I.D.)
           RMTCPNAME   (Remote System Control Point Name)
           ADPTADR     (Remote System Adapter Address)

Note: The RMTNETID and RMTCPNAME are specified on the TARGET system in the network attributes as the Local Network I.D. and Local Control Point Name.  Use the DSPNETA command on the TARGET system to find these values.

The Remote System Adapter Address is found in the line description for the LAN connection as the Local Adapter Address.  Use the DSPLIND command to find this value.

3. On the TARGET AS/400, create a line description for the LAN connection:

CRTLINxxx LIND(LAN)
          RSRCNAME( Resource Name )
          ADPTADR( Adapter Address )
          AUTOCRTCTL(*YES)

Note:  The adapter address can be specified or left at the default of *ADPT.  The AUTOCRTCTL keyword value *must* be changed from the default of *NO to *YES.

4. Enable the configuration on BOTH AS/400 systems using the VRYCFG command to vary the LINE and CONTROLLER on for the SOURCE system and the LINE for the TARGET system.

5. Issue the STRPASTHR command on the SOURCE system using the system name of the TARGET AS/400.

The TARGET AS/400 system will automatically create an APPC CONTROLLER and APPC DEVICE for the SOURCE AS/400, and the SOURCE AS/400 system will automatically create an APPC DEVICE for the TARGET AS/400.

That was easy, wasn't it?