IBM s/390 manual 5 TCP/IP for OS/390

Page 44

4.2.5 TCP/IP for OS/390

It is possible to share a single Ethernet LAN adapter in the ThinkPad between Linux (including the FLEX-ES Terminal Solicitor) and OS/390 TCP/IP. This requires some coordination between the FLEX-ES definitions and the OS/390 TCPIP profile data set parameters. Our goal was to assign IP address 9.12.17.211 to OS/390 TCP/IP, using the OS/390 device addresses E20 and E21 for the interface. (Our Linux IP address was 9.12.17.210.)

We included the following FLEX-ES definitions:

System definition:

channel (3) local

cu devad(0xE20,2) path(3) resource(R10A3172)

Resource definitions:

R10A3172: cu 3172 interface local(1)

options ‘ipaddress=9.12.17.211’ device(00) 3172 eth0 device(01) OFFLINE

end R10A3172

We changed the following lines in the TCPIP.PROFILE.TCPIP data set:

...

 

 

 

 

 

DEVICE LCS1 LCS E20

 

 

 

LINK ETH1 ETHERNET 0 LCS1

 

 

...

 

 

 

 

 

HOME 9.12.17.211 ETH1

 

 

...

 

 

 

 

 

GATEWAY

 

 

 

 

9

=

ETH1

1492

0.255.255.0

0.12.17.0

...

 

 

 

 

 

START LCS1

This specifies the use of LAN adapter 0 (sometimes known as the MPTS adapter number, from the OS/2 MPTS program). Adapter 0 is the default LAN adapter number for FLEX-ES. This number is not related to any Linux LAN number.

In order to share an Ethernet adapter with Linux, we must specify, in the resources file, the IP address to be used by OS/390. It must also be specified in the OS/390 TCP/IP profile data set, as shown here. With the specifications described here, we have these connection options from another host on the network:

￿TN3270 to 9.12.17.210, port 24 -- this connects to the Terminal Solicitor (assuming resadm is started. We can then select a session and should receive the USSTAB logo screen.

￿TN3270 to 9.12.17.211, port 23 -- this connects directly to OS/390 TCP/IP. In recent AD systems (where a USSTAB function is defined for TCP/IP) this should produce the logo screen.

￿telnet to 9.12.17.210, port 23 -- this connects to Linux (if telnet connections are enabled).

￿telnet to 9.12.17.211, port 1023 -- this connects to OS/390 Unix System Services, as an ASCII terminal (assuming you are using a recent AD system).

￿telnet to 9.12.17.211, port 23 -- this produces a line-mode connection (via VTAM) to TSO and is not very useful.

34S/390 PID: ThinkPad Enabled for S/390

Image 44
Contents ThinkPad Enabled for S/390 Bill OgdenPage International Technical Support Organization First Edition October Contents Shutting down Index Vi S/390 PID ThinkPad Enabled for S/390 Special notice AuthorIBM trademarks Comments welcomeIntroduction Purpose of this redbook ThinkPad/EFS systemsFLEX-ES Linux Positioning with other small S/390sThinkPad/EFS hardware used Terminology System and Linux installation Disk planningDifferences Linux installation ThinkPadPartition Manually Partition Mount Point Device Requested Actual Type PurposeDevice Partition Type Default Boot 12.17.210255.255.255.0 12.17.150Gnome Installation notes Monitor Setup IBM 9513 T55A TFT No clock chip 24 bitSelect Start X automatically # df -h# kill -s USR1 pidnumber PID number for xinetd Etc/xinetd.d # vi telnet# ps -ef grep xinetd 14 S/390 PID ThinkPad Enabled for S/390 FLEX-ES and OS/390 installation FLEX-ES Brief introductionPC Processor in ThinkPad Page Installation Installing the FLEX-ES license key OS/390 AD systems Next stepsAD systems # mkdir /s3912 OS/390 on CD-ROM Basic CD-ROM formats3 OS/390 device configuration FLEX-ES formatsInstallation tasks Unzipping and installing Awsckd CD-ROM filesAn unzip program Mount /dev/cdrom /mnt/cdromMinor problems File ownershipVolume in two separate zip files Files unzip in wrong orderFLEX-ES Operation FLEX-ES system and resource definitions CommentsBuilding a shell script $ cd /usr/flexes/rundir# resadm -s R10A.rescf $ resadm -r$ sh shos Flexes ipl a80 0a82cs =stor IPL OS/390Terminal Solicitor Operation and use User terminal connection11.42.47 A80,8Linux TN3270 Iodf requirementsSystem performance monitors Rmf5 TCP/IP for OS/390 Shutting down # resadm -T# resadm -k # exit36 S/390 PID ThinkPad Enabled for S/390 Additional Topics Basic debugging Server memory Operating Systems Messages consoleSecurity Vmstat command Importance of Linux swapping CPU# cat /proc/partitions Using a second Linux hard diskUltrabay Second disk planning Device Volser Addr Use Disk layout AD systemPartition Mount Size Use FLEX-ES FakeTape on OS/390 Alternative method560 222222Multi-system setup X3270 client $ x3270 -model 3 -keymap pc -port tn3270 localhost$ x3270 -model 3 -keymap pc -port tn3270 localhostt91f Function Keys Used# vi # cd /usr/lib/X11/app-defaults # cp X3270 X3270oldRemote resources Disk caches System BWrites Cache Hits Tuning cachesize FSI Channel AdaptersDisk fragmentation Backup and restore considerationsScsi adapter for the ThinkPad Using tar to back up S/390 volumes $ tar -cvzf /holding/OS39RA.tarz /s390/OS39RAUsing tar and ftp $ cd /usr/flexes/rundir $ sh buOS39RAc16 S/390 identification CD-RW driveDisplay PSW and registers RAS discussionVerify ckd disk Linux windowsInstalling FLEX-ES upgrades ThinkPad power controlUseful Linux commands Common commandsMultiple consoles, sessions, screens Text editors62 S/390 PID ThinkPad Enabled for S/390 Frequently asked questions 64 S/390 PID ThinkPad Enabled for S/390 Frequently asked questions 66 S/390 PID ThinkPad Enabled for S/390 Frequently asked questions 68 S/390 PID ThinkPad Enabled for S/390 Appendix A. FLEX-ES definition listings Basic definitions for a single HDDShell script for a single HDD Definitions for two HDDs Shell script for two HDDs Appendix B. FLEX-ES parameters System definitionsCpu0 Cpu1 Cpu2 Resource definitions Emulated control unit typesEmulated device types Typical resource definitionsCKD disk resources Terminal resources Tape resources LAN resourcesCloned devices Resadm command Common rulesCLI commands 560 Home/tape3 Flexes mount A90 S390/WORK01710 Altcons 84 S/390 PID ThinkPad Enabled for S/390 Special notices 86 S/390 PID ThinkPad Enabled for S/390 How to get IBM Redbooks IBM RedbooksReferenced Web sites Other resourcesIBM Redbooks collections Index Pipe Port Power control Terminal logo Terminal Solicitor 16, 18, 31, 39, 65 92 S/390 PID ThinkPad Enabled for S/390 Partners in Development ThinkPad Enabled for S/390 Page Page ThinkPad Enabled for S/390 System setup AD CD-ROM use System operation