TCP/IP - V3R20, V3R70 SLIP : Possible avec tout modem suportant les commandes AT derrière une carte: 2609, 2612 et 6152.(elles s'attachent à un IOP 2623 ou un MFIOP) 1/ Création d'une ligne asynchrone 2/ Configuration du modem CFGTCPPTP (Point à point) Option 11 3/ Définition d'un profil, associant un modem,une ligne et une adresse IP Le profil peut-être : *ANS : *DIAL (avec un script de connexion) puis activation par STRTCPPTP |
SLIP, Mise en oeuvre : > la ligne asynchrone doit être créée avec les paramètres suivants CRTLINASC LIND(son-nom) RSRCNAME(CMNxx ou LINxx) LINESPEED(19200) MAXBUFFER(1500) CNN(*SWTPP) DIALCMD(*OTHER) SWTCNN(*DIAL) AUTOANS(*NO) (même en utilisation *ANS) AUTODIAL(*YES) INACTTMR(*NOMAX) > puis vous devez définir votre modem en mode asynchrone (les modems IBM type 7857 sont par défaut en mode synchrone SDLC) - mode commandes AT, liaison Asynchrone sur réseau commuté > et enfin configurer un type de modem sur AS/400, avec : ATZx = réinitialisaion avec la configuration x ATDT = passage en mode numérotation ATSx=y = attribution de la valeur y au registre x ATS0=2 ==> registre 0, nombre de sonneries avant de répondre |
Work with Point-to-Point TCP/IP Modem Information # Type option, press Enter. 1=Add 2=Change 3=Copy 4=Remove 5=Display 6=Print Opt Name Source 1 mon modem $generic hayes DEFAULT GVC 28800 DEFAULT Hayes 14400 Accura DEFAULT IBM 9600 7855 DEFAULT IBM 28800 7852-010 DEFAULT IBM 28800 7852-013 DEFAULT IBM 7857 USERCFG MultiTech 28800 Multimodem DEFAULT USRobotics 28800 Sportster DEFAULT ZOOM 28800 DEFAULT |
Add TCP/IP Point-to-Point Modem Information Modem information name: ........................................ mon modem : : : Ces paramètres fonctionnent : : avec un modem IBM 7857. : Type changes, press Enter. : : :......................................: Modem initialization string AT Modem reset string ATZ1 (ici 1 car la configuration Asynchrone a été sauvegardée sous ce numéro) Modem dial command ATDT Modem answer command ATS0=2 (ici attendre 2 sonneries avant de répondre) F3=Exit F12=Cancel |
Work with Point-to-Point TCP/IP Type option, press Enter. 1=Add 2=Change 3=Copy 4=Remove 5=Display details 6=Print 9=Start 10=End 12=Work with line status 14=Work with job Line Line Job Opt Name Mode Type Status Description Type Name 1 DIALIN *ANS ########################################## # # # Option 1 pour définir une nouvelle # # connexion. # # # ########################################## Fin F8=Work with modems F9=Command line F10=Local interface status F11=Display text F12=Cancel F14=Work with active jobs F24=More keys |
Change TCP/IP Point-to-Point *ANS Profile Système: S44R7480 Name: DIALIN Text communications entrantes Type choices, press Enter. TCP/IP information: Protocol type . . . . . . . . . . : *SLIP Local interface address . . . . . . 130.1.1.1 Address, F4 for list Remote IP address . . . . . . . . . 130.1.1.2 Address Maximum transmission unit . . . . . 576 576-1006 Allow proxy ARP . . . . . . . . . . N Y=Yes, N=No Add default route . . . . . . . . . N Y=Yes, N=No Physical line information: Line description . . . . . . . . . DIALIN Name Line type . . . . . . . . . . . . : *ASYNC Autocreate controller and device Y Y=Yes, N=No Remote location name . . . . . . Name A suivre... F2=Change modem information F3=Exit F4=List F9=Command line F12=Cancel |
Change TCP/IP Point-to-Point *ANS Profile Système: S44R7480 Name: DIALIN Text communications entrantes Type choices, press Enter. Modem information: Use a modem . . . . . . . . . . . . Y Y=Yes, N=No Modem information name F4 for list mon modem Script source information: Use connection dialog script . . . N Y=Yes, N=No Member . . . . . . . . . . . . . ANS400 Name File . . . . . . . . . . . . . . QATOCPPSCR Name Library . . . . . . . . . . . . QUSRSYS Name ASCII character set identifier 00819 1-65533, *DFT !----- Avec F2 V A suivre... F2=Change modem information F3=Exit F4=List F9=Command line F12=Cancel |
Change TCP/IP Point-to-Point Modem Information Modem information name: ................................. IBM 7857 (mon modem) : : : Vous retrouvez ici les : : paramètres du modem. : Type changes, press Enter. :...............................: Modem initialization string AT Modem reset string ATZ1 Modem dial command ATDT Modem answer command ATS0=2 F3=Exit F12=Cancel |
Work with Point-to-Point TCP/IP Type option, press Enter. 1=Add 2=Change 3=Copy 4=Remove 5=Display details 6=Print 9=Start 10=End 12=Work with line status 14=Work with job Line Line Job Opt Name Mode Type Status Description Type Name 9 DIALIN *ANS *SLIP INACTIVE DIALIN *ASYNC ########################################## # # # Option 9 pour démarrer, "Status" doit # # passer successivement à JOBQ # # STRSSN # # RINGW # # # ########################################## # # Fin F8=Work with modems F9=Command line F10=Local interface status F11=Display text F12=Cancel F14=Work with active jobs F24=More keys |
Work with Point-to-Point TCP/IP Type option, press Enter. 1=Add 2=Change 3=Copy 4=Remove 5=Display details 6=Print 9=Start 10=End 12=Work with line status 14=Work with job Line Line Job Opt Name Mode Type Status Description Type Name DIALIN *ANS *SLIP >RINGW DIALIN *ASYNC QTPPANS029 / / L'état doit rester en RINGW puis passer à ACTIF ########################################## sur une demande entrante. # # # Option 14 puis 4 (voir les spools) # # en cas de problème. (status = OUTQ) # # # ########################################## # # Fin F8=Work with modems F9=Command line F10=Local interface status F11=Display text F12=Cancel F14=Work with active jobs F24=More keys |
Avec cette configuration n'importe qui se connecte en IP à ma machine (si le modem est en mode asynchrone et la liaison activée [option 9]) Notion de script : il s'agit d'imposer une authentification par profil/mot de passe Un script est construit de la manière suivante : * en colonne 1 = commentaire & en colonne 1 = information à envoyer autres cas = information à recevoir On reconnait les mots-clé suivants : (PROMPT) = attendre une saisie ou envoyer "enter" (USERID) = profil (PASSWORD) = mot de passe (IPADDR) = adresse IP locale (IPGATE) = adresse IP de la gateway (WAIT xx) = attente (xx = secondes) |
Exemple entre deux AS/400 AS1 est "client" ! AS2 est serveur ! les adresses IP sont figées dans le profil de connexion --------------------------------------------------------------------------- ! * on attend * on envoi "enter" ! (PROMPT) & (PROMPT) ! * on attend la chaîne "profil" ! profil ! * on envoi la chaîne ! & entrez votre profil * on envoi le profil utilisateur! * * tel qu'indiqué dans le profil ! * on attend le profil (*USRPRF) * de connexion. ! * & (USERID) ! (USERID) * on attend la chaîne "passe" ! * on envoi la chaîne passe ! & entrez votre mot de passe * ! * * puis on envoi le mot de passe ! * on attend le mot de passe * (toujours dans le profil slip)! * (il sera vérifié en local) & (PASSWORD) ! (PASSWORD) |
Autre exemple entre deux AS/400 les adresses sont dynamiques ! les adresses sont figées --------------------------------------------------------------------------- * on envoi "enter" ! * on attend & (PROMPT) ! (PROMPT) * on attend la chaîne "profil" ! * on envoi la chaîne profil ! & entrez votre profil * on envoi le user tel ! * * qu'indiqué dans le profil de ! * on attend le profil (*USRPRF) * connexion ! * & (USERID) ! (USERID) * on attend la chaîne "passe" ! * on envoi la chaîne passe ! & entrez votre mot de passe * ! * * puis on envoi le mot de passe ! * on attend le mot de passe * (toujours dans le profil) ! * (il sera vérifié en local) & (PASSWORD) ! (PASSWORD) * ! * * ! * on recoit les deux adresses IP ! on envoi les deux adresses IP votre adresse (IPADDR) ! & votre adresse (IPADDR) mon adresse (IPGATE) ! & mon adresse (IPGATE) |
Sur AS1 Change TCP/IP Point-to-Point *DIAL Profile Système: S44R7480 Name: DIALOUT Text communications sortantes vers AS2 Type choices, press Enter. TCP/IP information: Protocol type . . . . . . . . . . : *SLIP Local interface address . . . . . . *DYNAMIC Address, F4 for list Remote IP address . . . . . . . . . *DYNAMIC Address Maximum transmission unit . . . . . 576 576-1006 Allow proxy ARP . . . . . . . . . . N Y=Yes, N=No Add default route . . . . . . . . . N Y=Yes, N=No Physical line information: Line description . . . . . . . . . DIALIN Name Line type . . . . . . . . . . . . : *ASYNC Autocreate controller and device Y Y=Yes, N=No Remote location name . . . . . . Name # A suivre... F2=Change modem information F3=Exit F4=List F9=Command line F12=Cancel |
Change TCP/IP Point-to-Point *DIAL Profile Système: S44R7480 Name: DIALOUT Text communications sortantes vers AS2 Type choices, press Enter. Modem information: Use a modem . . . . . . . . . . . . Y Y=Yes, N=No Modem information name F4 for list mon modem Script source information: Use connection dialog script . . . Y <-- Y=Yes, N=No Member . . . . . . . . . . . . . DIAL400 Name File . . . . . . . . . . . . . . QATOCPPSCR Name Library . . . . . . . . . . . . QUSRSYS Name ASCII character set identifier 00819 1-65533, *DFT ... F2=Change modem information F3=Exit F4=List F9=Command line F12=Cancel |
Change TCP/IP Point-to-Point *DIAL Profile Système: S44R7480 Name: DIALOUT Text communications sortantes vers AS2 Type choices, press Enter. Remote system access information: Remote service phone number 0240300070 Remote service access name QPGMR Remote service access password xxxxx ... F2=Change modem information F3=Exit F4=List F9=Command line F12=Cancel |
Sur AS2 Change TCP/IP Point-to-Point *ANS Profile Système: S44R7480 Name: DIALIN Text communications entrantes Type choices, press Enter. TCP/IP information: Protocol type . . . . . . . . . . : *SLIP Local interface address . . . . . . 131.1.1.1 Address, F4 for list Remote IP address . . . . . . . . . 131.1.1.2 Address Maximum transmission unit . . . . . 576 576-1006 Allow proxy ARP . . . . . . . . . . N Y=Yes, N=No Add default route . . . . . . . . . N Y=Yes, N=No Physical line information: Line description . . . . . . . . . DIALIN Name Line type . . . . . . . . . . . . : *ASYNC Autocreate controller and device Y Y=Yes, N=No Remote location name . . . . . . Name # A suivre... F2=Change modem information F3=Exit F4=List F9=Command line F12=Cancel |
Change TCP/IP Point-to-Point *ANS Profile Système: S44R7480 Name: DIALIN Text communications entrantes Type choices, press Enter. Modem information: Use a modem . . . . . . . . . . . . Y Y=Yes, N=No Modem information name F4 for list mon modem Script source information: Use connection dialog script . . . Y <-- Y=Yes, N=No Member . . . . . . . . . . . . . ANS400 Name File . . . . . . . . . . . . . . QATOCPPSCR Name Library . . . . . . . . . . . . QUSRSYS Name ASCII character set identifier 00819 1-65533, *DFT ... F2=Change modem information F3=Exit F4=List F9=Command line F12=Cancel |
Change TCP/IP Point-to-Point *ANS Profile Système: S44R7480 Name: DIALIN Text communications entrantes Type choices, press Enter. Local system security: Allow IP datagram forwarding . . . N Y=Yes, N=No System access authorization list SLIP *NONE, Name ^ | ................................................... : On indique ici une liste d'autorisation : : précisant la liste des utilisateurs : : ayant le droit de se connecter. : :.................................................: ... F2=Change modem information F3=Exit F4=List F9=Command line F12=Cancel |
Dernier exemple entre un AS/400 et un micro sous Windows NT. (la configuration de l'as/400 "serveur" est indentique à AS2) ! commentaires proc main !------------------------------------------ delay 2 ! attendre deux secondes transmit "^M^M" ! deux fois "enter" waitfor "profil" ! attendre la chaîne "profil" transmit $USERID ! envoyer le profil saisi transmit "^M" ! puis entrée waitfor "mot de passe" ! attendre la chaîne "mot de passe" transmit $PASSWORD ! envoyer le mot de passe saisi transmit "^M" ! puis entrée waitfor "votre adresse " ! attendre "votre adresse" set ipaddr getip 1 ! et récupérer l'adresse IP transmit "^M" ! endproc ! ------fin du script --------------- ! les scripts Windows sont dans WINNT\SYSTEM32\RAS\*.SCP |
Le gestionnaire de scripts sous Windows 95 n'est pas installé en standard. Il faut ouvrir le panneau de configuration et choisir "ajouter/programme" puis choisir installation de Windows et disquette fournie et enfin saisir "[votre cd-rom]\ADMIN\APPTOOLS\DSCRIPT" l'appel au gestionnaire de script se fera à partir du menu accessoire et doit être demandé APRES avoir définit une connexion distante (RAS) |
Les scripts AS/400 vous sont livrés dans QATOCPPSCR de QUSRSYS, il vous est conseillé de les dupliquer dans une bibliothqèue à vous afin de les modifier. passer la commande CRTSRCPF mabib/nomfichier RCDLEN(128) CCSID(500) puis dupliquez tous les membres CPYF QUSRSYS/QATOCPPSCR mabib/monfichier FROMBR(*ALL) TOMBR(*FROMMBR) |