Subject : Async PPP setup for Solaris 2.5 (Direct by null modem cable)
Description :
SUBJECT: Async PPP setup for Solaris 2.5 (Direct by null modem cable)
CONTENTS OF THIS MEMO : SUN CS Tech Hour Áغñ.
0. Introduction ( Solaris PPP FAQs and man aspppd, ppp)
1. Test Environment
2. Server System
3. Client System
4. Rebooting ÈÄ È®ÀÎÇÒ »çÇ×.
5. Network Test ( ping, telnet, rlogin, rcp) and Routing.
6. Internet Connection and W.W.W test
7. Trouble shooting.
8. Q/A
1) How can I get PPP to always keep the line active?
2) what does in.routed do?
3) what does in.rdisc do?
4) Is the 'call cleanup(0)' message an error?
9. Appendix
A:PC configuration to use PC/TCP PPP module.
B:Async PPP setup for Solaris 2.5 with modem.
0. Introduction ( Solaris PPP FAQs)
1)PPP ¶õ ¹«¾ùÀΰ¡ ?
PPP ´Â Point-to-point protocol À» ÀǹÌÇÏ¿© point-to-point link ¸¦
»ç¿ëÇÏ¿© netwokr packet À» Àü¼ÛÇϴµ¥ ÀÖ¾î¼ ¾÷°èÇ¥ÁØ ÀÌ´Ù.
SUN Àº PC-NFS, Sunlink PPP, Sunlink ISDN ¿¡¼ ¸¹Àº PPP ¸¦ ±¸ÇöÇÏ¿´´Ù.
±×·¯³ª ¿©±â¼´Â ´ÜÁö solaris ¿Í °ü°èµÇ´Â bundled async PPP ¿¡ ´ëÇؼ¸¸
¾ð±ÞÇÏ°Ú´Ù.
±âº»ÀûÀÎ PPP ¿¡´ëÇÑ information Àº ´ÙÀ½¿¡¼ ãÀ»¼ö°¡ ÀÖ´Ù.
* SunOs 5.X Administering TCP/IP and PPP
* TCP/IP Network Administration Guide
* The man pages aspppd(1M) and ppp(7).
PPP ¿¡°üÇÑ ´õ¸¹Àº Á¤º¸¸¦ ¿øÇÑ´Ù¸é RFC(Request for Comments) 1331ÂüÁ¶.
( http://www.cis.ohio-state.edu/htbin/rfc/rfc1331.html)
2)PPPÀÇ ±âº»ÀûÀÎ ±¸¼º¿ä¼Ò.
* /usr/sbin/aspppd : PPP ¿¬°áÀ» ÃʱâÈ Çϴµ¥ »ç¿ëµÇ´Â link manager.
¹°¸®ÀûÀ¸·Î ¿¬°áÀÌ µÇÁö¾ÊÀº PPP inetface ¿¡ packets ÀÌ queuing
ÀÌ µÇ¾úÀ»¶§ link manager ´Â connection À» ÃʱâÈÇϰԵȴÙ.
* /usr/sbin/aspppls : dial-in PPP ¿¬°áÀ» À§ÇÑ login shell ·Î½á PPP login
service °¡ invoke µÈ´Ù. inbound PPP ¿¬°áÀ» ÃʱâÈÇϴµ¥
/tmp/.asppp.fifo ¸¦ ÅëÇÏ¿© aspppls °¡ aspppd ¿Í communication ÇÔ.
( PPP server system »ó¿¡¼ ppp user login shell ·Î »ç¿ëµÊ.)
* /etc/asppp.cf : ±¸µ¿½Ã¿¡ aspppd ¿¡ ÀÇÇØ ÀÐÇôÁö´Â ȯ°æÈÀÏ.
PPP ¿¬°á(path) ¸¦ Á¤ÀÇÇÏ´Â ¿ä¼Ò¿Í interface ¸¦ Á¤ÀÇÇÔ.
* /etc/log/asppp.log : PPP log file. °¢ inbound outbound ¿¬°á¿¡ °üÇÑ log
information À» Æ÷ÇÔÇÏ°í ÀÖ´Ù. aspppd °¡ high level ÀÇ debug option
À¸·Î ±¸µ¿½Ã link °¡ ¿Ã¶ó¿ÔÀ»¶§ÀÇ ¹ß»ýÇÏ´Â PPP negotiation »Ó¸¸¾Æ´Ï¶ó ´Ù¸¥ ½Ã½ºÅÛÀ¸·Î dial out ÇÒ caller scripts ¿¡ °üÇÑ Áß¿äÇÑ Á¤º¸¸¦
°¡Áö°í ÀÖ´Ù.
* /etc/init.d/asppp : system ÀÌ ±¸µ¿½Ã¿¡ ¼öÇàµÇ´Â startup scrip.
¾Æ·¡¿Í °°Àº ¸í·É¾î·Î »ç¿ëµÉ¼öµµ ÀÖ´Ù.
#/etc/init.d/asppp stop
#/etc/init.d/asppp start
* /tmp/.asppp.fifo : aspppls ¿Í aspppd °£ÀÇ communication ¿¡ »ç¿ëµÇ¸ç
ÀÌ°ÍÀÌ ¾øÀ¸¸é ¾Æ¸¶ link manager ´Â µ¹¾Æ°¡Áö ¾Ê´Â´Ù.
3) aspppd, aspppls ¿¡ ´ëÇÏ¿©(man page ÂüÁ¶)
NAME
aspppd, aspppls : Asynchronous PPP Link Manager.
SYNOPSIS
/usr/sbin/aspppd [ -d debug-level ]
/usr/sbin/aspppls
AVAILABILITY
SUNWapppr
SUNWapppu
DESCRIPTION
aspppd ´Â RFC1331 ¿¡ ¸í½ÃµÈ asynchronous data link protocol À»
À§ÇÑ link manager ·Î½á Àüȼ±À» »ç¿ëÇÏ¿© ¸ðµ©À» ÅëÇÑ IP network
service ¸¦ Á¦°øÇϱâÀ§ÇÑ PPP streams module °ú IP-Dialup driver
(ipdcm) °ú ±¸µ¿ÇϰԵǴ user level ÀÇ daemon ÀÌ´Ù.
ÀÌ link manager ´Â PPP service °¡ ¿äûµÉ¶§ remote host ¿Í ¿¬°áÇÏ´Â
ÀýÂ÷¸¦ ÀÚµ¿ÀûÀ¸·Î ¼öÇàÇÑ´Ù. ÀÌ·¯ÇÑ connection process ´Â ´ÙÀ½ÀÇ µÎ
°¡Áö °æ¿ì¿¡ ¼öÇàµÉ¼ö°¡ Àִµ¥, ù°´Â »ó´ëÆíÀÇ È£½ºÆ®¿¡ IP datagram
À» º¸³»´Â°æ¿ì ÀÌ¸ç µÎ¹ø°´Â connection À» ¿øÇÏ´Â »ó´ëÈ£½ºÆ®·Î ºÎÅÍ
¾î¶² notification À» ¹Þ´Â°æ¿ìÀÌ´Ù.
aspppls ´Â aspppd ¿¡ »ó´ëÈ£½ºÆ® ¸¦ ¿¬°á½ÃÅ°´Â login service ·Î½á
»ó´ëÈ£½ºÆ® °¡ °¡´ÉÇÑ account ·Î login À» ÇÒ¶§ serial port monitor
¿¡ ÀÇÇؼ ±¸µ¿µÈ´Ù.ÀÌ aspppls ÀÇ ¸ñÀûÀº link manager ÀÌ incoming
call À» ¹Þ¾Æ¼ ó¸®ÇÒ¼öÀÖ°Ô Çϴµ¥ ÀÖ´Ù.
OPTIONS
-d debug-level
debug-level Àº 0 ºÎÅÍ 9 ±îÁöÀÌ¸ç ³ôÀº ¼ýÀÚÀϼö·Ï ´õ ÀÚ¼¼ÇÑ debugging
Á¤º¸¸¦ ³ªÅ¸³½´Ù. output file Àº /etc/log/asppp.log.
USAGE
link manager ´Â /etc/asppp.cf file ÀÌ ÀÖÀ¸¸é booting Áß¿¡ ±¸µ¿µÇ¸ç
configuration file À» Àаí³ÈÄ¿¡ °¢ peer host ¿¡ ´ëÇÑ path ¸¦
¼³Á¤Çϸç ipd ¶Ç´Â ipdptp interface ÁßÀÇ Çϳª¿¡ IP datagram ÀÌ
½Ç¸±¶§±îÁö sleep Çϰųª »ó´ëÈ£½ºÆ®ÀÇ connection À» ½ÃµµÇÏ´Â login
service ¿¡ ÀÇÇØ notify µÈ´Ù.
In the First case, link manager ´Â UUCP database ¸¦ ÂüÁ¶ÇÏ¿©
¸ðµ©À» ´ÙÀ̾ó¸µ, »ó´ëÈ£½ºÆ®¿¡ login, PPP data link È®¸³, bring up
IP, ±×¸®°í process ¸¦ ±¸µ¿ÇÏ´Â IP data gram À» forwarding.
In the second case, link manager ´Â login service ¿¡ ÀÇÇØ Á¦°øµÇ´Â
file descriptor ¸¦ open ÇÏ°í PPP data link À» È®¸³, ±×¸®°í
brings up IP ¸¦ ÇÑ´Ù.
¸¸¾à¿¡ inactivity_timeout keyword ¿¡ ¸í½ÃµÈ ½Ã°£µ¿¾È¿¡ IP traffic
ÀÌ ¾ø´Ù¸é link manager ´Â IP ¿Í PPP ¸¦ down ÇÔÀ¸·Î½á link ¸¦ ²÷°í
»ó´ëÈ£½ºÆ® ¿ÍÀÇ connection À» ´Ý´Â´Ù.
link manager ´Â kill signal ¿¡ ÀÇÇØ ÀçÃʱâÈ µÇ¸ç À̶§´Â ¸ðµç open
PPP links ¸¦ ²÷°í configuration file ¸¦ ´Ù½ÃÀд´Ù.
Path
Path ´Â »ó´ëÈ£½ºÆ®¿ÍÀÇ connection ÀÇ »óŸ¦ Æ÷ÇÔÇÏ°í ÀÖ´Â object
·Î½á system names, inteface names, timeout values °°Àº Á¤º¸°¡
path object ¿¡ Á¤ÀǵȴÙ. °¢ ÀáÀçÀûÀÎ »ó´ëÈ£½ºÆ®¿¡ ´ëÇÑ ÇϳªÀÇ path
°¡ Á¸ÀçÇϸç configuration file ¿¡ ¼±¾ðµÈ´Ù.
Interfaces
link manager ´Â µÎ°¡Áö Á¾·ùÀÇ IP layer interfaces ¸¦ Áö¿øÇϴµ¥,
Çϳª´Â ipd(point-to-multipoint interface) ÀÌ°í ³ª¸ÓÁö´Â ipdptp
(point-to-poing interface) ÀÌ´Ù.
point-to-multipoint interface ´Â ³í¸®ÀûÀ¸·Î È£½ºÆ® machine À»
Çϳª ¶Ç´Â ±× ÀÌ»óÀÇ peer hosts ¸¦ Æ÷ÇÔÇÏ°í ÀÖ´Â network ¿¡ ¿¬°áÇÏ´Â
°ÍÀ̸ç peer hosts ÀÇ ¾î´À°÷À¸·Î °¥°ÍÀÎÁöÀÇ IP traffic °¡ point-to
-multipoint interface ¸¦ ÅëÇÑ route °¡ ¿ä±¸µÈ´Ù.
ipd interface °¡ ±¸¼ºµÇ¾úÀ»¶§ ±× host ÀÇ ¿ÀÁ÷ ÇϳªÀÇ IP address
°¡ ÇÒ´çµÈ´Ù. Áï, ÀÌ°ÍÀº Ethernet interface ¿Í ¸Å¿ì ºñ½ÁÇÏ¸ç ´ÜÁö
broadcast capability °¡ Áö¿øµÇÁö ¾Ê´Â´Ù´Â°ÍÀÌ´Ù. ÀÌ·¯ÇÑ type ÀÇ
interface ´Â dial in PPP server ¿¡ ¸Å¿ì ÀûÇÕÇÏ´Ù.
point-to-point interface ´Â ³í¸®ÀûÀ¸·Î ÇϳªÀÇ »ó´ëÈ£½ºÆ®¿ÍÀÇ ¿¬°áÀ»
ÀǹÌÇÑ´Ù. ¿ÀÁ÷ ÀÌ interface ¸¦ ÅëÇÏ¿© »ó´ëÈ£½ºÆ®¿Í ÀÇ route °¡
¼³Á¤µÈ´Ù.
ÇϳªÀÇ ipdptp interface °¡ ±¸¼ºµÇ¾úÀ»¶§ µÎ°³ÀÇ IP addresses °¡
ÇÒ´çµÇ¸ç ÀÌ·¯ÇÑ Á¾·ùÀÇ interface ´« remote ¶Ç´Â nomadic machine
¿¡ ¾ÆÁÖ ÀûÇÕÇÏ´Ù.
ÇϳªÀÇ interface ´Â ¹Ýµå½Ã IP datagram ÀÌ routed µÇ±âÀü¿¡ fully
configured and enabled ( i.e. up ).
Routing
ÇϳªÀÇ host °¡ ÇϳªÀÌ»óÀÇ interface ¸¦ °¡Áö°í ÀÖÀ»¶§´Â Ưº°ÇÑ ÁÖÀÇ°¡
routing issues ¿¡ ÇÊ¿äÇÏ´Ù. ±ÔÄ¢¿¡ µû¸£¸é, ÇϳªÀÌ»óÀÇ interface
¸¦ °¡Áö´Â host ´Â router ÀÌ°í ÀϹÝÀûÀ¸·Î in.routed ¶ó´Â routing
daemon ÀÌ PPP interfaces ¿¡ ÀÇÇØ Á¦°øµÇ´Â routes ¿¡ advertising ¸¦
ÇϰԵȴÙ. ÀÌ°ÍÀº dial in server ¸¦ À§ÇÑ°ÍÀÌÁö¸¸ ÀûÀýÈ÷ °ü¸®µÇÁö ¾Ê´Â
´Ù¸é network disruptions ¸¦ ÀÏÀ¸Å³¼ö°¡ ÀÖ´Ù.
RIP (Routing information packets) ÀÌ point-to-pint interfaces ¿¡
ÀÛ¿ëÇϴ°ÍÀ» ¹æÁöÇϱâÀ§ÇØ /etc/gateways file ¿¡ norip keyword ¸¦
¸í½ÃÇÑ´Ù. ( in.routed man page Âü°í )
Configuration File
/etc/asppp.cf file ÀÇ ÁÖ ¸ñÀûÀº »ó´ë½Ã½ºÅÛ°úÀÇ communication À»
À¯ÁöÇÏ°í È®¸³Çϴµ¥ link manager ¿¡ ÀÇÇØ »ç¿ëµÇ´Â °¢ path
¸¦ Á¤ÀÇÇϴ°ÍÀ¸·Î blank space ¿¡ ÀÇÇØ ºÐ¸®µÇ´Â tockens ÀÇ sequence
·Î ±¸¼ºµÇ¾îÀÖ´Ù. ( RFC1332)
Keywords
debug_level number
number i´Â 0 °ú 9 »çÀÌÀÓ.
ifconfig parameters
ifconfig(1M) man page ÂüÁ¶.
inactivity_timeout seconds
terminate µÇ±âÀüÀÇ idle »óÅÂÀÇ ÃÖ´ë½Ã°£À¸·Î 0 ´Â
no timeout, default ´Â 120 ÃÊ.
interface ( ipdn | ipdptpn | ipdptp* )
........
peer_ip_address IP-address
point-to-multipoint paths ¿¡¸¸ ÆÞ¿äÇϸç ÇöÀçÀÇ path
ÀÇ IP address ¸¦ ³ªÅ¸³»¸ç point-to-point interface ¿¡´Â
¹«½ÃµÈ´Ù.
peer_system_name name
point-to-point ¿¡ ÇÊ¿äÇÏ¸ç ¿©±â¼ name Àº outbound
connection À» À§ÇÏ¿© UUCP ÀÇ /etc/uucp/Systems file
¿¡ ÀÖ´Â modem °ú peer specific information À» ã´Âµ¥
»ç¿ëµÈ´Ù.
For incomming connection ¸¦ À§Çؼ´Â /etc/passwd file ÀÇ
username field ÀÇ entry ¸¦ /etc/asppp.cf ÀÇ path ¿¡ ¼±¾ð.
4) manual ppp ¿¡ ´ëÇÏ¿© (man page ÂüÁ¶).
NAME
ppp, ppp_diag, ipd, ipdptp, ipdcm - STREAMS modules and
drivers for the Point-to-Point Protocol
AVAILABILITY
SUNWpppk
DESCRIPTION
PPP ´Â point-to-point protocol À» ¼öÇàÇÏ´Â STREAMS module À̸ç
serial point-to-point links ¸¦ ÅëÇÏ¿© datagrams ÀÇ Àü¼ÛÀ» À§ÇÑ
¹æ¹ýÀ» Á¦°øÇÏ´Â datalink protocol ÀÌ´Ù.
PPP ´Â point-to-point link ÀÇ µÎ host °£¿¡ negotiated µÇ´Â ´Ù¾çÇÑ
options À» Á¦°øÇÑ´Ù. ÀÌ·¯ÇÑ options µéÀº peer authentication,
header compression, link quality monitoring, and mapping of
control characters ¿Í °°Àº °ÍµéÀÌ ÀÖ´Ù.
pseudo device drivers ÀÎ /dev/ipd, /dev/ipdptp, /dev/ipdcm Àº
IP-dialup layer ¸¦ ¸¸µç´Ù. ÀÌ layer ´Â IP network interface ¿¡°Ô
dialup point-to-point links ¸¦ Á¦°øÇÑ´Ù.
ipd ¿Í ipdptp devices ´Â IP dialup network interface ·Î½á ipd ´Â
point-to-multipoint interface, ipdptp device ´Â point-to-point
interface ¸¦ Á¦°øÇÑ´Ù. ipdcm device ´Â ipd ¶Ç´Â ipdptp device ¿Í
link manager °£ÀÇ interface ¸¦ Á¦°øÇÑ´Ù.
PPP module °ú IP-dialup layer ´Â serial point-to-point links °£ÀÇ
IP connectivity ¸¦ Á¦°øÇϱâÀ§ÇØ ¼·Î Çù·ÂÇÑ´Ù.
ppp_dial module Àº PPP layer packets ¸¦ Àâ¾Æ¼ debugging ¸¦ À§ÇØ
±× ³»¿ëÀ» parsing ÇÑ´Ù. º¸Åë, parsed output Àº link manager ¿¡ ÀÇÇؼ
°ËÁõµÇ¾î strlog facility ·Î º¸³»Áö¸ç ÀÌ ¸ðµâÀº debugging °¡ enable
µÉ¶§ link manager ¿¡ ÀÇÇØ serial device ¿Í ppp module »çÀÌ¿¡
push µÈ´Ù.
Operation : ÇϳªÀÇ packet ÀÌ IP-dialup point-to-point interface
(ÇöÀç remote host ¿Í ¿¬°áµÇÁö¾ÊÀº) º¸³»Áö¸é , ipdcm driver ´Â
connection È®¸³À» À§ÇØ link manager ¿¡°Ô message ¸¦ º¸³»°í link
manager ´Â communicaion channel À» Çϳª open ÇÏ¿© ÇØ´ç serial device
¿¡ ppp module ¸¦ push ÇÑ´Ù. ppp module Àº link ¸¦ À§ÇØ »ç¿ëµÉ options
À» remote host ¿Í negotiates ¸¦ ÇÏ¿© ¾çÂÊ hstgs °¡ ÀÏ·ÃÀÇ options ¿¡
´ëÇØ µ¿ÀÇÇϸé link manager ´Â remote host ¿¡ IP interface ¸¦ Á¦°ø
ÇÏ´Â ipd ¶Ç´Â ipdptp interface ¸¦ serial device ¿Í ppp module ¸¦
link ½ÃŲ´Ù.
ºñ½ÁÇÏ°Ô remote host µµ °¡´ÉÇÑ communication port »ó¿¡¼ connection
À» ½ÃÀÛÇÑ´Ù. ÀÌ°æ¿ì link manager ´Â request ¸¦ ¹Þ¾Æ ppp module ¸¦
ÇØ´çµÇ´Â device ¿¡ push ÇÑ´Ù. Çѹø ppp module ÀÌ ¼º°øÀûÀ¸·Î
negotiate µÇ¸é, link manager ´Â ppp modul °ú serial device ¸¦
¿¬°áÇÏ¿© IP-dialup interface ¸¦ Á¦°øÇÑ´Ù.
ppp module °ú serial device °¡ IP-dialup interface ¿Í link µÇ¸é
IP packets ´Â PPP frames À¸·Î point-to-point link ¸¦ ÅëÇÏ¿©
packet ¸¦ ÁÖ°í ¹Þ´Â´Ù.
FILES
/dev/ipd point-to-point interface ¸¦ Á¦°øÇÏ´Â pseudo device
driver.
/dev/ipdptp point-to-multipoint interface ¸¦ Á¦°øÇÏ´Â pseudo
device driver.
/dev/ipdcm ipd ¿Í ipdptp ¿Í link manager °£ÀÇ interface ¸¦
Á¦°øÇÏ´Â pseudo device driver.
1. Test Environment:
0) Configuration 192.9.10.X
|_________________________________________________|
| | |
|
----------- ------------
| WWW | | hyundai2 |
| Server | | (Gateway)|
----------- ------------
| | 203.240.159.X
|_______|____________________|___________________________________________|
| | | |
| ------------
|---------| | hyundai3 | 203.240.159.35
| Router | | h-ppp | 203.240.150.35
----------- ------------
| |
. |
. | ttya serial line
. | (38400 baud)
| |
----------- -------------
| ÀÌ Ãµ | | w-ppp | 203.240.150.81
| HEI | | wybee | 203.240.158.81
| Ami-Net | -------------
----------- | 203.240.158.X
|_________________|___________________________|
| |
1) Axil311
OS : Solaris 2.5 (KLE)
Name : hyundai3
Type : server
Port : ttya ( default value or dial in )
baud : 38400
2) Axil320
OS : Solaris 2.5 (KLE)
Name : wybee
Type : client
Port : ttya ( dial out or service disable:ux )
baud : 38400
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 ---|
4) Packages needed for PPP :
SUNWapppr PPP/IP Asynchronous PPP daemon configuration files
SUNWapppu PPP/IP Asynchronous PPP daemon and PPP login service
SUNWpppk PPP/IP and IPdialup Device Drivers
SUNWbnur Networking UUCP Utilities, (Root)
SUNWbnuu Networking UUCP Utilities, (Usr)
5) Patches needed for PPP :
For 2.3, you need patches:
101425-04 SunOS 5.3: fixes to ppp
101318-73 SunOS 5.3: Jumbo patch for kernel (includes libc, lockd)
For 2.4, you need patch:
101945-27 SunOS 5.4: jumbo patch for kernel
To find the patches already on your system, type:
# showrev -p
2. Server Configuration
1) /etc/hosts ¿¡ µî·Ï.
hyundai3# more /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
203.240.159.35 hyundai3 loghost
203.240.158.81 wybee
192.9.10.105 hyundai2-gw
203.240.159.34 hyundai2
203.240.150.80 h-ppp
203.240.150.81 w-ppp
203.240.151.81 w-sl
203.240.151.80 h-sl
#203.240.152.81 w-sl2
203.240.151.80 h-sl2
2) /etc/asppp.cf ¿¡ network device(ipdptp0) , options µî·Ï.
hyundai3# more /etc/asppp.cf
ifconfig ipdptp0 plumb h-ppp w-ppp up
debug_level 9
path
interface ipdptp0
peer_system_name ppp
ipcp_async_map 0
inactivity_timeout 3600 # Approx. 2 minutes
3) client login À» À§ÇÑ ppp user id ¸¦ µî·Ï.
hyundai3#useradd -u 13 -g 60001 -d / -s /usr/sbin/aspppls -m ppp
hyundai3#passwd ppp
ppp123 ( ppp password )
hyundai3# more /etc/passwd
......
ppp:x:13:60001::/:/usr/sbin/aspppls
hyundai3# more /etc/shadow
....
ppp:xud7Lry0i0mk6:9624::::::
3. Client Configuration
1) /etc/hosts ¿¡ µî·Ï.
hyundai3# more /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
203.240.159.35 hyundai3 loghost
192.9.10.105 hyundai2-gw
203.240.159.34 hyundai2
203.240.158.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
#203.240.152.81 w-sl2
203.240.151.80 h-sl2
2) /etc/asppp.cf ¿¡ network device(ipdptp0) , options µî·Ï.
hyundai3# more /etc/asppp.cf
ifconfig ipdptp0 plumb h-ppp h-ppp up
debug_level 9
path
interface ipdptp0
peer_system_name h-ppp
inactivity_timeout 3600 # Approx. 2 minutes
3) client ÀÇ UUCP file setup.
hyundai3#more /etc/uucp/System
............................
h-ppp Any Direct 38400 direct "" P_ZERO in: ppp word: ppp123
............................
hyundai3#more /etc/uucp/Devices
............................
Direct term/a - Any direct
...........................
hyundai3#more /etc/uucp/Dialers
............................
direct "" "" P_ZERO ""
...........................
4. 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
ipdptp0: flags=8d1 mtu 1500
inet 203.240.150.80 --> 203.240.150.81 netmask ffffff00
ether 0:0:0:0:0:0
hyundai3# netstat -rn
Routing Table:
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
127.0.0.1 127.0.0.1 UH 0 0 lo0
203.240.150.81 203.240.150.80 UH 3 0 ipdptp0
203.240.159.0 203.240.159.35 U 3 2 le0
224.0.0.0 203.240.159.35 U 3 0 le0
hyundai3# snoop -d ipdptp0
h-ppp -> w-ppp RLOGIN C port=1023
w-ppp -> h-ppp RLOGIN R port=1023
w-ppp -> h-ppp RLOGIN R port=1023 \fwybee# snoop -d ipd
h-ppp -> w-ppp RLOGIN C port=1023
w-ppp -> h-ppp RIP R (1 destinations)
hyundai3# cd /devices/pseudo
hyundai3# ls -al *ipd*
crw------- 1 root sys 11, 18 5¿ù 8ÀÏ 08:40 clone@0:ipd
crw------- 1 root sys 11, 8 5¿ù 8ÀÏ 08:40 clone@0:ipdcm
crw------- 1 root sys 11, 9 5¿ù 8ÀÏ 08:40 clone@0:ipdptp
hyundai3# ls -al /etc/defaultrouter
/etc/defaultrouter: ÇØ´ç ÆÄÀÏÀ̳ª µð·ºÅ丮°¡ ¾øÀ½
hyundai3# ls -al /etc/gateways
-rw-r--r-- 1 root other 14 5¿ù 8ÀÏ 10:05 /etc/gateways
hyundai3# pmadm -l
PMTAG PMTYPE SVCTAG FLGS ID
zsmon ttymon ttya u root /dev/term/a b - /usr/bin/login - 9600
ldterm,ttcompat login: - tvi925 y #
2) client status (hyundai3)
wybee# ifconfig -a
lo0: flags=849 mtu 8232
inet 127.0.0.1 netmask ff000000
le0: flags=863 mtu 1500
inet 203.240.157.81 netmask ffffff00 broadcast 203.240.157.255
ether 0:3b:80:46:37:2a
ipdptp0: flags=8d1 mtu 1500
inet 203.240.150.81 --> 203.240.150.80 netmask ffffff00
ether 0:0:0:0:0:0
wybee# netstat -rn
Routing Table:
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
127.0.0.1 127.0.0.1 UH 0 0 lo0
203.240.150.80 203.240.150.81 UH 3 1 ipdptp0
203.240.157.0 203.240.157.81 U 3 0 le0
224.0.0.0 203.240.157.81 U 3 0 le0
wybee# snoop -d ipdptp0
Using device /dev/ipdptp (promiscuous mode)
w-ppp -> h-ppp ICMP Echo request
h-ppp -> w-ppp ICMP Echo reply
wybee# pwd
/devices/pseudo
wybee# ls -al *ipd*
crw------- 1 root sys 11, 18 5¿ù 7ÀÏ 10:04 clone@0:ipd
crw------- 1 root sys 11, 8 5¿ù 7ÀÏ 10:04 clone@0:ipdcm
crw-rw-rw- 1 root sys 11, 9 5¿ù 7ÀÏ 10:04 clone@0:ipdptp
hyundai3# ls -al /etc/gateways
-rw-r--r-- 1 root other 14 5¿ù 8ÀÏ 10:05 /etc/gateways
wybee# pmadm -l
PMTAG PMTYPE SVCTAG FLGS ID
zsmon ttymon ttya ux root /dev/term/a b - /usr/bin/login - 9600
ldterm,ttcompat login: - - n #
5. Network Test ( ping, telnet, rlogin, rcp) and Routing.
1) network test
wybee# ping w-ppp
w-ppp is alive
wybee# ping h-ppp
h-ppp is alive
wybee# telnet h-ppp
Trying 203.240.150.80...
Connected to h-ppp.
Escape character is '^]'.
UNIX(r) System V Release 4.0 (hyundai3)
login: root
wybee#tail -f asppp.log
...
08:22:28 process_ipd_msg: ipdptp0 needs connection
conn(h-ppp)
Trying entry from '/etc/uucp/Systems' - device type Direct.
Device Type Direct wanted
Trying device entry 'cua/a' from '/etc/uucp/Devices'.
processdev: calling setdevcfg(ppp, Direct)
fd_mklock: ok
fixline(10, 38400)
gdial(direct) called
Trying caller script 'direct' from '/etc/uucp/Dialers'.
expect: ("")
got it
expect: ("")
got it
getto ret 10
expect: ("")
got it
expect: (in:)
^M^M^Jlogin:got it
sendthem (ppp^M)
expect: (word:)
ppp^M^JPassword:got it
sendthem (ppp123^M)
call cleanup(0)^M
08:22:39 000023 ipdptp0 PPP DIAG OPEN
.....................................
hyundai3# ping h-ppp
h-ppp is alive
hyundai3# ping w-ppp
w-ppp is alive
hyundai3# telnet w-ppp
Trying 203.240.150.81...
Connected to w-ppp.
Escape character is '^]'.
UNIX(r) System V Release 4.0 (wybee)
login: root
Last login: Wed May 8 13:47:17 from h-ppp
Sun Microsystems Inc. SunOS 5.5 Generic November 1995
wybee#
2) routing.
mymy# more /etc/hosts
# Sun Host Database
#
# If the NIS is running, this file is only consulted when booting
#
127.0.0.1 localhost
#
##################################################
## Router Address
##################################################
203.240.159.33 router
202.30.143.101 nms.aminet.co.kr
202.30.128.20 ami3000.hei.co.kr ami3000 # Web server
202.30.128.40 ami2000.hei.co.kr ami2000
##################################################
##Axil SE.
##################################################
203.240.159.36 mymy.svc.hei.co.kr mymy loghost
203.240.159.35 hyundai3.svc.hei.co.kr hyundai3
203.240.159.41 wybee.svc.hei.co.kr wybee
##################################################
#ETC
##################################################
203.240.150.80 h-ppp
203.240.150.81 w-ppp
wybee# more /etc/hosts
#
# Internet host table
#
127.0.0.1 localhost
203.240.157.81 wybee loghost
203.240.159.35 hyundai3
203.240.159.36 mymy
203.240.150.81 w-ppp
203.240.150.80 h-ppp
mymy# route add host w-ppp hyundai3 1
add host w-ppp: gateway hyundai3.svc.hei.co.kr
mymy# ping w-ppp
w-ppp is alive
mymy#
wybee# route add host mymy h-ppp 1
add host mymy: gateway h-ppp
wybee# ping mymy
no answer from mymy
wybee# ping mymy
mymy is alive
wybee# rlogin mymy
Last login: Fri May 12 08:26:17 from hyundai3.svc.hei
Sun Microsystems Inc. SunOS 5.5 Generic November 1995
You have new mail.
mymy#
mymy# rlogin w-ppp
Last login: Fri May 10 11:54:17 on console
Sun Microsystems Inc. SunOS 5.5 Generic November 1995
wybee#
6. Internet Connection and W.W.W test (/etc/resolv.conf , /etc/nsswitch.conf)
6-1) Proxy server: hyundai3
hyunda3# /usr/ns-proxy/start-proxy
hyundai3# more start*
#!/bin/sh
# (c) Netscape Communications Corporation. All rights reserved.
#
# Start the Garbage Collector (if caching is turned on)
#
/usr/ns-proxy/ns-gc -d /usr/ns-proxy/admin/config &
#
# Start the proxy server daemon
#
/usr/ns-proxy/ns-proxy -d /usr/ns-proxy/admin/config $*
hyundai3# ps -ef |grep pro
nobody 328 306 0 10:11:12 ? 0:00 /usr/ns-proxy/ns-proxy -d
/usr/ns-proxy/admin/config
root 349 334 0 10:15:04 pts/4 0:00 grep pro
script(/etc/rc2.d/S*proxy) ¸¦ ¸¸µé¾î¼ auto-restart (booting) °¡´É.
(netscape ¿¡¼ http://hyundai3:8080/admin/ ·Î µé¾î°¡¼
process control field ¿¡¼ restart °¡´É.)
w-ppp ¿¡¼ netscape test OK ( speed problem)
6-2) Speed up test(9600 --> 19200 --> 38400)
baud 38400 is supported . (admintool,/etc/uucp/Systems)
admintool: terminal mode, 38400 baud
/etc/uucp/Systems:h-ppp Any Direct 38400 direct "" P_ZERO in: ppp word: ppp123
10:29:30 parse_config_file: Successful configuration
10:29:32 process_ipd_msg: ipdptp0 needs connection
conn(h-ppp)
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(ppp, Direct)
fd_mklock: ok
fixline(8, 38400)
gdial(direct) called
Trying caller script 'direct' from '/etc/uucp/Dialers'.
expect: ("")
got it
expect: ("")
got it
getto ret 10
expect: ("")
got it
expect: (in:)
^M^M^Jlogin:got it
sendthem (ppp^M)
expect: (word:)
ppp^M^JPassword:got it
sendthem (ppp123^M)
call cleanup(0)^M
10:43:42 002401 ipdptp0 PPP DIAG OPEN
10:43:42 002402 ipdptp0 SEND PPP ASYNC 29 Octets LCP Config-Req ID=05
LEN=24 MRU=1500 ACCM=00000000 MAG#=446bb1d2 ProtFCOMP AddrCCOMP
......
w-ppp ¿¡¼ www »ç¿ë½Ã 9600 º¸´Ù »ó´çÈ÷ ¾çÈ£ÇÑ ºü¸¥¼Óµµ °¡´É.
ex) http://www.sun.com
7. Trouble shooting.
7-1)RS232C(2.3.7) ÀÎ °æ¿ì ¹ß»ý, Full spec »ç¿ëÇÒ°Í.
wybee# tail -f *
conn(hyundai3)
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(ppp, Direct)
timed out
generic open timeout
set interface UNIX
getto ret -1
Call Failed: CAN'T ACCESS DEVICE
<----- rs232c(2,3,7) ÀÎ °æ¿ì¹ß»ý. full spec »ç¿ëÇÒ°Í)
wybee#/etc/init.d/asppp stop
wybee#/etc/init.d/asppp start
14:50:19 Link manager (82) exited 05/08/96
14:50:25 Link manager (316) started 05/08/96
14:50:25 parse_config_file: Successful configuration
14:50:29 process_ipd_msg: ipdptp0 needs connection
conn(hyundai3)
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(ppp, Direct)
timed out
generic open timeout
set interface UNIX
getto ret -1
Call Failed: CAN'T ACCESS DEVICE
<----- rs232c(2,3,7) ÀÎ °æ¿ì¹ß»ý. full spec »ç¿ëÇÒ°Í)
7-2) Server ÀÇ ppp user id , passwd È®ÀÎÇÒ°Í.
wybee# tail -f /var/adm/log/asppp.log
....
expect: ("")
got it
expect: (in:)
^J^J^Jlogin:got it
sendthem (ppp^M)
expect: (word:)
lost line errno - 0
close caller (8)
delock line (term/a)
Call Failed: LOGIN FAILED
or
failed to lock device /dev/term/a
set interface UNIX
getto ret -1
Call Failed: DEVICE LOCKED
sol) remote system ÀÇ ppp user id passwd È®ÀÎ
ex)passwd ppp
ppp123
7-3) client ÀÇ log file È®ÀÎ
14:26:26 parse_config_file: Successful configuration
14:26:29 process_ipd_msg: ipdptp0 needs connection
conn(h-ppp)
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(ppp, Direct)
fd_mklock: ok
fixline(8, 38400)
gdial(direct) called
Trying caller script 'direct' from '/etc/uucp/Dialers'.
expect: ("")
got it
expect: ("")
got it
getto ret 8
expect: ("")
got it
expect: (in:)
~~^@x~x~^@~`x`x^@^@timed out
close caller (8)
delock line (term/a)
Call Failed: LOGIN FAILED
sol) system ÀÇ baud rate È®ÀÎ(9600 or 38400)
8. Q/A
1) How can I get PPP to always keep the line active?
sol) add this line to /etc/asppp.cf:
inactivity_timeout 0
2) what does in.routed do?
sol) in.routed ´Â routing table ³»ÀÇ Æ¯Á¤ÇÑ networks ¿Í hosts ¿¡ route¸¦ °ü¸®
ÇÏ¸ç ´Ù¸¥ router ¿¡°Ô routing information À» Á¦°øÇϰųª information À»
¹ÞÀ»¼ö ÀÖµµ·Ï ±¸¼ºµÉ¼ö ÀÖÀ¸¸ç routing information À» broadcast ÇÒ¼ö´Â¾ø´Ù.
in.routed ´Â
- RIP packets À» À§ÇÑ ¸ðµç interface ¸¦ listen and routing table ¿¡
route ¸¦ add ÇÔ.
- Á¤±âÀûÀ¸·Î ÃÖ±Ù¿¡ °»½ÅµÇÁö¾Ê¾Ò´ø routes ¸¦ expire ÇÑ´Ù.
- -q mode(quite mode) ·Î µ¹Áö¾ÊÀ»¶§´Â ¸ðµç system ÀÇ interface ¿¡
broadcast ÇÑ´Ù.
in.routed does not "look" for routes, it just listens to other routers
that pass on their routing table.
n.routed is started (and how) is decided in /etc/rc2.d/S69inet.
¸¸¾à /etc/defaultrouter ÀÌ Á¸ÀçÇϸé in.routed ´Â ±¸µ¿µÇÁö¾Ê°í routing table
Àº ÀÌ ÈÀÏ¿¡ ÀÖ´Â ip address¸¦ °¡¸®Å°´Â ÇϳªÀÇ default route ¸¦ °¡Áö¸ç ÀÌ°Í
ÀÌ ¹Ù·Î static routing ÀÌ´Ù.
¸¸¾à ½Ã½ºÅÛÀÌ boot ½Ã¿¡ ¿ÀÁ÷ÇÑ°³ÀÇ interface ¸¸À» °®´Â´Ù¸é, in.routed °¡
quite mode ·Î ±¸µ¿µÇ¸ç ÀÌ°ÍÀº RIP packets ¸¦ listen ÇÏ°í routing table À»
update ÇÏ°Ô µÈ´Ù.±×·¯³ª ÀÌ°ÍÀº ½Ã½ºÅÛÀÇ ¾î¶°ÇÑ route ¿¡´ëÇؼµµ
advertise ´Â ÇÏÁö¾Ê´Â´Ù.
¸¸¾à ½Ã½ºÅÛÀÌ µÎ°³ ¶Ç´Â ±×ÀÌ»óÀÇ interface ¸¦ °®°Å³ª /etc/gateways ¸¦
°®´Â´Ù¸é in.routed ´Â ±¸µ¿ÇϰԵǰí 30 Ãʸ¶´Ù ¸ðµç system ÀÇ interface ¿¡
routing table À» Àü¼ÛÇÑ´Ù.
ÇϳªÀÇ interface ¿¡ ´ëÇØ system route ¸¦ broadcasting Çϴ°ÍÀ» ¹æÁöÇϱâ
À§Çؼ /etc/gateways ¿¡ norip ¸¦ ³ÖÀ»¼ö°¡ ÀÖÀ¸¸ç ÀÌ°ÍÀº
in.routed °¡ RIP packet À» ppp interface ¿¡ Àü¼ÛÇϴ°ÍÀ» ¹æÁöÇÑ´Ù.
ÀÌ°ÍÀº ´ç½ÅÀÌ in.routed ¸¦ ±¸µ¿ÇÏ¿© PPP link ¸¦ ÅëÇÏ¿© ¸Å30Ãʸ¶´Ù RIP
packet À» Àü¼ÛÇϴ°ÍÀ» ¹æÁöÇÏ¸é¼ ppp link ÀÇ active ¸¦ À¯ÁöÇϴµ¥
»ó´çÈ÷ À¯¿ëÇÏ´Ù.
in.routed ´Â ¶ÇÇÑ "noripin "¿Í "noripout "
ÀÇ syntax µµ °¡´ÉÇÏ´Ù.
3) what does in.rdisc do?
in.rdisc (router discovery) ´Â routing table ¿¡¼ÀÇ default route¸¦
°ü¸®Çϴµ¥ µµ¿òÀ» ÁØ´Ù.
/etc/defaultrouter file ÀÌ Á¸ÀçÇϸé in.routed ´Â ±¸µ¿µÇÁö¾Ê°í
routing table Àº default route ¸¦ °¡Áö¸ç ÀÌ ÈÀÏ¿¡ ÀÖ´Â ip address¸¦
°¡¸®Å°¸ç ÀÌ°ÍÀÌ ¹Ù·Î static routing ÀÌ´Ù.
¸¸¾à ½Ã½ºÅÛÀÌ ¿ÀÁ÷ÇϳªÀÇ interface ¸¸ °¡Áö°ÔµÇ¸é(host ·Î ±¸¼ºµÇ¸é)
in.rdisc ´Â ¼¼°³ÀÇ quick multicast messages ¸¦ ¸ðµç interfaces ¿¡ º¸³»
±Ùó¿¡ ´Ù¸¥ routers °¡ Àִ°¡¸¦ ã´Â´Ù. ¸¸¾à ãÁö¸øÇϸé exit ÇÏ°í
in.routed ´Â -q mode ·Î ±¸µ¿µÉ°ÍÀÌ´Ù. ¸¸¾à, interface ÁßÀÇ Çϳª°¡ dialing
out ÀÌ °¡´ÉÇÑ PPP interface À̸é ù¹ø° packet ´Â aspppd °¡ ÀÌ interface
À§¿¡ dial-out À» ÇÏ°Ô ÇÒ°ÍÀÌ´Ù.
¸¸¾à ½Ã½ºÅÛÀÌ µÎ°³ ¶Ç´Â ±× ÀÌ»óÀÇ interface ¸¦ °¡Áö¸é(configured as a
router), in.rdisc ´Â multicast messages ¸¦ Àü¼ÛÇϴµ¥ ÀÌ messages ´Â
router ·Î½á ÀÚ±â½Ã½ºÅÛÀ» advertising ÇÑ´Ù.
±×¸®°í ÀÌ°ÍÀº ¸Å 10 ºÐ¸¶´Ù multicast advertisement packets ¸¦ Àü¼ÛÇÑ´Ù.
in.router will run as well.
You can disable in.rdisc from running by setting up static routing with
an /etc/defaultrouter file, or by doing:
# mv /usr/sbin/in.rdisc /usr/sbin/in.rdisc.save
4)Is the 'call cleanup(0)' message an error?
sol) No, this is normal after the connection has been established with
the remote end and before the PPP protocol is exchanged between the
two systems.
9. Appendix
A:PC configuration to use PC/TCP PPP module. (by PC team)
* ÀÌ°ÍÀº PC engineer ÀÇ µµ¿òÀ» ¹ÞÀ½.(PC <--direct--> W/S)
1) Çö´ë pctcp¸¦install ÇÒ¶§ ppp module±îÁö ¼³Ä¡ÇÑ´Ù.
2) pctcp.ini file¿¡ ´ÙÀ½ »çÇ×À» Ãß°¡ÇÑ´Ù.
-----------------------------------
| [pctcp comscrpt toppp] |
| dialup=c:\pctcp\dialup.scr |
| hangup=c:\pctcp\hangup.scr |
| serial=0 ------------------------------
| accm=0x000a0000 | |
| addr-ctrl-field-comp=on | |
| mru=1500 | |
| prot-field-comp=on | |
| local-ip-address=0.0.0.0 -------------------> Ç×»ó 0.0.0.0·Î..
| remote-ip-address=0.0.0.0 -------------------> Ç×»ó 0.0.0.0·Î..
| swint=0x60 | |
| | |
| [pctcp serial 0]<---------------------------
| baud=9600 |
| hardware-flow-control=on |
| io-addr=0x3F8 |
| irq=4 |
| port=1 |
-----------------------------------
3) dialup.scr file¿¡¼ ÀüȹøÈ£¸¦ ½ÇÁ¦ ¿¬°áÇÒ°÷ÀÇ ¹øÈ£·Î ¼öÁ¤
4)prompt»ó¿¡¼ ´ÙÀ½ ¼ø¼·Î ÀÔ·Â
C:\PCTCP> set pctcp=c:\pctcp\pctcp.ini
C:\PCTCP> ppp16550.com -v0x60 -p1 -b9600
---- --- ------
| | |
| | ----> Àü¼Û ¼Óµµ
| ---------> COM1 PORT
--------------> software interrupt(0x60 - 0x7e)
C:\PCTCP> pppdrv
C:\PCTCP> comscrpt toppp dialup
----- ------
|
-------------------> À§¿¡ Ãß°¡ÇÑ Ç׸ñ À̸§
C:\PCTCP> inet ipcp config
C:\PCTCP> ping ppp-server
B:Async PPP setup for Solaris 2.5 with modem.
1) À§ÀÇ ±¸¼ºµµ ¿Í µ¿ÀÏÇÏ¸ç ´Ù¸¸ Áß°£¿¡ modem ¸¸ µÒ.
Modemo dialing ºÎºÐ¿¡ ´ëÇؾð±ÞÇÏ¸ç ³ª¸ÓÁö´Â direct ¿Í ¶È°°´Ù.
|__________________________________________________|
| | 203.240.159.X |
------------
| hyundai3 | 203.240.159.35
| h-ppp | 203.240.150.35
------------
|
|
--------
| Modem | ±âÁ¾: X-TAL7181 (ÄÞÅØ)
-------- 9600, T.284 (528-9284)
|
|
|
|
|
|
--------
| Modem | ±âÁ¾: AT-2814SAM (SMART MODEM)
-------- 9600, T.319 (528-9319)
|
|
-------------
| w-ppp | 203.240.150.81
| wybee | 203.240.158.81
-------------
| 203.240.158.X
|_________________|___________________________|
| |
2) Server configuration
* admintool ·Î¼ bi-direction mode setting.
hyundai3# sacadm -l
PMTAG PMTYPE FLGS RCNT STATUS COMMAND
tcp listen - 999 ENABLED /usr/lib/saf/listen tcp #
zsmon ttymon - 0 ENABLED /usr/lib/saf/ttymon #
hyundai3#pmadm -l
zsmon ttymon ttya u root /dev/term/a b - /usr/bin/login - 9600
ldterm,ttcompat login: - - n #
* hyundai3# fgrep cuaa /etc/remote
cuaa:dv=/dev/cua/a:br#9600
* hyundai3#tip cuaa
OK
at&f (°øÀåÃâÇϽà ÃʱⰪÀ¸·Î ¼¼ÆÃ)
ref) server ÂÊ modem setting °ª
hyundai3# tip cuaa
all ports busy
hyundai3# fuser -k /dev/term/a
/dev/term/a: 555o 94o
hyundai3# tip cuaa
connected
tz
OK
at&v
ACTIVE PROFILE:
B0 E1 L0 M1 N1 Q0 T V1 W0 X0 Y1 &C1 &D3 &G0 &J0 &K3 &Q5 &R0 &S1 &T4 &X0 &Y0
S00:001 S01:000 S02:043 S03:013 S04:010 S05:008 S06:002 S07:050 S08:002 S09:006
S10:014 S11:095 S12:050 S18:000 S25:005 S26:001 S36:007 S37:000 S38:020 S44:003
S46:138 S48:007 S49:008 S50:255
STORED PROFILE 0:
B0 E1 L0 M1 N1 Q0 T V1 W0 X0 Y1 &C1 &D3 &G0 &J0 &K3 &Q5 &R0 &S1 &T4 &X0
S00:001 S02:043 S06:002 S07:050 S08:002 S09:006 S10:014 S11:095 S12:050 S18:000
S25:005 S26:001 S36:007 S37:000 S38:020 S44:003 S46:138 S48:007 S49:008 S50:255
STORED PROFILE 1:
B0 E1 L0 M1 N1 Q0 T V1 W0 X0 Y1 &C1 &D3 &G0 &J0 &K3 &Q5 &R0 &S1 &T4 &X0
S00:001 S02:043 S06:002 S07:050 S08:002 S09:006 S10:014 S11:095 S12:050 S18:000
S25:005 S26:001 S36:007 S37:000 S38:020 S44:003 S46:138 S48:007 S49:008 S50:255
TELEPHONE NUMBERS:
0= 1=
2= 3=
OK
3) client configuration
* admintool ·Î¼ bi-direction mode setting.
wybee# sacadm -l
PMTAG PMTYPE FLGS RCNT STATUS COMMAND
tcp listen - 999 ENABLED /usr/lib/saf/listen tcp #
zsmon ttymon - 0 ENABLED /usr/lib/saf/ttymon #
wybee#pmadm -l
zsmon ttymon ttya u root /dev/term/a b - /usr/bin/login - 9600
ldterm,ttcompat login: - - n #
* wybee# fgrep cuaa /etc/remote
cuaa:dv=/dev/cua/a:br#9600
* hyundai3#tip cuaa
OK
at&f (°øÀåÃâÇϽà ÃʱⰪÀ¸·Î ¼¼ÆÃ)
* wybee# more /etc/uucp/Devices
#######################
ACU cua/a - Any hayes
#######################
* wybee# fgrep hayes Dialers
#########################################################
hayes =,-, "" \dA\pTE1V1X1Q0S2=255S12=255\r\c OK\r
\EATDT\T\r\c CONNECT
#########################################################
( Dialers ÀÇ default °ªÀ» ±×´ë·Î »ç¿ë, Áï, Devices ¿¡¼ hayes ·Î
¼±¾ðÇϸé Dialers ÀÇ ¹Ì¸®ÁغñµÈ hayes ÀÇ script ¸¦ ÀÚµ¿½ÇÇàÇÔ.
* wybee# more /etc/uucp/Systems
######################################################
h-ppp Any ACU 9600 284 "" P_ZERO in: ppp word: ppp123
######################################################
3) Network test
wybee# ping h-ppp
wybee#tail -f /var/adm/log/asppp.log
........
17:01:23 parse_config_file: Successful configuration
17:01:34 process_ipd_msg: ipdptp0 needs connection
conn(h-ppp)
Trying entry from '/etc/uucp/Systems' - device type ACU.
Device Type ACU wanted
Trying device entry 'cua/a' from '/etc/uucp/Devices'.
processdev: calling setdevcfg(ppp, ACU)
fd_mklock: ok
fixline(8, 9600)
gdial(hayes) called
Trying caller script 'hayes' from '/etc/uucp/Dialers'.
expect: ("")
got it
sendthem (DELAY
APAUSE
TE1V1X1Q0S2=255S12=255^M)
expect: (OK^M)
ATE1V1X1Q0S2=255S12=255^M^M^JOK^Mgot it
sendthem (ECHO CHECK ON
A^JATTDDTT228844^M^M)
expect: (CONNECT)
^M^JCONNECTgot it
getto ret 8
expect: ("")
got it
expect: (in:)
9600^M^J^M^M^Jlogin:got it
sendthem (ppp^M)
expect: (word:)
ppp^M^JPassword:got it
sendthem (ppp123^M)
call cleanup(0)^M
17:02:11 000035 ipdptp0 SEND PPP ASYNC 23 Octets LCP Config-Req ID=04 LEN=18 MRU=1500 MAG#=b1afca2b ProtFCOMP AddrCCOMP
17:02:11 000036 ipdptp0 RECEIVE {Unescaped characters: 0a 0d } PPP ASYNC 47 Octets {BAD FCS} NB (AP) {Unrecognized protocol: d 0a 4c 61 73 74 20 6c 6f 67 69
6e 3a 20 54 75 65 20 4d 61 79 ..... }
17:02:11 000037 ipdptp0 RECEIVE PPP ASYNC 6 Octets {BAD FCS} NB LCP {Bad lcp size} 01
17:02:11 000038 ipdptp0 RECEIVE PPP ASYNC 29 Octets NB LCP Config-Req ID=03 LEN=24 MRU=1500 ACCM=00000000 MAG#=45a9e369 ProtFCOMP AddrCCOMP
17:02:11 000039 ipdptp0 SEND PPP ASYNC 23 Octets NB LCP Config-Req ID=05 LEN=18 MRU=1500 MAG#=b1afca2b ProtFCOMP AddrCCOMP
17:02:11 000040 ipdptp0 SEND PPP ASYNC 29 Octets NB LCP Config-ACK ID=03 LEN=24 MRU=1500 ACCM=00000000 MAG#=45a9e369 ProtFCOMP AddrCCOMP
17:02:12 000041 ipdptp0 RECEIVE PPP ASYNC 29 Octets NB LCP Config-Req ID=04 LEN=24 MRU=1500 ACCM=00000000 MAG#=45a9e369 ProtFCOMP AddrCCOMP
17:02:12 000042 ipdptp0 SEND PPP ASYNC 29 Octets NB LCP Config-ACK ID=04 LEN=24 MRU=1500 ACCM=00000000 MAG#=45a9e369 ProtFCOMP AddrCCOMP
17:02:12 000043 ipdptp0 RECEIVE PPP ASYNC 23 Octets NB LCP Config-ACK ID=05 LEN=18 MRU=1500 MAG#=b1afca2b ProtFCOMP AddrCCOMP
17:02:12 000044 ipdptp0 SEND PPP ASYNC 21 Octets NB (A) IP_NCP Config-Req ID=06 LEN=16 VJCOMP MAXSID=15 Sid-comp-OK IPADDR=203.240.150.81
17:02:12 000045 ipdptp0 RECEIVE PPP ASYNC 21 Octets NB (A) IP_NCP Config-Req ID=05 LEN=16 VJCOMP MAXSID=15 Sid-comp-OK IPADDR=203.240.150.80
17:02:12 000046 ipdptp0 SEND PPP ASYNC 21 Octets NB (A) IP_NCP Config-ACK ID=05 LEN=16 VJCOMP MAXSID=15 Sid-comp-OK IPADDR=203.240.150.80
17:02:12 000047 ipdptp0 RECEIVE PPP ASYNC 21 Octets NB (A) IP_NCP Config-ACK ID=06 LEN=16 VJCOMP MAXSID=15 Sid-comp-OK IPADDR=203.240.150.81
17:02:12 start_ip: IP up on interface ipdptp0, timeout set for 0 seconds
17:02:12 000048 ipdptp0 SEND PPP ASYNC 89 Octets NB (AP) IP_PROTO 45 00 00 54 b0 30 40 00 ff 01 06 f5 cb f0 96 51 cb f0 96 50 .....
wybee# ping h-ppp
h-ppp is alive
wybee#
wybee#
wybee# rlogin h-ppp
Password:
Last login: Tue May 23 17:13:36 from w-ppp
Sun Microsystems Inc. SunOS 5.5 Generic November 1995
You have new mail.
hyundai3#
4) Login °úÁ¤.
* client ¿¡¼ ping h-ppp Çϸé h-ppp ÀÇ /etc/uucp/Systems ÀÇ file À» µÚÁ®¼
login À» ÇϰԵȴµ¥ À̶§ /etc/uucp/Devices ÀÇ ¸¶Áö¸· Çʵ带 Âü°íÇÏ¿©
´ÙÀ̾ó¸µÇϴµ¥ ¿©±â¼´Â hayes À̹ǷΠ/etc/uucp/Dialers ÀÇ hayes field
ÀÇ script ¸¦ ¼öÇàÇÑ´Ù. µû¶ó¼ client¿¡¼ Àüȸ¦ °É¸é server ÂÊÀÇ ¸ðµ©¿¡¼
connection ¸¦ ¿¬°áÇϰԵȴÙ.
À̶§ ÁÖÀÇÇÒÁ¡Àº ¸ðµ©ÀÇ setting °ªÀÌ È¤½Ã¹®Á¦°¡ µÉ¼öµµ ÀÖ´Ù. Áï,
parameter °ªÀÌ ´Ù¸¦¼ö°¡ ÀÖÀ¸¹Ç·Î Àú °°Àº°æ¿ì´Â °øÀå setting °ªÀ¸·Î
ÃʱâÈ ½ÃÅ´. ½ÇÁ¦ ´ÙÀ½°ú °°Àº error °¡ ¹ß»ýÇÔ.
wybee#tail /var/adm/asppp.log
...............
16:54:42 parse_config_file: Successful configuration
16:54:51 process_ipd_msg: ipdptp0 needs connection
conn(h-ppp)
Trying entry from '/etc/uucp/Systems' - device type ACU.
Device Type ACU wanted
Trying device entry 'cua/a' from '/etc/uucp/Devices'.
processdev: calling setdevcfg(ppp, ACU)
fd_mklock: ok
fixline(8, 9600)
gdial(hayes) called
Trying caller script 'hayes' from '/etc/uucp/Dialers'.
expect: ("")
got it
sendthem (DELAY
APAUSE
TE1V1X1Q0S2=255S12=255^M)
expect: (OK^M)
ATE1V1X1Q0S2=255S12=255^M^M^JOK^Mgot it
sendthem (ECHO CHECK ON
A^JATTDDTT228844^M^M)
expect: (CONNECT)
timed out
CHAT gdial(hayes) FAILED
set interface UNIX
getto ret -1
Call Failed: CALLER SCRIPT FAILED
Revision History
ÀÛ¼ºÀÏÀÚ : 96.06.12
ÀÛ¼ºÀÚ : À̽ÂÈÆ
¼öÁ¤ÀÏÀÚ :
¼öÁ¤ÀÚ