configure as/400 for tcp/ip applications chapter 4

28
Configure AS/400 for TCP/IP Applications Chapter 4

Upload: favian

Post on 24-Jan-2016

38 views

Category:

Documents


0 download

DESCRIPTION

Configure AS/400 for TCP/IP Applications Chapter 4. MULTIPLE PROTOCOLS. Can run simultaneous in OS/400 It is very common to have APPC and TCP/IP active at the same time APPC to support business applications TCP/IP for TELNET and FTP More configuration required to for LPD and SMTP. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Configure  AS/400   for  TCP/IP Applications Chapter 4

Configure AS/400 for

TCP/IP Applications

Chapter 4

Page 2: Configure  AS/400   for  TCP/IP Applications Chapter 4

•Can run simultaneous in OS/400

•It is very common to have APPC and TCP/IP active at the same time

•APPC to support business applications

•TCP/IP for TELNET and FTP•More configuration required to for LPD and SMTP

MULTIPLE PROTOCOLS

Page 3: Configure  AS/400   for  TCP/IP Applications Chapter 4

GO CFGTCP CFGTCP Configure TCP/IP Select one of the following: 1. Work with TCP/IP interfaces 2. Work with TCP/IP routes 3. Change TCP/IP attributes 4. Work with TCP/IP port restrictions 5. Work with TCP/IP remote system information

10. Work with TCP/IP host table entries 11. Merge TCP/IP host table 12. Change TCP/IP domain information 20. Configure TCP/IP applications 21. Configure related tables 22. Configure point-to-point TCP/IP

Page 4: Configure  AS/400   for  TCP/IP Applications Chapter 4

GO CFGTCP - Option1Type options, press Enter. 5=Display Internet Subnet Line Line Opt Address Mask Description Type

---- 127.0.0.1 255.0.0.0 *LOOPBACK *NONE

--- 142.204.57.104 255.255.255.192 ETHERNET *ELAN

--- 142.204.57.105 255.255.255.192 FIBER *ELAN

Required for internal processing and testing!!

Page 5: Configure  AS/400   for  TCP/IP Applications Chapter 4

GO MAIN, 6, 4 or GO CFGCMN

CFGCMN Configure Communications and Remote Hardware

System: ODIN Select one of the following: 1. Work with lines 2. Work with communications controllers 3. Work with work station controllers 4. Work with communications devices 5. Work with printers 6. Work with display stations 7. Work with modes 8. Work with classes-of-service 9. Work with configuration lists 10. Work with network interfaces 11. Work with connection lists 12. Work with network servers 13. Work with NetBIOS descriptions More...

Page 6: Configure  AS/400   for  TCP/IP Applications Chapter 4

WRKLIND Work with Line Descriptions System: ODIN Position to . . . . . Starting characters Type options, press Enter. 2=Change 3=Copy 4=Delete 5=Display 6=Print 7=Rename 8=Work with status 9=Retrieve source Opt Line Type Text ETHERNET *ELAN FIBER *ELAN FIBER ETHERNET CONNECTION

QESLINE *SDLC QTILINE *SDLC Q1PLIN *SDLC PM iSeries line

Page 7: Configure  AS/400   for  TCP/IP Applications Chapter 4

WRKLIND, 5 Display Line Description Line description . . . . . . . . . : ETHERNET Option . . . . . . . . . . . . . . : *BASIC Category of line . . . . . . . . . : *ELAN Resource name . . . . . . . . . . : CMN03 Online at IPL . . . . . . . . . . : *YES Vary on wait . . . . . . . . . . . : *NOWAIT Network controller . . . . . . . . : ETHERNET Local adapter address . . . . . . : 0006299CF0B1 Exchange identifier . . . . . . . : 05667200 Ethernet standard . . . . . . . . : *ALL Line speed . . . . . . . . . . . . : 100M Current line speed . . . . . . . . : 100M Duplex . . . . . . . . . . . . . . : *FULL Current duplex . . . . . . . . . . : *FULL Maximum frame size . . . . . . . . : 1496 Maximum controllers . . . . . . . : 40

