The 3270 Gateway for Linux is a software product which provides 3270 access via TCP/IP to an IBM mainframe (OS/390, MVS, or VSE) host system, without the need to run TCP/IP on the mainframe.
To the mainframe, the gateway appears to be a LAN-attached 3174 cluster controller with up to 255 SNA 3270 terminals. To the TCP/IP network, the gateway acts as a tn3270 server. Each tn3270 client which connects to the gateway appears as an SNA 3270 terminal on the mainframe.
The diagram below shows an example configuration:
+--------+
| tn3270 |___
| client | \ +------+ +----+
+--------+ \ | 37x5 | / /|
\ Linux | or | +----+ |
+--------+ +---------+ | 3172 | SNA | | |
| tn3270 |___ TCP/IP ____| 3270 | | or |=======|9672| |
| client | network | Gateway | | 3174 | | | |
+--------+ +---------+ +------+ | |/
/ | | +----+
+--------+ / ------------------------ S/390
| tn3270 |___/ Token-Ring or Ethernet Mainframe
| client | SNA 802.2
+--------+
Win95/NT/Unix
tar xvzf dlc-2.3.tar.gz
cd dlpi
uname -r
make install
tar xvzf gw3270-1.11.tar.gz
cp gw3270/tn3270d /usr/sbin
cp gw3270/rc.gw3270 /etc/rc.d
The gateway configuration parameters are contained in the startup script. Before starting the gateway, edit the file /etc/rc.d/rc.gw3270 and set the parameters as described below:
The patch to the ibmtr.c driver supplied with dlc-2.3 and above allows you to override the hardwired adapter address of your IBM Token-Ring adapter with a locally-administered address in the range 400000000000 to 7FFFFFFFFFFF. This is necessary to establish communications with devices such as the IBM 3174 which do not allow you to specify MAC addresses containing hexadecimal digits. To specify a locally-administered address, add a line like this to your /etc/conf.modules file:
options ibmtr mac=400031740222
You must define a VTAM switched major node for the 3270 Gateway. The following is an example:
SW3270 VBUILD TYPE=SWNET, X
MAXNO=1, X
MAXGRP=1
PUXXXX PU ADDR=01, X
PUTYPE=2, X
IDBLK=05D, X
IDNUM=21436, X
DISCNT=NO, X
MAXOUT=3, X
MAXDATA=1024, X
MAXPATH=1, X
PASSLIM=1, X
DLOGMOD=D4C32782, X
ISTATUS=ACTIVE
PTHXXXX PATH DIALNO=010410005A443832, X
GRPNM=GRPXXXX
LUXXXX02 LU LOCADDR=2
LUXXXX03 LU LOCADDR=3
LUXXXX04 LU LOCADDR=4
LUXXXX05 LU LOCADDR=5
ifconfig tr0
or
ifconfig eth0
The precise method of configuring each client will depend on the particular tn3270 product chosen, but in each case you will need to specify a hostname and a port number. The hostname must be the name or IP address of the Linux system running the 3270 Gateway, and the port number must match the TN3270_PORT parameter in the 3270 Gateway configuration file.
/etc/rc.d/rc.gw3270
You can obtain a status display by connecting to the gateway using a regular (non-3270) telnet client, as shown in this example:
# telnet hgunix1 24
Connected to TN3270D 1.10 at hgunix1.snipix.co.uk (Linux 2.2.5)
---PU STATUS--- --PUID-- PID PORT ---SSCPID--- LS HOST-MACADDR RS INTF
ACTIV CONNECTED 05D21436 557 24 040000000000 04 00AA00AE5786 04 eth0
LU STATUS ----CLIENT---- LU STATUS ----CLIENT---- LU STATUS ----CLIENT----
002 ACT/S 192.168.200.137 003 ACT/S 192.168.200.133 004 ACTIV
005 ACTIV
Connection closed by remote host.
The gateway is a PU type 2.0, and is therefore limited by the SNA
architecture to 255 LUs. So the answer is 255 clients per gateway.
To support more than 255 clients, you can run multiple instances of
the gateway on a single Linux machine. Each instance will require
unique settings for the TN3270_PORT, LOCAL_SAP, and LOCAL_XID
parameters in its configuration file, and each gateway instance must
have a PU definition with associated LUs in the VTAM switched major
node.
The number of gateways which can be realistically supported by a
single Linux machine will depend on the capacity of the machine.
Last updated 31 Mar 2000