Subject : Async SLIP setup for Solaris 2.5 (Direct by null modem cable) Description : CONTENTS OF THIS MEMO : SUN CS Tech Hour Áغñ. 0. Introduction 1. Test Environment 2. Install 3. Server System 4. Client System 5. Rebooting ÈÄ , È®ÀÎÇÒ »çÇ×. 6. Network Test ( ping, telnet, rlogin, rcp) and Routing. 7. Appendix A: Slip connection PC(with printer) and W/S B: SunSolve infodoc for Slip connection PC and W/S 0. Introduction 1)SLIP ¶õ ¹«¾ùÀΰ¡ ? - serial line internet protocol. 1. Test Environment 0) Configuration 192.9.10.X |_________________________________________________| | | | | ----------- ------------ | WWW | | hyundai2 | | Server | | (Gateway)| ----------- ------------ | | 203.240.159.X |_______|____________________|___________________________________________| | | | | | ------------ |---------| | hyundai3 | 203.240.159.35 | Router | | h-sl | 203.240.151.80 ----------- ------------ | | . | . | ttya serial line . | (9600 baud) | | ----------- ------------- | ÀÌ Ãµ | | w-sl | 203.240.151.81 | HEI | | wybee | 203.240.158.81 | Ami-Net | ------------- ----------- | 203.240.158.X |_________________|___________________________| | 1. Test Environment 1) Axil311 OS : Solaris 2.5 (KLE) Name : hyundai3 Type : server Port : ttya ( service disable : ux ) baud : 9600 2) Axil320 OS : Solaris 2.5 (KLE) Name : wybee Type : client Port : ttya ( service disable : ux ) baud : 9600 3) Pin assign : null modem cable ( 1:gnd 2:tx 3:rx 4:rts 5:cts 6:dsr 7:gnd 8:dcd 20:dtr) 1 ------------------- 1 2 ------------------- 3 3 ------------------- 2 4 ------------------- 5 5 ------------------- 4 ---- 6 6 ---- | 7 ------------------- 7 | ---- 8 ------------------- 20 | 20 ------------------- 8 2. Install 1) PCNFS 5.1 ÀÇ 5¹ø° Diskette À¸·ÎºÎÅÍ addpkg.sh °ú pkg.taz ¸¦ ÀÌ¿ë (PCNFS 5.0 ¿¡ Àִ°ÍÀ¸·Î ÇÏ¸é »±ÀÌħ. Àý´ë¾ÈµÊ.) 2) addpkg.sh À» ¼öÇàÇϸé pkg.taz ¶ó´Â ¾ÐÃàµÈÇüÅÂÀÇ file À» Ç®°í install ÇÒ Áغñ¸¦ ¸¸µé¾îÁØ´Ù. (addpkg.sh ·Î Uncompress, pkgadd ·Î install ÇÑ´Ù.) # pwd /home/lsh/Pcnfs5.1/sparc # ls -al ÃÑ 538 drwxr-xr-x 2 root other 512 9¿ù 29 17:16 . drwxr-xr-x 3 root other 512 9¿ù 29 16:56 .. -rwxr-xr-x 1 root other 2395 9¿ù 29 16:37 addpkg.sh -rwxr-xr-x 1 root other 259433 9¿ù 29 16:37 pkg.taz # addpkg.sh -------------------------------------- This script will uncompress and untar the pkg file containing the SUNWpcnfs package ready for the SVR4 pkgadd utility to install You must be root to run this script. Are you ready to proceed (y or n [y]): y Copying pkg.taz to /var/spool/pkg/pkg.tar.Z Uncompressing the /var/spool/pkg/pkg.tar.Z file. pkg.tar.Z: -- replaced with pkg.tar Unpacking the pkg.tar file. x SUNWpcnfs/, 0 bytes, 0 tape blocks x SUNWpcnfs/pkgmap, 3066 bytes, 6 tape blocks x SUNWpcnfs/pkginfo, 350 bytes, 1 tape blocks x SUNWpcnfs/reloc/, 0 bytes, 0 tape blocks ............................. x SUNWpcnfs/install/preremove, 2756 bytes, 6 tape blocks x SUNWpcnfs/install/request, 1388 bytes, 3 tape blocks The SUNWpcnfs package is ready to install with the SVR4 utility pkgadd # pkgadd ´ÙÀ½ ÆÐÅ°Áö¸¦ »ç¿ëÇÒ¼ö ÀÖÀ½: 1 SUNWpcnfs PC-NFS Daemons (sparc) 1.0 ó¸®ÇϽðíÀÚ ÇÏ´Â ÆÐÅ°Áö(µé)À» ¼±ÅÃÇϽʽÿÀ (¸ðµç ÆÐÅ°ÁöµéÀ» ó¸®ÇϽ÷Á¸é 'all'À» ¼±ÅÃÇϽʽÿÀ). (default: all) [?,??,q]: 1 ÆÐÅ°Áö ÀνºÅϽº¸¦ ¿¡¼ ó¸®Áß PC-NFS Daemons (sparc) 1.0 Copyright 1994 Sun Microsystems, Inc. All Rights Reserved. Printed in the United States of America. ................. µð·ºÅ丮 ¸¦ ÆÐÅ°ÁöÀÇ ±âÁØ µð·ºÅ丮·Î »ç¿ë. Do you want to install the PC-NFS daemon ? y Do you want to install the Console Messaging server ? y Do you want to install PC-NFS licensing ? y Do you want to install the PC-NFS Slip Driver ? y How many slip interfaces do you want to configure ? 8 ## ÆÐÅ°Áö Á¤º¸ ó¸®Áß. ## ½Ã½ºÅÛ Á¤º¸ ó¸®Áß. 9°³ ÆÐÅ°Áö °æ·Î¸íµéÀÌ ÀÌ¹Ì ÀûÀýÈ÷ ¼³Ä¡µÇ¾úÀ½. ## µð½ºÅ© °ø°£ ¿ä±¸ °ËÁõÁß. ## ÀÌ¹Ì ¼³Ä¡µÇ¾îÀÖ´Â ÆÐÅ°Áöµé°úÀÇ Ãæµ¹¿©ºÎ¸¦ È®ÀÎÇÏ°í ÀÖ½À´Ï´Ù. ´ÙÀ½ÀÇ ÆÄÀϵéÀÌ ÀÌ¹Ì ½Ã½ºÅÛ»ó¿¡ ¼³Ä¡µÇ¾î ÀÖÀ¸¸ç ´Ù¸¥ ÆÐÅ°Áöµé¿¡ ÀÇÇØ »ç¿ëµÇ°í ÀÖ½À´Ï´Ù: /etc <¼Ó¼º º¯°æ¸¸ °¡´ÉÇÔ> /usr <¼Ó¼º º¯°æ¸¸ °¡´ÉÇÔ> ¸ð¼øµÈ ÆÄÀÏÀ» ¼³Ä¡ÇϽðڽÀ´Ï±î [y,n,?,q] y ## setuid/setgid ÇÁ·Î±×·¥ Á¡°ËÁß. ÀÌ ÆÐÅ°Áö¿¡´Â ¼³Ä¡°úÁ¤Áß ¼öÆÛ »ç¿ëÀÚ ±ÇÇÑÀ¸·Î ½ÇÇàµÉ ½ºÅ©¸³Æ®¸¦ °¡Áö°í ÀÖ½À´Ï´Ù. ÀÌ ÆÐÅ°ÁöÀÇ ¼³Ä¡ÀÛ¾÷À» °è¼ÓÇÏ¿© ÁøÇà½ÃÅ°½Ã±æ ¿øÇϽʴϱî [y,n,?] y PC-NFS Daemons¸¦ ·Î ¼³Ä¡Áß ## ¼³Ä¡ÀÌÀü ½ºÅ©¸³Æ®¸¦ ½ÇÇàÁß. [ Ŭ·¡½º °ËÁõÁß ] ............................... /opt/SUNWpcnfs/bin/grablicense /opt/SUNWpcnfs/help/search.info /opt/SUNWpcnfs/sbin/rpc.plumd [ Ŭ·¡½º °ËÁõÁß ] /etc/dslipuser /etc/mkslipuser /etc/slattach /etc/sldetach /etc/sunslip /usr/kernel/drv/sl.conf [ Ŭ·¡½º °ËÁõÁß ] ## ¼³Ä¡ÈÄ ½ºÅ©¸³Æ®¸¦ ½ÇÇàÁß. ........... Adding slip driver.... Updating /etc/devlink.tab.... Saving existing /etc/gateways as /etc/gateways.pre-pcnfs.... Updating /etc/gateways.... Saving existing /usr/sbin/in.rdisc as /usr/sbin/in.rdisc.pre-pcnfs.... Installation complete.... NOTE: YOU NEED TO REBOOT YOUR MACHINE BEFORE RUNNING SLIP. °¡ ¼º°øÀûÀ¸·Î ¼³Ä¡µÊ. ´ÙÀ½ ÆÐÅ°Áö¸¦ »ç¿ëÇÒ¼ö ÀÖÀ½: 1 SUNWpcnfs PC-NFS Daemons (sparc) 1.0 ó¸®ÇϽðíÀÚ ÇÏ´Â ÆÐÅ°Áö(µé)À» ¼±ÅÃÇϽʽÿÀ (¸ðµç ÆÐÅ°ÁöµéÀ» ó¸®ÇϽ÷Á¸é 'all'À» ¼±ÅÃÇϽʽÿÀ). (default: all) [?,??,q]: q # pkginfo |grep SUNWpcnfs networking SUNWpcnfs PC-NFS Daemons #sync;halt; OK boot -r ........... 3. Server Configuration hyundai3#hyundai3# more /etc/hosts # # Internet host table # 127.0.0.1 localhost 203.240.159.35 hyundai3 loghost 203.240.159.81 wybee 203.240.150.80 h-ppp 203.240.150.81 w-ppp 203.240.151.81 w-sl 203.240.151.80 h-sl hyundai3# more S33slip #!/bin/csh set -x /etc/slattach /dev/term/a h-sl w-sl 9600 & hyundai3# cd /etc/saf hyundai3# ls _cmdpipe _sacpipe _sactab _sysconfig tcp zsmon hyundai3# cd zsmon hyundai3# ls _pid _pmpipe _pmtab hyundai3# more _pmtab # VERSION=1 ttya:ux:root:reserved:reserved:reserved:/dev/term/a:b::/usr/bin/login::9600: ldterm,ttcompat:login\: :::n:# 4. Client Configuration 1) /etc/hosts ¿¡ µî·Ï. wybee# more /etc/hosts # # Internet host table # 127.0.0.1 localhost 203.240.159.81 wybee loghost 203.240.159.35 hyundai3 203.240.151.81 w-sl 203.240.151.80 h-sl wybee# cd /etc/rc3.d wybee# more S33slip #!/bin/csh set -x /etc/slattach /dev/term/a w-sl h-sl 9600 & wybee#wybee# cd /etc/saf wybee# ls _cmdpipe _sacpipe _sactab _sysconfig zsmon wybee# cd zsmon wybee# ls _pid _pmpipe _pmtab wybee# more _pmtab # VERSION=1 ttya:ux:root:reserved:reserved:reserved:/dev/term/a:b::/usr/bin/login: :9600:ldterm,ttcompat:login\: :::n:# 5. Rebooting ÈÄ , È®ÀÎÇÒ »çÇ×. 1) server status (hyundai3) hyundai3# ifconfig -a lo0: flags=849 mtu 8232 inet 127.0.0.1 netmask ff000000 le0: flags=863 mtu 1500 inet 203.240.159.35 netmask ffffff00 broadcast 203.240.159.255 ether 0:0:3b:80:17:dc sl0: flags=8d1 mtu 1006 inet 203.240.151.80 --> 203.240.151.81 netmask ffffff00 ether 0:0:0:0:0:0 hyundai3# netstat -i Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs Collis Queue lo0 8232 loopback localhost 9 0 9 0 0 0 le0 1500 203.240.159.0 hyundai3 3705 0 1190 1 14 0 sl0 1006 w-sl h-sl 1838 0 1577 0 0 0 hyundai3# cd /etc hyundai3# ls -al devlink* -rw-r--r-- 1 root sys 4011 5¿ù 13ÀÏ 16:39 devlink.tab -rw-r--r-- 1 root other 3983 5¿ù 13ÀÏ 16:39 devlink.tab.pre-pcnfs hyundai3# tail -f devlink.tab ....................... type=ddi_pseudo;name=sl \M0 hyundai3# cd /dev hyundai3# ls -al sl* lrwxrwxrwx 1 root other 28 5¿ù 13ÀÏ 16:39 sl -> ../devices/pseudo/clone@0:sl hyundai3# hyundai3# cd /devices/pseudo hyundai3# pwd /devices/pseudo hyundai3# ls -al *sl crw------- 1 root sys 11, 55 5¿ù 13ÀÏ 16:39 clone@0:sl hyundai3# ps -ef |grep slattach root 650 1 0 08:49:16 ? 0:00 /etc/slattach /dev/term/a h-sl w-sl 9600 2) client status (wybee) wybee# ifconfig -a lo0: flags=849 mtu 8232 inet 127.0.0.1 netmask ff000000 le0: flags=863 mtu 1500 inet 203.240.159.81 netmask ffffff00 broadcast 203.240.159.255 ether 0:3b:80:46:37:2a sl0: flags=8d1 mtu 1006 inet 203.240.151.81 --> 203.240.151.80 netmask ffffff00 ether 0:0:0:0:0:0 wybee# netstat -i Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs Collis Queue lo0 8232 loopback localhost 95 0 95 0 0 0 le0 1500 203.240.159.0 wybee 573 0 675 1 70 0 sl0 1006 h-sl w-sl 1755 0 2019 0 0 0 wybee# wybee# cd /etc/ wybee# ls -al devlink* -rw-r--r-- 1 root sys 4011 5¿ù 14ÀÏ 08:20 devlink.tab -rw-r--r-- 1 root other 3983 5¿ù 14ÀÏ 08:20 devlink.tab.pre-pcnfs wybee# wybee# tail -f devlink.tab ............................ type=ddi_pseudo;name=sl \M0 wybee# pwd /dev wybee# ls -al sl* lrwxrwxrwx 1 root other 28 5¿ù 14ÀÏ 08:20 sl -> ../devices/pseudo/clone@0:sl wybee# pwd /devices/pseudo wybee# ls -al *sl crw-rw-rw- 1 root sys 11, 55 5¿ù 14ÀÏ 08:20 clone@0:sl wybee# ps -ef |grep slattach root 545 1 0 08:46:03 pts/4 0:00 /etc/slattach /dev/term/a w-sl h-sl 9600 6. Network Test ( ping, telnet, rlogin, rcp) and Routing. 1) network test (hyundai3) hyundai3#hyundai3# rlogin w-sl Last login: Tue May 14 08:57:15 from h-sl Sun Microsystems Inc. SunOS 5.5 Generic November 1995 wybee# exit hyundai3# telnet w-sl Trying 203.240.151.81... Connected to w-sl. Escape character is '^]'. UNIX(r) System V Release 4.0 (wybee) login: root Last login: Tue May 14 09:07:33 from h-sl Sun Microsystems Inc. SunOS 5.5 Generic November 1995 2) network test (wybee) wybee# rlogin h-sl Last login: Sun May 14 09:01:44 from w-sl Sun Microsystems Inc. SunOS 5.5 Generic November 1995 You have mail. hyundai3# exit wybee# telnet h-sl Trying 203.240.151.80... Connected to h-sl. Escape character is '^]'. UNIX(r) System V Release 4.0 (hyundai3) login: root Password: Last login: Sun May 14 09:05:31 from w-sl Sun Microsystems Inc. SunOS 5.5 Generic November 1995 You have mail. hyundai3# 7. Appendix A: Slip connection PC and W/S SUBJECT: slip connection PC(pcnfs 4.0) and W/S(Slip5.1 with Solaris2.3) MEANING OF THIS MEMO: 0.Configuration 1.roche-sl(W/S) set up 0.Configuration ---------- | hyper | | prter | ---------- | --------- ------------ | pc-sl |<------------------------>| roche-sl | --------- ------------ | | |______|____________________________________|________________| | | 1.roche-sl(W/S) set up 1-1/etc/hosts 1.roche-sl# more /etc/hosts # # Internet host table # 127.0.0.1 localhost loghost 134.70.84.3 roche-sl 134.70.84.11 pc-sl 1-2 pcnfsd Install(lsh038 ÂüÁ¶) 1-3 rebootÈÄ verifying SLIP # pmadm -l (listing port env) # kill -9 port process id(ttya or ttyb) # kill -9 slattatch pid # restart port process ( use admintool ) # restart slattach (slattach ttya hostname pcname bourd-rate &) # netstat -i ( sl0 display? - yes : OK ) 2. PC setup c:> cd nfs c:> type hosts 127.0.0.1 localhost loghost 134.70.84.3 roche-sl 134.70.84.11 pc-sl c:> reboot PC username:okee passw :enter passwd Starting Printer Server <- this mesg È®ÀÎ c:> copy file lpt1 ( local test - yes? : OK ) 3. remote printing using PC Printer Server 3-1 PC printer assign on roche-sl # admintool ( printer -> remote printer -> remote server: pc name, printer name:pc prter name(lpt1)) # lp filename -d lpt1 # B: SunSolve infodoc for Slip connection PC and W/S SunSolve Document infodoc/10020 SYNOPSIS: set up 5.1 serial line slip with solaris DETAIL DESCRIPTION: ==INSTRUCTION FOR SETTING UP PCNFS 5.0/5.1 SERIAL LINE SLIP WITH SOLARIS 2.3 ======================================================= NOTE: NEED TO INSTALL PATCH 101275-02 IN ORDER FOR IT TO WORK. DON'T FORGET TO REBOOT SYSTEM AFTER INSTALLI NGTHE PATCH. ALL THE PAGE NUMBERS REFERENCED HERE BELONG TO PCNFS 5.0 DOCUMENTATION SINCE PCNFS 5.1 DOCUMENTATION WAS NOT AVAILABLE AT THE TIME THIS SRDB WAS CREATED. 1> Install pcnfs slip driver on the unix server. (a) If user has already installed pcnfsd daemon on this server, execute "pkgadd SUNWpcnfs" at the /opt directory, and then answer "y" to "Do you want to install the PC-NFS Slip Driver ? " OR (b) If user hasn't installed the pcnfs packageon this server, follow the installation instructions, PC-NFS Administrator's Guide,p.32, "Installing PC-NFS Daemons under SunOS 5.x Software" section. Then answer "y" to questions: "Do you want to install the PC-NFS Daemon?" as well as "Do you want to install the PC-NFS Slip Driver?" 2> Refer to PC-NFS Serial Communication Guide, p.22, for "Example of SLIP Network Installation on a Solaris System" for another example. Here is a simpler example: ---------------------- serial cable ------------ | unix, unix-slip | ================ | pc-slip | (user "tester") ---------------------- with null-modem ------------ ttya com2 ======= ON SUN ======= /etc/hosts ========== # # Internet host table # 127.0.0.1 localhost loghost 129.140.16.1 unix 129.140.254.1 unix-slip 129.140.254.2 pc-slip NOTE: MAKE SURE THERE ARE NO EMPTY LINES IN THE FOLLOWING TWO FILES, OTHERWISE, YOU WILL POSSIBLY GET SEGMENTATION FAULT ERROR MESSAGE LATER ON. /etc/slip.config ================ unix-slip unix-slip unix-slip unix-slip /etc/slip.hosts =============== pc-slip tester (If more users will be allowed to login, just add more entries in this file.) 3> PC-NFS Serial Communication Guide, p.25, shows how to "verify the new installation." Following is a similar procedure with the example's parameters and a few minor changes. (a) Log in to "unix" as superuser. (b) Disable logins on the port. (It doesn't matter if the serial cable is already connected to the tty port or not.) (i) Find out current status. # pmadm -l PMTAG PMTYPE SVCTAG FLGS ID zsmon ttymon ttya u root /dev/term/a I - /usr/bin/login - 9600 ldterm,ttcompat ttya login: - tvi925 y # (ii) Disable login on port which will be used (i.e., ttya in example). #pmadm -d -p zsmon -s ttya (iii) Use "pmadm -l" to verify that port is disabled (should have "x" at FLGS field). # pmadm -l PMTAG PMTYPE SVCTAG FLGS ID zsmon ttymon ttya ux root /dev/term/a I - /usr/bin/login - 9600 ldterm,ttcompat ttya login: - tvi925 y # (c) Make sure there is no slattach process running at this time by using "ps" command. (d) Start up the slip interface: #/etc/slattach ttya unix-slip pc-slip 9600& If it works correctly, "ifconfig -a" should show an extra interface "sl0." #ifconfig -a lo0: flags=849 mtu 8232 inet 127.0.0.1 netmask ff000000 le0: flags=863 mtu 1500 inet 129.140.16.1 netmask ffffff00 broadcast 129.140.16.255 sl0: flags=8d1 mtu 1006 inet 129.140.254.1 --> 129.140.254.2 netmask ffff0000 (e) Try to ping the pc. #ping pc-slip no answer from pc-slip (it should time out) (f) Check to see if there are even any output packets at all for sl0 interface. #netstat -i Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs Collis Queue lo08232 loopback localhost 3782 0 3782 0 0 0 le0 1500 b7-support-d server 13988 0 5132 0 118 0 sl0 1006 pc-slip server-slip 0 0 21 0 0 0 THIS VERIFIES THAT DEVICE SL0 IS PRESENT AND THAT PACKETS HAVE BEEN SENT OUT. 4> reboot the pc with the following configuration files ====== ON PC ====== config.sys ========== files=40 buffers=20 device=c:\dos\himem.sys device=c:\dos\emm386.exe noems lastdrive=P dos=high,umb shell=c:\dos\command.com c:\dos /p/e:1024 stacks=9,256 device=c:\nfs\pcnfs.sys /x device=c:\nfs\sockdrv.sys device=c:\nfs\slip.sys /P2 /B9600 autoexec.bat ============ @echo off prompt $p$g path=c:\nfs;c:\win;c:\dos;c:set te mp=c:\temp set TZ=PST8PDT set nfsdrive=c set nfspath=c:\nfs set tn_dir=c:\nfs\telnet c:\nfs\prt * c:\nfs\net init c:\nfs\rtm hosts ===== 129.140.16.1 unix 129.140.254.1 unix-slip 129.140.254.2 pc-slip network.bat =========== net start rdr pc-slip * When pc boots up with these configuration files, it should be able to ping both "unix" and "unix-slip." And "unix" should not time out when it pings the pc. NOTE: > The above configuration hasn't been set up to use NIS, so any hosts that user wants to access from the pc MUST be specified in the pc's local hosts file. > The above network.bat file contains only one line but when the slip configuration is working, user can add more entries to the network.bat file such as: net ni sdomain net nisset net pcnfsd net name etc (In this case, the nis server and pcnfsd server must be specified in the pc's hosts file.) > For the above example, le0 interface has a netmask of 255.255.255.0 (i.e., ffffff00) in server "unix." And its ip address is a class B network (i.e., 129.140.16.1). Therefore, the ip address for the slip gateway must be 129.140.x.y , where x is another network number which cannot be 16, or any numbers which are being used by another department; y is just the host number which can be 1-254. For more detail info about how to choose the ip address, consult with the system administrator or refer to the System and Network Adminstration Guide from Solaris. PRODUCT AREA: PC PRODUCT: PC NFS SUNOS RELEASE: Solaris 2.3 HARDWARE: any Revision History ÀÛ¼ºÀÏÀÚ : 96.06.12 ÀÛ¼ºÀÚ : À̽ÂÈÆ ¼öÁ¤ÀÏÀÚ : ¼öÁ¤ÀÚ