Page 8: Configure  AS/400   for  TCP/IP Applications Chapter 4

Configure TCP/IP applications

SNMP - Simple Network Management Protocol

FTP - File Transfer Protocol

TELNET - Character mode client to server port connection

SMTP - Simple Mail Transfer Protocol

LPD - Line Printer Deamon

HTTP - HyperText Transfer Protocol

WSG - WorkStation Gateway

POP - Post Office Protocol

Page 9: Configure  AS/400   for  TCP/IP Applications Chapter 4

Go CFGTCP, 20 Configure TCP/IP Applications Select one of the following: 1. Configure SNMP agent 2. Configure RouteD 4. Configure BOOTP 5. Change DDM TCP attributes 10. Change FTP attributes 11. Configure TELNET 12. Configure SMTP 13. Change LPD attributes 16. Change POP attributes 17. Change REXEC attributes

Page 10: Configure  AS/400   for  TCP/IP Applications Chapter 4

Configuring SNMP

SNMP provides network management capabilities.

An AS/400 CAN BE a managed system in an SNMP managed network, but the AS/400 CAN NOT be an SNMP manager.

CHGSNMPA ( WRKCNTINF)

CFGTCPSNMP Work with communities for SNMP

ADDCOMSNMP CHGCOMSNMP RMVCOMSNMP

Page 11: Configure  AS/400   for  TCP/IP Applications Chapter 4

Configuring FTP

• When the AS/400 acts as a server, it allows clients to access physical, logical, source and save files and members stored on the system

• When files are transferred to a client system , the AS/400 automatically translates them from EBCDIC to ASCII, but files can also be transferred without translation.

Page 12: Configure  AS/400   for  TCP/IP Applications Chapter 4

Configuring FTPCHGFTPA autostart *yes (STRTCP)

*no (STRTCPSVR). FTP server doesn’t need to be active for the AS/400 to initiate a file

transfer, either to or from the AS/400.

. The only need for the FTP server to be active on the AS/400 is for a remote system to initiate a file transfer to or from the AS/400.

. NBRSVR: The default FTP servers to be started automatically is three. (1----20)

. INACTTIMO: The default number of seconds that an FTP connection can remain idle before the AS/400 disconnects the FTP connection is 300 seconds. (0----68years)

0 = NO Timeout

Page 13: Configure  AS/400   for  TCP/IP Applications Chapter 4

Change FTP Attributes (CHGFTPA) Type choices, press Enter. Autostart servers . . . . . . . AUTOSTART *SAME

Number of initial servers . . . NBRSVR *SAME Inactivity timeout . . . . . . . INACTTIMO *SAME

Coded character set identifier CCSID *SAME Outgoing EBCDIC/ASCII table: TBLFTPOUT Outgoing EBCDIC/ASCII table . *SAME

Library . . . . . . . . . . Incoming ASCII/EBCDIC table: TBLFTPIN Incoming ASCII/EBCDIC table . *SAME

Library . . . . . . . . . . Initial name format . . . . . . NAMEFMT *SAME

Initial directory . . . . . . . CURDIR *SAME

Initial list format . . . . . . LISTFMT *SAME

New file CCSID . . . . . . . . . CRTCCSID *SAME

Subsystem description . . . . . SBSD *SAME Library . . . . . . . . . . . Allow secure sockets layer . . . ALWSSL *SAME

Page 14: Configure  AS/400   for  TCP/IP Applications Chapter 4

Configuring TELNET• CFGTCPTELN = TELNET• CHGTELNA autostart *yes (STRTCP) *no (STRTCPSVR)The default Telnet server to be started automatically is one.

You can start additional Telnet servers by using the command : STRTCPSVR SERVER(*Telnet)

INACTTIMO: The default number of seconds that an Telnet connection can remain idle before the AS/400 disconnects the Telnet connection is 0 seconds, meaning idle connections will not be broken.

(Valid range: 0----68years) 0 = No Timeout

Page 15: Configure  AS/400   for  TCP/IP Applications Chapter 4

