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 ID    
zsmon0 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
ÀÛ¼ºÀÚ : À̽ÂÈÆ

¼öÁ¤ÀÏÀÚ : 
¼öÁ¤ÀÚ