Subject : PPP,SLIP,UUCP troubleshooting Description : CONTENTS OF THIS MEMO : SUN CS Tech Hour 1. PPP 2. SLIP 3. UUCP 1. PPP 1) zsmon 으로 여의치않아 delete 후 zsmon0 생성후 테스트 OK lion# pmadm -l PMTAG PMTYPE SVCTAG FLGS IDzsmon0 ttymon ttya u root /dev/term/a b - /usr/bin/login - 9600 ldterm,ttcompat login: - - n # * client service disable 여서 문제가 되지않지만 server 는 port enable 이다. 즉, 우선 port a 를 disable 하고 admintool 또는 command 로 zsmon0 를 하나 만들어 사용한다. 2) zsmon0 delete 후 zsmon 생성후 다시 테스트 OK lion# pmadm -l PMTAG PMTYPE SVCTAG FLGS ID zsmon ttymon ttya u root /dev/term/a b - /usr/bin/login - 9600 ldterm,ttcompat login: - - n # 3) zsmon 생성후 PMSPECIFIC value change test 3-0) no services is certainly failed. 3-1) I (초기화만) (.../dev/term/a:I::/usr/bin/login...) : Failure 3-2) (terminal hardwire) (../dev/term/a:::/usr/bin/login..) : Failure 3-3) (dial in only) (../dev/term/a:::/usr/bin/login..) : OK console 에 "lion# NOTICE: zs3:ring buffer overflow" messages display 3-4) b (bi-directional) (../dev/term/a:b::/usr/bin/login..) : OK 4) 결론은 port monitor 의 값이 중요하다. 예를 들면 asppp.log 에서의 delock line (term/a), Call failed: LOGIN FAILED, timed out 같은 메세지는 두가지경우에 나타난다. 첫째는 port monitor 값이 적절치 않을때이고 나머지 하나는 시스템이 죽어있을때(rebooting 중) 이다. 5) Log 5-1)server log lion# pwd / lion# ping l-ppp l-ppp is alive lion# ping -s l-ppp PING l-ppp: 56 data bytes 64 bytes from l-ppp (203.251.151.6): icmp_seq=0. time=2. ms 64 bytes from l-ppp (203.251.151.6): icmp_seq=1. time=1. ms 64 bytes from l-ppp (203.251.151.6): icmp_seq=2. time=1. ms ^C ----l-ppp PING Statistics---- 3 packets transmitted, 3 packets received, 0% packet loss round-trip (ms) min/avg/max = 1/1/2 lion# lion# pmadm -l PMTAG PMTYPE SVCTAG FLGS ID zsmon ttymon ttya u root /dev/term/a bc - /usr/bin/login - 9600 ldterm,ttcompat login: - tvi925 y # lion# ifconfig -a lo0: flags=849 mtu 8232 inet 127.0.0.1 netmask ff000000 le0: flags=863 mtu 1500 inet 203.251.150.6 netmask ffffff80 broadcast 203.251.150.127 ether 8:0:20:16:52:25 ipdptp0: flags=8d1 mtu 1500 inet 203.251.151.6 --> 203.251.151.5 netmask ffffff00 ether 0:0:0:0:0:0 lion# more /etc/hosts # # Internet host table # 127.0.0.1 localhost 203.251.150.6 lion.sun.co.kr lion loghost 203.251.150.5 fox.sun.co.kr fox ########ppp test by lsh######### 203.251.151.5 f-ppp 203.251.151.6 l-ppp ########ppp test by lsh######### 192.9.200.1 lion-x25 192.9.200.2 fox-x25 203.251.150.10 monkey 203.251.150.4 kingkong 203.251.150.7 tiger lion# netstat -rn Routing Table: Destination Gateway Flags Ref Use Interface -------------------- -------------------- ----- ----- ------ --------- 127.0.0.1 127.0.0.1 UH 0 1 lo0 203.251.151.6 203.251.150.5 UGH 0 0 203.251.151.5 203.251.151.6 UH 3 1 ipdptp0 203.251.150.0 203.251.150.6 U 3 2 le0 224.0.0.0 203.251.150.6 U 3 0 le0 lion# more /etc/gateways norip ipdptp0 lion# 5-2) client log fox# ping f-ppp f-ppp is alive fox# ping -s l-ppp PING l-ppp: 56 data bytes 64 bytes from l-ppp (203.251.151.6): icmp_seq=0. time=277. ms 64 bytes from l-ppp (203.251.151.6): icmp_seq=1. time=261. ms 64 bytes from l-ppp (203.251.151.6): icmp_seq=2. time=261. ms ^C ----l-ppp PING Statistics---- 3 packets transmitted, 3 packets received, 0% packet loss round-trip (ms) min/avg/max = 261/266/277 fox# fox# pmadm -l No services defined fox# ifconfig -a lo0: flags=849 mtu 8232 inet 127.0.0.1 netmask ff000000 le0: flags=863 mtu 1500 inet 203.251.150.5 netmask ffffff80 broadcast 203.251.150.127 ether 8:0:20:79:70:54 ipdptp0: flags=8d1 mtu 1500 inet 203.251.151.5 --> 203.251.151.6 netmask ffffff00 ether 0:0:0:0:0:0 fox# fox# more /etc/hosts 127.0.0.1 localhost loghost timehost 127.0.0.1 NewNetra # Entered by SUNWnetA 203.251.150.1 sunsolve 203.251.150.2 korea 203.251.150.5 fox 203.251.150.6 lion 203.251.150.7 tiger 192.9.200.1 lion-x25 192.9.200.2 fox-x25 203.251.150.10 monkey 203.251.150.4 kingkong ########ppp test by lsh######### 203.251.151.5 f-ppp 203.251.151.6 l-ppp ########ppp test by lsh######### fox# fox# netstat -rn Routing Table: Destination Gateway Flags Ref Use Interface -------------------- -------------------- ----- ----- ------ --------- 127.0.0.1 127.0.0.1 UH 0 23599 lo0 203.251.151.5 203.251.150.6 UGH 0 0 203.251.151.6 203.251.151.5 UH 3 3 ipdptp0 203.251.150.0 203.251.150.5 U 3 3 le0 224.0.0.0 203.251.150.5 U 3 0 le0 fox# more /etc/gateways norip ipdptp0 fox# 2. SLIP 1) 양쪽모두 no services, or port disable. fox# ps -ef |grep sla .... /etc/slattach /dev/term/a f-sl l-sl 9600 fox# fox# pmadm -l No services defined fox# ifconfig -a lo0: flags=849 mtu 8232 inet 127.0.0.1 netmask ff000000 le0: flags=863 mtu 1500 inet 203.251.150.5 netmask ffffff80 broadcast 203.251.150.127 ether 8:0:20:79:70:54 sl0: flags=8d1 mtu 1006 inet 203.251.152.5 --> 203.251.152.6 netmask ffffff00 ether 0:0:0:0:0:0 fox# 2) Network test fox# ping l-sl l-sl is alive fox# fox# netstat -rn Routing Table: Destination Gateway Flags Ref Use Interface -------------------- -------------------- ----- ----- ------ --------- 127.0.0.1 127.0.0.1 UH 0 147 lo0 203.251.152.5 203.251.150.6 UGH 0 0 203.251.152.6 203.251.152.5 UH 3 1 sl0 203.251.150.0 203.251.150.5 U 3 0 le0 224.0.0.0 203.251.150.5 U 3 0 le0 fox# fox# more /etc/hosts 127.0.0.1 localhost loghost timehost 127.0.0.1 NewNetra # Entered by SUNWnetA 203.251.150.1 sunsolve 203.251.150.2 korea 203.251.150.5 fox 203.251.150.6 lion 203.251.150.7 tiger 192.9.200.1 lion-x25 192.9.200.2 fox-x25 203.251.150.10 monkey 203.251.150.4 kingkong ########ppp test by lsh######### 203.251.151.5 f-ppp 203.251.151.6 l-ppp 203.251.152.5 f-sl 203.251.152.6 l-sl ########ppp test by lsh######### fox# fox# more /etc/gateways norip sl0 norip sl1 norip sl2 norip sl3 norip sl4 norip sl5 norip sl6 norip sl7 fox# 3. UUCP 1) client 의 port monitor 값 fox# pmadm -l No services defined 2) server 의 port monitor 값 (bi-directional) lion# pmadm -l PMTAG PMTYPE SVCTAG FLGS ID zsmon ttymon ttya u root /dev/term/a b - /usr/bin/login - 9600 ldterm,ttcompat login: - - n # 3) Server 쪽의 /etc/uucp/Systems file 이 없거나 내용이 잘못되면 다음과 같은 error messages 가 발생함. fox# Uutry -r lion /usr/lib/uucp/uucico -r1 -slion -f -x5 >/tmp/lion 2>&1& tmp=/tmp/lion force flag set (ignoring uucico limit) mchFind called (lion) name (DEFAULT) not found; return FAIL name (lion) not found; return FAIL name (DEFAULT) not found; return FAIL name (OTHER) not found; return FAIL attempting to open /var/uucp/.Admin/account stat /var/spool/uucp/lion/Z ulockf name /var/spool/locks/LCK..lion.Z Job grade to process - Z conn(lion) Trying entry from '/etc/uucp/Systems' - device type Direct. Device Type Direct wanted Trying device entry 'term/a' from '/etc/uucp/Devices'. processdev: calling setdevcfg(uucico, Direct) gdial(direct) called Trying caller script 'direct' from '/etc/uucp/Dialers'. expect: ("") got it expect: ("") got it getto ret 7 expect: ("") got it expect: (in:) ^M^M^Jlogin:got it sendthem (wybee^M) expect: (word:) wybee^M^JPassword:got it sendthem (wybee123^M) Login Successful: System=lion msg-RYou are unknown to me HANDSHAKE FAILED: REMOTE DOES NOT KNOW ME exit code 101 Conversation Complete: Status FAILED 즉, 첫번째는 /etc/uucp/Systems 에 내용이 없는경우 두번째는 /etc/uucp/Systems 가 wybee Never 로서 여기서 wybee 는 login account 임. 따라서 HANDSHAKE FAILED 가 일어나지않기위해서는 다음과 같이 되어야함. lion# more /etc/uucp/Systems ...... # # Machine-Name Time Type Class Phone Login # # Machine-Name node name of the remote machine # Time day-of-week and time-of-day when you may call # (e.g., MoTuTh0800-1700). Use "Any" for any day. # Use "Never" for machines that poll you, but that # you never call directly. # Type device type # Class transfer speed # Phone phone number (for autodialers) or token (for # data switches) # Login login sequence is composed of fields and subfields # in the format "[expect send] ...". The expect field # may have subfields in the format "expect[-send-expect]".# # Example: # cuuxb Any ACU 1200 chicago8101242 in:--in: nuucp word: panzer # # See the System and Network Administration Manual for details #wybee Never fox Never 정상적인 messages 는 다음과 같다. fox# Uutry -r lion /usr/lib/uucp/uucico -r1 -slion -f -x5 >/tmp/lion 2>&1& tmp=/tmp/lion force flag set (ignoring uucico limit) mchFind called (lion) name (DEFAULT) not found; return FAIL name (lion) not found; return FAIL name (DEFAULT) not found; return FAIL name (OTHER) not found; return FAIL attempting to open /var/uucp/.Admin/account stat /var/spool/uucp/lion/Z ulockf name /var/spool/locks/LCK..lion.Z Job grade to process - Z conn(lion) Trying entry from '/etc/uucp/Systems' - device type Direct. Device Type Direct wanted Trying device entry 'term/a' from '/etc/uucp/Devices'. processdev: calling setdevcfg(uucico, Direct) gdial(direct) called Trying caller script 'direct' from '/etc/uucp/Dialers'. expect: ("") got it expect: ("") got it getto ret 7 expect: ("") got it expect: (in:) ^M^M^Jlogin:got it sendthem (wybee^M) expect: (word:) wybee^M^JPassword:got it sendthem (wybee123^M) Login Successful: System=lion msg-ROK -R -U0x3fffff -x5 Rmtname lion, Restart YES, Role MASTER, Ifn - 7, Loginuser - root rmesg - 'P' got PgGetxf wmesg 'U'g Proto started g *** TOP *** - Role=1, setline - X Request: lion!/.cshrc --> fox!/ (root) Failed: Access Denied--File: /.cshrc *** TOP *** - Role=1, setline - X Finished Processing file: /var/spool/uucp/lion/Z/C.lionZ73cf Request: lion!/aaa --> fox!/ (root) Failed: Access Denied--File: /aaa *** TOP *** - Role=1, setline - X Finished Processing file: /var/spool/uucp/lion/Z/C.lionZ73d0 Request: lion!/var/spool/uucpublic/aaa --> fox!/var/spool/uucppublic/ (root) wrktype - R wmesg 'R' /var/spool/uucpublic/aaa /var/spool/uucppublic/ root -dc dummy 777 root D.fox73d1825 rmesg - 'R' got RN2 PROCESS: msg - RN2 RCVFILE: mailopt 0, statfopt 0 *** TOP *** - Role=1, setline - X Finished Processing file: /var/spool/uucp/lion/Z/C.lionZ73d1 Request: lion!/var/spool/uucppublic/aaa --> fox!/var/spool/uucppublic/bbb (root) wrktype - R wmesg 'R' /var/spool/uucppublic/aaa /var/spool/uucppublic/bbb root -dc dummy 777 root D.fox73d2a47 rmesg - 'R' got RN2 PROCESS: msg - RN2 RCVFILE: mailopt 0, statfopt 0 *** TOP *** - Role=1, setline - X Finished Processing file: /var/spool/uucp/lion/Z/C.lionZ73d2 Request: fox!/var/spool/uucppublic/fox.cshrc --> lion!/var/spool/uucppublic/ (root) wrktype - S wmesg 'S' /var/spool/uucppublic/fox.cshrc /var/spool/uucppublic/ root -dc D.lion73d3d8b 666 root dummy rmesg - 'S' got SY 0x0 PROCESS: msg - SY 0x0 SNDFILE: -> 172 / 0.010 secs, 17200 bytes/sec rmesg - 'C' got CY PROCESS: msg - CY RQSTCMPT: mailopt 0, statfopt 0 *** TOP *** - Role=1, setline - X Finished Processing file: /var/spool/uucp/lion/Z/C.lionZ73d3 stat /var/spool/uucp/lion/Z ulockf name /var/spool/locks/LCK..lion.Z Job grade to process - wmesg 'H' rmesg - 'H' got HY PROCESS: msg - HY HUP: wmesg 'H'Y cntrl - 0 send OO 0,exit code 0 Conversation Complete: Status SUCCEEDED 4) 통상 remote nodename 을 많이사용하므로 login account 를 wybee 대신 fox 로 바꾸었음. 5) test fox# pwd /var/spool/uucppublic fox# ls -al 총 6 drwxrwxrwt 2 uucp uucp 512 5월 28일 12:29 ./ drwxrwxr-x 9 root bin 512 1995년 2월 4일 ../ -rwxrwxrwx 1 root other 172 5월 28일 12:29 fox.cshrc* fox# uucp fox.cshrc lion\!/var/spool/uucppublic/. fox# uustat lionZ73de 05/28-15:44 S lion root 172 /var/spool/uucppublic/fox.cshrc fox# !! uustat lionZ73de 05/28-15:44 S lion root 172 /var/spool/uucppublic/fox.cshrc fox# !! uustat lionZ73de 05/28-15:44 S lion root 172 /var/spool/uucppublic/fox.cshrc fox# fox# !! uustat fox# uustat fox# fox#uulog (/var/uucp/.Log/uucico/lion file ) .... uucp lion (5/28-15:43:26,1224,0) OK (startup) root lion lionZ73dd (5/28-15:43:26,1224,0) REQUEST (fox!/var/spool/uucppublic/fox.cshrc --> lion!/var/spool/uucppublic/ (root)) uucp lion (5/28-15:43:27,1224,1) OK (conversation complete term/a 12) uucp lion (5/28-15:45:03,1259,0) SUCCEEDED (call to lion - process job grade Z ) uucp lion (5/28-15:45:04,1259,0) OK (startup) root lion lionZ73de (5/28-15:45:04,1259,0) REQUEST (fox!/var/spool/uucppublic/fox.cshrc --> lion!/var/spool/uucppublic/ (root)) uucp lion (5/28-15:45:05,1259,1) OK (conversation complete term/a 12) fox# Revision History 작성일자 : 96.06.12 작성자 : 이승훈 수정일자 : 수정자