Change TELNET Attributes (CHGTELNA) Type choices, press Enter. Autostart server . . . . . . . . *SAME *YES, *NO, *SAME Number servers . . . . . . . . . *SAME 1-200, *SAME, *CALC Session keep alive timeout . . . *SAME 0-2147483647, *SAME,

*CALC... Default NVT type . . . . . . . . *SAME *SAME, *VT100, *NVT Coded character set identifier *SAME 1-65533, *SAME,

*MULTINAT... ASCII fullscreen mapping: Outgoing EBCDIC/ASCII table . *SAME Name, *SAME, *CCSID, *DFT Library . . . . . . . . . . Name, *LIBL, *CURLIB Incoming ASCII/EBCDIC table . *SAME Name, *SAME, *CCSID, *DFT Library . . . . . . . . . . Name, *LIBL, *CURLIB Allow Secure Socket Layer . . . *SAME *YES, *NO, *ONLY, *SAME

Page 16: Configure  AS/400   for  TCP/IP Applications Chapter 4

Configuring Telnet

• Changing Telnet related system values • QAUTOVRT QLMTSECOFR QINACTITV

QINACTMSGQ QLMTDEVSSN QMAXSGNACN

QMAXSIGN QRMTSIGN QDEVRCYACN

QDSCJOBITV

.The number of attempts a hacker can try to break into AS/400 system is: QAUTOVRT * QMAXSIGN

Page 17: Configure  AS/400   for  TCP/IP Applications Chapter 4

Configuring SMTP

• SMTP is used to transfer mail between host.

• POP3 is used to transfer mail from a host to a client.

• AS/400 supports both SMTP and POP3.

Page 18: Configure  AS/400   for  TCP/IP Applications Chapter 4

Configuring SMTP

• SNADS (System Network Architecture Distribution Services) is a vital component for e-mail on the AS/400.

• SNADS is an SNA- based process to provide the routing and addressing functions for SMTP.

• SNADS is the message distribution system that has been available on the AS/400 since its inception.

• SNADS offers base functionality for message storage and forwarding within an AS/400.

Page 19: Configure  AS/400   for  TCP/IP Applications Chapter 4

Configuring SMTP

• SMTP provides for direct interaction but also has a spooling component to hold the mail until it is requested.

• POP3 process assumes that the server maintains the mail for the client.POP3 accesses and downloads the mail dynamically when the user on the client system wants to receive it.

Page 20: Configure  AS/400   for  TCP/IP Applications Chapter 4

Configuring SMTP

• Incoming SMTP mail is sent to the AS/400 using the AS/400’s host and domain name specified in the TCP/IP configuration.

• It’s critical that the AS/400 host and domain name reside in both the host table on the AS/400 as well as in the local domain and host name entry.

• The AS/400 stores ,routes and forwards the mail message.– The content of the message is not important (attachments, graphics,

fonts……are not of concern to AS/400.

– The client is responsible for the proper display of the message.

Page 21: Configure  AS/400   for  TCP/IP Applications Chapter 4

SMTP -- SNADS

• SMTP– SNADS interaction is used to route the mail to the appropriate user’s mailbox.

• SMTP receives incoming mail and forwards it to SNADS, which then places the mail in the appropriate storage area on the AS/400.

• Outgoing mail is sent to SMTP , which forwards it to SNADS for delivery.

Page 22: Configure  AS/400   for  TCP/IP Applications Chapter 4

SMTP -- SNADS

• You need SNADS distribution queues and TCP/IP routing table entries for proper processing of incoming/outgoing mail.

• SNADS distribution queues and TCP/IP routing table entries are created automatically when the TCP/IP connectivity utilities are installed.

Page 23: Configure  AS/400   for  TCP/IP Applications Chapter 4

SMTP alias table

• Personal alias table

Identifies only an SMTP address for a given user• System alias table

Identifies the address for all users

• WRKNAMSMTP

Add, change, remove ,display ,print the alias table entries

Page 24: Configure  AS/400   for  TCP/IP Applications Chapter 4

The commands you should know

• CHGSMTPA CHGTELNA

• CFGTCPSMTP ADDDIRE

• CHGPOPA CHGDIRE

• WRKDIRE RMVDIRE

• WRKDSTQ RNMDIRE

• CFGDSTSRV

Page 25: Configure  AS/400   for  TCP/IP Applications Chapter 4

Start TCP/IP (STRTCP)Where allowed to run: All environments (*ALL)

• The Start TCP/IP (STRTCP)– command initializes and activates TCP/IP processing– starts the TCP/IP interfaces– starts the TCP/IP server jobs– starts the TCP/IP Point-To-Point (PTP) profiles.

A STRTCP command must be issued before any TCP/IP processing can be performed on the iSeries. This includes Simple Network Management Protocol (SNMP) agent processing.

• The TCP/IP interfaces that are started are those that have set the AUTOSTART parameter to a value of *YES using the Add TCP/IP Interface (ADDTCPIFC), the Change TCP/IP Interface (CHGTCPIFC) commands, or the iSeries Navigator.

• The Change IPL Attributes (CHGIPLA) command with the STRTCP parameter set to a value of *YES can be used to automatically submit the STRTCP command at the completion of IPL.

STRTCP - 1

Page 26: Configure  AS/400   for  TCP/IP Applications Chapter 4

STRTCP - 2

• The Start TCP/IP command only starts a TCP/IP application job if the AUTOSTART attribute in the application's configuration is set to *YES when the command is issued..

• When the STRTCP command is issued, the QTCPIP job in the QSYSWRK subsystem is started. The QTCPIP job is used for activating and deactivating TCP/IP interfaces.

• This command calls different programs to process each type of TCP/IP server.

• Parameters– Keyword Description Choices Notes– STRSVR Start application servers *YES, *NO

Optional– STRIFC Start TCP/IP interfaces *YES, *NO Optional– STRPTPPRF Start point-to-point profiles *YES, *NO Optional

Page 27: Configure  AS/400   for  TCP/IP Applications Chapter 4

STRTCP - 3• Start application servers (STRSVR)• Specifies whether or not TCP/IP application servers are started by the Start

TCP/IP (STRTCP) command. • *YES

– The STRTCP command starts all TCP/IP application servers with a configuration attribute of AUTOSTART(*YES) when TCP/IP is activated.

• *NO – The STRTCP command does not start any TCP/IP application servers when

TCP/IP is activated.

• Note: This parameter can be used when TCP/IP application servers using AnyNet are already active on your system and you intend to also activate TCP/IP. STRTCP STRSVR(*NO) activates TCP/IP processing without starting additional TCP/IP servers.

• When TCP/IP or AnyNet is already active, use the Start TCP/IP Server (STRTCPSVR) command to start additional TCP/IP application servers.

Page 28: Configure  AS/400   for  TCP/IP Applications Chapter 4

STRTCP - 4• Start TCP/IP interfaces (STRIFC)• Specifies whether or not to activate all TCP/IP interfaces that specify

AUTOSTART(*YES) when TCP/IP is activated. • *YES

– When the QTCPIP job is started by the STRTCP command, the job will attempt to activate all TCP/IP interfaces for which AUTOSTART(*YES) is specified.

• *NO – The AUTOSTART(*YES) interface parameter will be ignored. No TCP/IP interfaces will be

automatically started. • Note: Specifying STRIFC(*NO) only inhibits the activation of TCP/IP interfaces. It has

no effect on interfaces for other AnyNet protocols such as IP over SNA or IP over IPX.

• Start point-to-point profiles (STRPTPPRF)• Specifies whether or not to activate all point-to-point profiles that specify a

configuration attribute of AUTOSTART(*YES) when TCP/IP is activated. • *YES

– As part of the running of the STRTCP command, the Start Point-to-Point TCP/IP (STRTCPPTP) command will also be run. The STRTCPPTP command will attempt to start all of the point-to-point profiles with a configuration attribute of AUTOSTART(*YES).

• *NO – The STRTCPPTP command will not be run.