
                               PPP HOWTO Ķ
                                       
@: Robert Hart [1]hartr@interweft.com.au
Ķ: [2]Asd L. Chen & [3]C.W.Huang

   v3.0, 31 March 1997. ½Ķ: 25 August - 9 October 1997
     _________________________________________________________________
   
   oiܦpA Linux PC s@x PPP AWApϥ PPP
   ϰsb@_åBѤ@اA Linux q]w PPP A
   kDPɴULk`B@ PPP sD
     _________________________________________________________________
   
   vn
   
   󪺴̾ GPL (GNU Public License)D
   
   
   
   @o󦳷sʹN|K comp.os.linux.answer Q׸sD ]iH
   bo HTML 榡:
   
     * Linux Howto Index
     * PPP-HOWTO
       
   䥦榡(SGML, ASCII, postscript, DVI)iHqǫo: Howtos -
   other formats.
   
   ] sunsite.unc.edu tD`aAШϥγ̾aAAMg(mirror)`
   ID
   
   P
   
   _a\hHѧڼg@󪺨UD SOP Al Longyear  PPP 
   (pGo̦~AOڪӤOL)A Greg Hankins(Linux
   HOWTOs @H)H Debi Tackett (MaximumAccess.com) \hbΦAe
   ǡA޿PMתΫĳD
   
   ̫A\hHqll󴣨ѧڷNHAP±zD NҦ HOWTO @
   @ˡAULHoPNOڭ̩Ҧ쪺SAӳowD gѼg@
   o HOWTO v٤@pHšAoOڡAHΩҦl Linux ϥ
   ̡A ҿnڭ̼gP@oӧ@~tΪHD
   
1. ²

     * 1.1 ȤݥHΦA
     * 1.2 P Linux M󶡪t
     * 1.3 M PPP tmu
       
2. IP X

3. o󪺥ت

     * 3.1 ] PPP Ȥ
     * 3.2 ϥ PPP sӰϰγs@ӰϰںW
     * 3.3 ] PPP A
     * 3.4 ϥ PPP 󪽱lu(direct null modem)s
     * 3.5 oثe|[\...
       
4. [\n骩

5. 䥦Ϊn

     * 5.1 Ϊ Linux qllC
       
6. N PPP ]wȤݪu@n

     * 6.1 o/w˳n
     * 6.2 sĶ֤ߥ[J PPP 䴩
     * 6.3 qA ISP oT
     * 6.4 ]wAƾھΦC
     * 6.5 إߦW٨}ѪR(DNS)
     * 6.6 PPP P root v
     * 6.7 ˬdA PPP Mɮפγ]w PPP ﶵ
     * 6.8 pGA PPP Aϥ PAP {(Password Authentication
       Protocol)
     * 6.9 Hʤ覡s PPP A
     * 6.10 ϧA PPP s۰ʤ
     * 6.11 s
     * 6.12 pGADJD
     * 6.13 إ߳s
     * 6.14 ʺA IP sѼз IP AȪD
       
7. tmA Linux ֤

     * 7.1 w Linux ֤߭l{X
     * 7.2 ѧAw
     * 7.3 sĶ֤  Linux 1.2.13 ֤
     * 7.4 sĶ֤ - Linux 1.3.x  2.0.x ֤
     * 7.5 PPP-2.2 P /proc/net/dev `Nƶ
     * 7.6 tm֤ߪ@Ҷq
       
8. oAһݪ PPP AT

9. ]wAƾھΦC

     * 9.1 CPt׬ۮeʪ`Nƶ
     * 9.2 CW
     * 9.3 tmAƾھ
     * 9.4 Cyq`Nƶ
     * 9.5 էAƾھX\
       
10. إߦW٨}ѪR(DNS)

     * 10.1 /etc/resolv.conf ɮ
     * 10.2 /etc/host.conf ɮ
       
11. ϥ PPP P root v

12. ]w PPP sɮ

     * 12.1 N options.tpl ɮ
     * 12.2 ӨϥΤﶵ? (L PAP/CHAP)
       
13. pGA PPP Aϥ PAP {(Password Authentication Protocol)

     * 13.1 ϥ MSCHAP
     * 13.2 PAP/CHAP KXɮ
     * 13.3 PAP KX
     * 13.4 CHAP KX
     * 13.5 Bzh PAP {ҳs
       
14. Hʤ覡إ PPP s

15. ϧAs۰ʤ - гysOZ

     * 15.1 HϥΪ̦W١KX{ҪOZ
     * 15.2 ppp-on OZ
     * 15.3 so̩ҴѪ_lOZ
     * 15.4 @ chat OZ䤤tN...
     * 15.5 ϥΩ PAP/CHAP {su chat OZ
     * 15.6 pppd  debug P file option_file ﶵ
       
16. էAsuOZ

17.  PPP s

18. 

     * 18.1 ڧ PPP sĶihO Linux ڨS...
     * 18.2 ڪƾھsWF PPP åҰ
     * 18.3 tΰO "serial line is not 8 bit clean..."
     * 18.4 ]߹w]e|
     * 18.5 䥦D
       
19. 󽦵ۮɦpoU

20. sB@᪺MD

     * 20.1 ڵLkݨڳsu PPP AH~@
     * 20.2 ڥiHHeqllA౵
     * 20.3 H̤ӧڪ finger, WWW, gopher, talk ?
       
21. HʺA IP ѺںA

     * 21.1 ]wqll
     * 21.2 ]waW٦A
       
22. ϥ PPP sӺ

     * 22.1 ]w IP X
     * 22.2 ]we|
     * 22.3 w
       
23. إ߳s - /etc/ppp/ip-up OZ

     * 23.1 Se|
     * 23.2 BzqllC
     * 23.3 @ /etc/ppp/ip-up OZҤl
     * 23.4 Bzqll
       
24. ϥ /etc/ppp/ip-down

25. ϰWeD

     * 25.1 wW`Nƶ
       
26. إ PPP A

     * 26.1 sĶ֤
     * 26.2 AtΪ[
     * 26.3 һݪn
     * 26.4 ]wзǪ(shell access)
     * 26.5 ] PPP ﶵɮ
     * 26.6 ]w pppd HKϥΪ̡]\a^楦
     * 26.7  pppd ]w@ӥ쪺OW(alias)
       
27. b null modem (su)Wϥ PPP
     _________________________________________________________________
   
   vn
   
   󪺴̾ GPL (GNU Public License)D
   
   
   
   @o󦳷sʹN|K comp.os.linux.answer Q׸sD ]iH
   bo HTML 榡:
   
     * [4]Linux Howto Index
     * [5]PPP-HOWTO
       
   䥦榡(SGML, ASCII, postscript, DVI)iHqǫo: [6]Howtos
   - other formats.
   
   ] sunsite.unc.edu tD`aAШϥγ̾aAAMg(mirror)`
   ID
   
   P
   
   _a\hHѧڼg@󪺨UD SOP Al Longyear  PPP 
   (pGo̦~AOڪӤOL)A Greg Hankins(Linux
   HOWTOs @H)H Debi Tackett (MaximumAccess.com) \hbΦAe
   ǡA޿PMתΫĳD
   
   ̫A\hHqll󴣨ѧڷNHAP±zD NҦ HOWTO @
   @ˡAULHoPNOڭ̩Ҧ쪺SAӳowD gѼg@
   o HOWTO v٤@pHšAoOڡAHΩҦl Linux ϥ
   ̡A ҿnڭ̼gP@oӧ@~tΪHD
   
1. ²

   PPP ]IIw^ObCsW] IP ]ںw^HΨ䥦w
   @ؾA CsiHOCs]ϥ null-modem lu^άO
   μƾھHιqܽuҳyXs (M]]Ap ISDN Ʀu)D
   
   ϥ PPP, AiHA Linux PC s@x PPP AWæsӦA
   s귽]XG^NpPAOsbӺW@D
   
   A]iHA Linux PC ]@x PPP AAoˤ@Ө䥦qNiHJ
   AqåBsbAϰ̪귽D
   
   ] PPP O@II (peer-to-peer) tΡA]A]iHϥΨx
   Linux PC W PPP sb@_]άOϰsںW^D
   
   ̥DntMOt  зǪAӺsuOH 10 Mbps]CʸU줸
   ^oӲzפW̤jeqqbʧ@A Ӧbƾھo譱̤jOH 56 kbps]C
   d줸^tצbʧ@D
   
   PɡA̾ PPP suAAYΥHΪAȦbϥΤWi|ǭD
   
1.1 ȤݥHΦA

   PPP O@اOIIwFHα]b
   ޳NW^èStD MӡAFMժtGAHAݻPȤݪ覡
   ҬOܦΪD
   
   AJ@Ӹ`Inإ PPP suɡAAOȤݡDAҳsuxOA
   ݡD
   
   Ab]w@x Linux Ϩ䱵óBzJ PPP suɡAAb]ߤ@
   x PPP AݡD
   
    Linux PC iHO PPP AݥHΫȤ  ƦܩpGA@ӥHW
   C]HμƾھApGn^٥iHPɧtoبD pPe
   һAN PPP ӨA@suإߨȤݻPAݤäut
   D
   
   FMժYAoҩlIs]Y "J"^x٧@Ȥ
   A ӧ^qܡAֹＷJШD{]QΨϥΪ̥NAKXHΨ䥦i઺
   ^x٧@AݡD
   
   ϥ PPP ȤݧYӦa誺@xΦhxsںWiOj
   HP쪺@I - oONL̪ Linux @@ȤݡD
   
   bo󤤩Ҵyz{ǱN|Aإߨæ۰ʤƧAںsuD
   
   o]NbA Linux PC ] PPP AHΨϥ PPP ӳsӰ
   ]㪺e]w^oǤ譱Aޡ]o``Q٧@إ߼ss
   ^D
   
1.2 P Linux M󶡪t

   ohP Linux MAL̦ۤvSP欰ҦD
   
   SOaALinux (H Unix)qؤP_l覡Aɭ]wD
   
   oؤOO BSD system initialisation P System V system
   initialisationD pGAiJY Unix sDQ׸sAA|o{g`
   ̪ԪD pGAıoAN[JoӮOWeC!
   
   ̴MϥΪMiO
   
     * Slackware
       ϥ BSD Φtΰ_l
     * Red Hat (and its former associate Caldera)
       ϥ SysV tΰ_l(ǳ\ק)
     * Debian
       ϥ SysV tΰ_l
       
   BSD Φtΰ_lq`NҰɮשb /etc/...Aoɮ׬O:
     _________________________________________________________________
   
        /etc/rc
        /etc/rc.local
        /etc/rc.serial
                (]i঳䥦ɮ)
     _________________________________________________________________
   
   ̪A@ BSD tΪ_lҦNϥ /etc/rc.d... Ұɮתsؿ
   AӤONҦF賣 /etc UD
   
   System V _lҦNҰɮצsb /etc/...  /etc/rc.d/... ΨU@
   lؿ:
     _________________________________________________________________
   
drwxr-xr-x   2 root     root         1024 Jul  6 15:12 init.d
-rwxr-xr-x   1 root     root         1776 Feb  9 05:01 rc
-rwxr-xr-x   1 root     root          820 Jan  2  1996 rc.local
-rwxr-xr-x   1 root     root         2567 Jul  5 20:30 rc.sysinit
drwxr-xr-x   2 root     root         1024 Jul  6 15:12 rc0.d
drwxr-xr-x   2 root     root         1024 Jul  6 15:12 rc1.d
drwxr-xr-x   2 root     root         1024 Jul  6 15:12 rc2.d
drwxr-xr-x   2 root     root         1024 Jul 18 18:07 rc3.d
drwxr-xr-x   2 root     root         1024 May 27  1995 rc4.d
drwxr-xr-x   2 root     root         1024 Jul  6 15:12 rc5.d
drwxr-xr-x   2 root     root         1024 Jul  6 15:12 rc6.d
     _________________________________________________________________
   
   pGAմMAAӺdκe]wutmaAAݭnlܨ
   oɮ׸̧XtmOҦbD
   
1.3 M PPP tmu

   bYǦwˮM(p Red Hat P Caldera)A@ӥH X window ]w PPP 
   tΡD o HOWTO å]toػP̥uDpGAbϥΤWD
   AMM󪺵oH߰ݡD
   
    Red Hat 4.x ϥΪ̡AiHb Linux 귽ϧ [7]Red Hat
   PPP-TIPA ]ib䴩ϧ [8]Red Hat SoftwareD
   
2. IP X

   C@ӳsWں]Ƴ֦̦ۤvAߤ@ IP XDoǬO
   CӰa춰wD
   
   pGAnϰsWںAbAϰ̧AҾ֦Ҧqγ]
   ƳϥαqwAd̤t IP XD Yϳst@Ӱϰ
   ]bں~^A]̪Ũ IP XD pGA'' IP X
   }lzZ䥦wgϥγo IP qܡAVɤȤ|ʡAٱN|ް_
   ʪj}aD
   
   Ъ`Nbo̩ҨϥΪ IP X]@ǭӨҥ~^OqOdS]
   ^sWںҨϥΪsuXtCӪD
   
   @ǯSOdsںϥΪ IP XDo IP X̧ǬO:
   
     * 1  A- }
       10.0.0.0 (netmask 255.0.0.0)
     * 16  B- }
       172.16.0.0 - 172.31.0.0 (netmask 255.255.0.0)
     * 256  C- }
       192.168.0.0 - 192.168.255.0 (netmask 255.255.255.0)
       
   pGA٨SqAavdt IP XAAӨϥ
   eҦCoǺX@ӡD
   
   oǸXûӨϥΦbںWD
   
   MӡA̤iϥΦb@sbںWAӺdWD ]
   IP XOtɭAӤOqD ]MAAӺɭ
    10.0.0.1 (Ҧp)AAH PPP sWںɡAA PPP ɭNѦA
   tt@(Xk) IP XD A PC NںsOA䥦
   qhSD
   
   LAϥ Linux H ipfwadm n骺 IP ˯O(]s NAT - Network
   address Translation mഫ)A ANiHAϰWXk
   IP XsWں]ѪAȷ|ǭ^D
   
   QohTаѦ [9]Linux IP Masquerade mini HOWTOD
   
   jϥΪ̡Ag PPP s@ںAȴѪ(Internet
   Service Providers: ISP)A o@ IP X]Χ󥿽TA@ӺX
   ^OSnD
   
   pGAƱs@ӤpϰںWA\hںAȴѪ̥i
   HqL̤w IP }ŶѵA@Ӧ]Sw@q IP X^D
   Ϊ̡Aϥ IP ˯OD@
   
   g ISP s@ PC ںWϥΪ̡AjѪ̨ϥΰʺA
   IP wD oOAsu{Ǫ@AApô PPP AȱN|iDA
   osu̸ PPP ɭӨϥΤ IP XD CAsW ISP ұo
   쪺X|@ˡD
   
   ϥΰʺA IP XAACsu|oۦP IP XD obA
   Linux WAAε{O sendmail, ftpd, httpd HνѦp
   nӨ|ͰDD oǪAȮڰoѪAȪqHP˪ IP X
   ΡD
   
   ѩʺA IP XwӦҭAȡ]HθѨMkAi઺ܡ^y
   |bo󤤰QסD
   
3. o󪺥ت

3.1 ] PPP Ȥ

   o󴣨ѷQnϥ Linux H PPP Y@x PPP AåBϥ
   PPP ] IP suH̤@ǫޡD 󤤰] PPP wgsĶnåBw˦bA
    Linux W(²ua[\stmssĶA֤ߥHK]t PPP 䴩
   )D
   
   M DIP]إ SLIP suзǤ覡^iHΨӳгy PPP suA DIP O
   Z@볣۷aD ]oӽtGAoä[\ϥ DIP ӫإ PPP
   suD
   
   ӥNOAoyzзǪ Linux PPP n(chat/pppd)D
   
3.2 ϥ PPP sӰϰγs@ӰϰںW

   o󴣨sӰϰγs@ӰϰںW]
   ^TD
   
3.3 ] PPP A

   o󴣨ѦptmA Linux PC  PPP Aޡ]\LH
   A Linux PC åBإ PPP su^D
   
   AӪ`NO]w Linux @ PPP AkLƺءDo]ثe
   ^A@ؤ覡  @̥Ψӥ]ߤ@xp PPP A]@ 16 xƾھ^
   D
   
   oӤ覡wB@}nDLA@wO̦n覡D
   
3.4 ϥ PPP 󪽱lu(direct null modem)s

   󴣨Ѩϥ PPP sⳡ Linux PCs  null modem lu²uyzD
   Hks䥦@~tΩ Linux ]Oi઺D pGno˰AAѦҧA
   ns@~tΪD
   
3.5 oثe|[\...

     * sĶ PPP n
       ѨHAϥΪ pppd ӨӪD
     * sHΰtmƾھ Linux W(Ӹ`)
       аѾ\ Serial-HOWTOAHμƾھ_l]wAѾ\ [10]Modem
       Setup Information ̪TiA]wƾھUD
     * ϥ DIP гy PPP su
       ϥ chat N...
     * ϥ socks άO IP Masquerade
       wg[\oӮM󪺵ΤD
     * ϥ diald Hإߦ۰ʳsu
       аѾ\ diald ̪TD
     * ϥ EQL NⳡƾھX@ PPP sD
     * PM PPP suk(Ҧp Red Hat 4.x ]wu)
       аѾ\ӮM󤤪D
     * _W[۰ʫإ PPP u
       аѾ\AD
       
4. [\n骩

   oϥλ]Aϥ Linux 1.2.x ֤߰tX PPP 2.1.2 n Linux
   1.3.X/2.0.x H PPP 2.2 D
   
   b󼶼gɡALinux  PPP n̷sO ppp-2.2fD ̷s
   (ppp-2.3)٦b beta qD
   
   ϥ PPP 2.2.0 tX֤ 1.2.13 Oi઺DMӡAno˰ݭn֤߭׸ɡD
   ĳ֤ 1.2.13 ϥΪ̤ɯŨ ppp-2.2 ]]tF\h~ץΥ\
   [jD
   
   ٦AASO`NN PPP 2.1.2 P Linux ֤ 2.0.X XΡD
   
   Ъ`No󤣥]Aϥ Linux ֤ 2.0.x iJҲթҤް_DD 
   Ѿ\ kerneld mini-HOWTO Hή֤ߡҲ 2.0.x ]b Linux 2.0.x 
   l{ؿ /usr/src/linux/Documentation/... ̡^D
   
   ]oO]pӨUs⪺AjPĳAϥΤwíwa@PB@
   Linux ξA PPP D
   
5. 䥦Ϊn

   yϥΪ̾\Ū:-
     * H PPP M󪺤;
     * pppd H chat uWϥΤU;
       (ϥ man chat H man pppd Ӿ\Ū)
     * Linux ޲z (NAG);
       Ѿ\ [11]The Network Administrators' Guide
     * Net-2/3 HOWTO;
       Ѿ\ [12]Linux NET-2/3-HOWTO
     * b /usr/src/linux/Documentation ̪ Linux ֤ߤ;
     * ƾھ]wT - Ѿ\ [13]Modem Setup Information
     *  O'Reilly and Associates X̨ Unix/Linux y]Ѿ\
       [14]O'Reilly and Associates On-Line Catalogue ̪ؿ^D pGAO
       Unix/Linux sAߨ]]nΨ^A̪񪺹qѩhX
       ˳oǸơD
     *  Al Longyear Һ@ PPP-FAQAib [15]Linux PPP-FAQ oD
       ̭]AFjqΪTHݵΦX{AbչϧX PPP (
       `)u@ɬ۷ΡD
     * _sWѤPXP@̥X~y;
       yAhd\oǬyqyDLinux oiPM󪺺ti۷ֳtAӮ
       y睊t(@ӻ)۷C! R@wgLn({b\h)i
       ϱosϥΪ̷PxbPD
       
   Linux 󪺳̨ΰ_INO [16]The Linux Documentation Project Home
   Page. HOWTOs ɦVwasD
   
   MYϤ\ŪoǸƤ@A]iHϥγoӫإߧA PPP
   sA OpGAh\ŪoǤ󨺻AAҰsoͤFǤN|F
   ѧh! ANTXۤvD(Φܤ֦b comp.os.linux... sDQ
   s Linux mailing lists ݥX`תD)D
   
   oǤ]PUب䥦A]A RFCs ^B~HΤoϥ
   ү]thӸ`D
   
   pGAnϥ PPP sϰںWAANoD@
   TCP/IP B@ѡD ɥR@Ioe쪺ơAAN|o{
   O'Reilly X "TCP/IP Network Administration" H "Building
   Internet Firewalls" ܦnB!
   
5.1 Ϊ Linux qllC

   \hbPϥΪ̵ŤyqqllC(mailing lists)D ܧA
   HιAM~Ѥ[IUCӭq\D
   
   @ǩi: ǦCO"Ma"ϥΪ̩άOSDDD MSH|
   A""(q\o峹)b̭A LpGAbAXCX"s
   "DAi|@Ǽ㪺ND
   
   oäO]MaŪϥΪ̰QsiϥΪ̡AӬO]oǦCOΨӳBz
   㦳@wxתSDDD
   
   [JǥiH}q\CAЧANCDDWD
   
   Linux qllC@ӫܦn_IO [17]Linux Mailing List DirectoryD
   
6. N PPP ]wȤݪu@n

   o]tF\hT - ӥBC睊S_W[!
   
   ]A`تb󴣨Ѥ@²unnNA Linux tΧ@Ȥݳs
    PPP Aһݪu@D
   
6.1 o/w˳n

   pGA Linux Må]t PPP nAAiqo: [18]the Linux PPP
   daemon.
   
   oO󼶼gɭԳ̷sDMӡAqqӯ̷s(
   g ppp-2.3 |b beta qӥBӫܧַ|o)D
   
   o PPP M]tFpsĶΦw˩һݪޡA]ä]t!
   
6.2 sĶ֤ߥ[J PPP 䴩

   Linux  PPP B@]tⳡ
     * W쪺 PPP daemon
     * PPP ֤ߤ䴩
       
   \hMGb̹w]wˮ֤ߤ PPP 䴩Alh_D
   
   pGbҰʮɮ֤߳io˪T
     _________________________________________________________________
   
PPP Dynamic channel allocation code copyright 1995 Caldera, Inc.
PPP line discipline registered.
     _________________________________________________________________
   
   A֤ߤwsĶ PPP 䴩bD
   
   NOAקAϥΤMAiƱۦsĶ֤ߥHbASwwtm
   Uo̦Ītθ귽QΡD аO֤ߤQmXO]q
   ߫O̤pbO馳W۷ΡD
   
   b [19]tmA Linux ֤ @`ѤFssĶ֤ߪֻ̤D
   
   Ӹ`аѾ\ [20]The Linux Kernel HOWTOD
   
6.3 qA ISP oT

   XGLƺس]w PPP AkD FsWA ISP, Ao PPP 
   ApB@TD
   
   ]AΪO Linux, b@ǶȪD MS Windows Ȥݪ ISP Ը߳i|
   DJxD
   
   MӡAUӷUh ISP ϥ Linux ѪA - ӥB Linux ]JqҡA
   pGAuJDA]i|ܩBD
   
   [21]oAһݪ PPP AT @`iDAݭnDAs PPP A
   T - HΦpXoǸTD
   
6.4 ]wAƾھΦC

   FsW PPP AèǫΪƶǿtvAAƾھ]wTD
   
   P˦aAsƾھιqC]Ta]wD
   
   [22]]wAƾھΦC @`ѳo譱TD
   
6.5 إߦW٨}ѪR(DNS)

   F PPP Φ۰ñJ PPP Aɮפ~A٦@Ǥrtmɮץ
   ]wA HKAqNo˪W www.interweft.com.au ѪR IP 
   }HKuPxqsuD oɮ׬O:-
   
     * /etc/resolv.conf
     * /etc/host.conf
       
   [23]إߦW٨}ѪR @`ѳo譱]wӸ`D
   
   SOaAAäݭnbA Linux PC WW٦AHsںW(
   Mγ\A|Qo)D AһݪuODܤ֤@AϥΪW٦A IP
   }(̦nOA ISP ҴѪ)D
   
6.6 PPP P root v

   ]bA Linux qPt@ PPP Aإ߳sݭnާ@ɭ(PPP 
   O@Ӻɭ)P֤ߪѪApppd ݭnϥ root vD
   
   Ӹ`AѾ\ [24]ϥ PPP P root v @`D
   
6.7 ˬdA PPP Mɮפγ]w PPP ﶵ

   nXӰtmμɮ׻ݭnإߥHK PPP B@Db PPP M󤤦@ǽd
   Aӥ`iDAoɮ׬O:-
     _________________________________________________________________
   
/etc/ppp/options
/etc/ppp/scripts/ppp-on
/etc/ppp/scripts/ppp-on-dialer
/etc/ppp/options.tpl
     _________________________________________________________________
   
   ݧAQ PPP F쪺ؼЬOAiݭn@B~ɮ:-
     _________________________________________________________________
   
/etc/ppp/options.ttyXX
/etc/ppp/ip-up
/etc/ppp/pap-secrets
/etc/ppp/chap-secrets
     _________________________________________________________________
   
   ~APPP daemon jquWﶵATaϥάOܭn; ]`a
   AݳoǼз PPP ﶵUAܧAϥΪﶵD
   
   Ӹ`AаѾ\ [25]]w PPP sɮ @`D
   
6.8 pGA PPP Aϥ PAP {(Password Authentication Protocol)

   \h ISP ] PPP Aϥ PAP {ҡDpGAAäϥ PAP (pG
   AiHΤñJæзǪϥΪ̦W/KXܲŸ򥦨åϥ PAP)
   AAiHL`D
   
   NbiJAɥX{ܲŸJϥΪ̦W٤αKXOAϥ PAP 
   PPP AäݭnrҦñJ覡D
   
   ϥΪ̻{ҬOsw(link control protocol, LCP)@Abإ
   PPP su洫TD
   
   [26]pGA PPP Aϥ PAP {(Password Authentication Protocol)
   @`ѧAϥ PAP إ PPP sһɮתTD
   
6.9 Hʤ覡s PPP A

   wgإߧ򥻪ɮפAzL(ϥ minicom  seyon)覡sα
   ʧA Linux PC  pppd ӴլOӤDND
   
   Ѩ [27]Hʤ覡إ PPP s ]wӸ`D
   
6.10 ϧA PPP s۰ʤ

   @A\aΤʤ覡ñJAAiHյ۫إߤ@OZH۰ʫإߦsD
   
   [28]ϧAs۰ʤ - гysOZ @`]tFإߩһݪOZAH
   ۷h`NOb chat RO PPP AñJL{D
   
   o`]QפFϥΫOZ PAP/CHAP {ҪAWD
   
6.11 s

   @Asإߨå`@AAݯsD
   
   ob [29] PPP s @`D
   
6.12 pGADJD

   \hHLk PPP `au@DPPP AHΩM̫إ߳suk
   D`hءD aAPPP \hﶵ - ӦǿﶵO@_ΪD
   
   FñJð_l PPP AȪD~Aƾھιqܽu]i|DD
   
   [30]ѨMD @`Ѥ@~򥻸TAHΦpøѨMkD
   
   o̴ѪLO򥻪TDAl Longyear Һ@ PPP-FAQ ]tFho@
   譱T!
   
6.13 إ߳s

   @ PPP siHB@F(SOaA@ IP hiHB@)ALinux  PPP iH
   ۰ʰ(H root )@OZAQF\D
   
   [31]إ߳s @` /etc/ppp/ip-up OZTA p󱵦 PPP
   ǨӪѼƥHΦpQΥӰ@ǹ ISP ^AqllA eXbA
   Cs񪺶l󵥵u@D
   
6.14 ʺA IP sѼз IP AȪD

   Nb²@`̫XAʺA IP XvTA Linux PC @ںA
   OD
   
   [32]ʺA IP sѼз IP AȪD @`(Dn)vTAȥHΧA
   үవ(pG)JAkD
   
7. tmA Linux ֤

   Fnϥ PPPAAsĶ Linux ֤ߥ]t PPP 䴩D pGA٨S
    Linux l{XХo  b Linux ɮרtμзǤOb
   /usr/src/linux ̭D
   
   ˬdoӥؿ - \h Linux M|bw˹L{w˦l{X(ɮפΦ
   ؿ)D
   
   bҰʮɡAA Linux ֤߷|LXjqTDpG֤ߤ䴩 PPP ܷ|]t
   @TD n[ݳoǰTܡAݬݧAtΰOɩΥ dmesg | less O
   NoǰTܦbùWD pG֤ߤ䴩 PPP ܧAN|ݨ칳o˪X
     _________________________________________________________________
   
PPP Dynamic channel allocation code copyright 1995 Caldera, Inc.
PPP line discipline registered.
     _________________________________________________________________
   
   (oO Linux 2.0.x tC֤ߪT)D
   
   Linux ֤ߪl{iHq sunsite.unc.edu ΨMg`IoD
   
7.1 w Linux ֤߭l{X

   UO²uoΦw Linux ֤߭l{XܡDԲӪTiHb
   [33]The Linux Kernel HOWTO D
   
   FwˤνsĶ֤ߡAAH root ñJD
   
    1.  /usr/src ؿU
       cd /usr/src
    2. ˬd /usr/src/linux ݬݧAO_wgwˤFl{XD
    3. pGSܡA [34]Linux kernel source directory A̪񪺬Mg
       `I^D
       pGAQª֤(Ҧp 1.2.X)Ai [35]Old Linux kernel
       source directory D
    4. ܾA֤ - q`O̪񪺪D^N 'tar' Yɩb
       /usr/srcD
       `N: @ 'tar' ɮ׬O@Y - iF\hɮשMؿbYD
       ۷ DOS U zip ɮסD
    5. pGAwgwˤFl{AQnɯŨs֤ߡAAª
       {XDγoӫO
       rm -rf /usr/src/linux
    6. γoӫOY
       tar xzf linux-2.0.XX.tar.gz
    7. MAcd /usr/src/linux ìݬ README ɡDY]tF㪺p
       tmνsĶs֤ߡD JӾ\Ūoɮ(NLXөbOӦnDNA
       AwFhD)D
       
7.2 ѧAw

   pGAnssĶA֤ߧADbA PC ̭ɭd]!! Y
   ]ơ]Oĥd^A]oDUس]w]Ow餤_XAXJ}H
   ѦpT^D
   
7.3 sĶ֤  Linux 1.2.13 ֤

   n}ltm{ǡA̷Ӧbѻɸ̪Aaw˭l{XDMHU
   O}l֤ߪtm{
   
make config

   Fnϥ PPP AAtm֤ߥ]t PPP 䴩]ϥ PPP ݭn pppd
   Hή֤ߪ PPP 䴩̡^D
     _________________________________________________________________
   
  PPP (point-to-point) support (CONFIG_PPP) [n] y
     _________________________________________________________________
   
   ھڦbA PC ̭wHΧAQn Linux @~tίS^䥦tmD
   DM~̷ӸӸѻɨӽsĶæw˧As֤ߡD
   
   ֤ 1.2.13 unsy| PPP ˸mDhd(multi-port serial cards)
   ӻAAק֤ PPP l{HKoh𪺤䴩D (ѨH
   PPP-2.1.2 MӨӪ README.linux ɮ׻AݭnӸ`)D
   
   `N: ֤ 1.2.13 tmܤ\A^Y - ]pGAb make config 
   ܤDA CTRL-C Xӭs}lD
   
7.4 sĶ֤ - Linux 1.3.x  2.0.x ֤

    Linux 2.0.x ֤ߡAAiHϥ Linux 1.2.13 {ǡD A@A
   ̷Ӧbѻɸ̪Aaw˭l{XDMHUO}l֤ߪt
   m{
   
make config

   MӡAA]t~
   
make menuconfig

   oѤ@ӥH欰¦tXuWUtmtΡA\Abtm{ǤHN
   D
   
   ]@ӥH X windows ¦tmɭ
   
make xconfig

   AiHsĶ PPP 䴩֤߸̥hΪ̬OiJҲաD
   
   pGAubA Linux B@@ɶ̨ϥ PPP ܡAĳA
   PPP 䴩sĶiJҲաD ϥ 'kerneld'AA֤߱N|bA}lA
   PPP s{Ǯɦ۰ʸJ PPP 䴩һݪҲաD o`٤F_QO
   ]]֤ߨS@ӳiHQmO~AiJҲզbϥ
   ɷ|۰ʳQ^D
   
   no˰ܡAAݭn}iJҲժ䴩:
     _________________________________________________________________
   
        Enable loadable module support (CONFIG_MODULES) [Y/n/?] y
     _________________________________________________________________
   
   n[J PPP ֤ߤ䴩A^UCoӰD:-
     _________________________________________________________________
   
        PPP (point-to-point) support (CONFIG_PPP) [M/n/y/?]
     _________________________________________________________________
   
   niJҲժܡA^ M YiA_hNsĶ֤ߪ@A^ Y N
   OD
   
   P 1.2.13 ֤ߤPOA2.0.x ֤ߵݭn۰ʫإ PPP ]ƨåB@I
   ݭnhsl{XHW[iΪ PPP ]ơD
   
7.5 PPP-2.2 P /proc/net/dev `Nƶ

   pGAbϥ PPP-2.2AA|o{إ PPP ˸m@ӰƧ@δNOpGA[
   /proc/net ɮרtάݤ PPP ˸mA }lϥ pppd ˸m~|Qإ
   _:-
     _________________________________________________________________
   
[hartr@archenland hartr]$ cat /proc/net/dev
Inter-|   Receive                  |  Transmit
 face |packets errs drop fifo frame|packets errs drop fifo colls carrier
    lo:  92792    0    0    0    0    92792    0    0    0     0    0
  eth0: 621737   13   13    0   23   501621    0    0    0  1309    0
     _________________________________________________________________
   
   @A@(Χh) PPP AȱҰʫAA|ݨ칳o˪(q@ PPP 
   AWo):-
     _________________________________________________________________
   
[root@kepler /root]# cat /proc/net/dev
Inter-|   Receive                  |  Transmit
 face |packets errs drop fifo frame|packets errs drop fifo colls carrier
    lo: 428021    0    0    0    0   428021    0    0    0     0    0
  eth0:4788257  648  648  319  650  1423836    0    0    0  4623    5
  ppp0:   2103    3    3    0    0     2017    0    0    0     0    0
  ppp1:  10008    0    0    0    0     8782    0    0    0     0    0
  ppp2:    305    0    0    0    0      297    0    0    0     0    0
  ppp3:   6720    7    7    0    0     7498    0    0    0     0    0
  ppp4: 118231  725  725    0    0   117791    0    0    0     0    0
  ppp5:  38915    5    5    0    0    28309    0    0    0     0    0
     _________________________________________________________________
   
7.6 tm֤ߪ@Ҷq

   pGAnA Linux PC ]@x PPP AܡAA IP
   forwarding 䴩sĶihD pGAQϥ Linux sӰϰαNϰ
   sںWܳoӿﶵ]OݭnD
   
   pGAns@ӰϰںW]Ϊ̬ƦܥuOsӰϰ^A
   AӭnߦwWDDb֤ߤ[J IP firewalls 䴩iO
   !
   
   pGAQn IP ˳sϥΫez@ӡsuIP Xϰ
   A]ݭnoӰtmD
   
   nϥ IP ˻P IP firewallingAAb make config L{Ĥ@Ӱ
   DW^ yes:-
     _________________________________________________________________
   
Prompt for development and/or incomplete code/drivers (CONFIG_EXPERIMENTAL)?
     _________________________________________________________________
   
   Moť_ӹsϥΪ̦ǧxA\hHr֦aϥ Linux 2.0.X ֤ߪ
   IP ˻P IP firewalling \ӨSDD
   
   @As֤ߪw˥HέsҰʤAANiH}ltmôէA PPP
   sD
   
8. oAһݪ PPP AT

   bAiHإߨYxA PPP sueAAݭnoUCT]q PPP
   Atκ޲zϥΪ̤䴩Ho^:-
     * AȪqܸX
       pGAObpΥ洫(PABX)tΤUAAٻݭnX~uHpΥ洫
       X  q`O 0  9D
     * AϥΰʺARA IP X?
       pGAϥRA IP XAAݭnDb PPP suAoݭn
       έ IP XD pGA ISP ѧA@Xk IP XAAݭn
       DAϥΪ IP XκBnD
       jںAȴѪ̳ϥΰʺA IP XDpezAoAi
       HϥΪAȷ|ǭD
       MӡAYϧAϥRA IP XAj PPP A]\(Fw
       z)Ȥݦۦw IP XA]owID AMDo
       ǸTD
     * ISP W٦A IP XO?
       Muݭn@Ӧ̤ӱonӡD
       o̥i|@ӰDDLn Windows 95 PPP ]w\ DNS a}b
       suL{ǨȤݡD ]A ISP (ΤqԸ߫)i|iDA
       ݭnD DNS A IP }D
        Linux ӻAAܤ֪D@ DNS }D ثe Linux  PPP
       @\bs߳suɰʺAaw DNS  IP X - ܥiNӤ]
       |D
       `N: MALinux (@ PPP Ȥ)qA DNS }
       AMӡA@ PPP AɡA iH pppd ﶵ dns-addr Ȥ
       woӸTD
     * ӦAO_ݭnϥ PAP/CHAP?
       pGOo˧AݭnDAΨӳsu "id" H "secret" D]oj|OA
       bo ISP ϥΪ̦W٥HαKX^D
     * A|۰ʰ_ PPP Ϊ̦b@AñJݭnoXOӰ_ʦA
       ݪ PPP?
       pGAUYӫOӰ_ PPP ܡAO?
     * pGAOLn Windows NT tΡAO_ϥηLn PAP/CHAP t
       ?
       \hqϰGOϥ Windows NT tΥHW[wʡD
       
   JӦa`NoǸT  AWnϥΥ!
   
9. ]wAƾھΦC

   AӽT{Aƾھ]wTӥBADsӦCD
   
   ԰O:-
     * DOS com1: = Linux /dev/cua0 (and /dev/ttyS0)
     * DOS com2: = Linux /dev/cua1 (and /dev/ttyS1)
       
       
   ٭nANOpGA|ӦCAз PC W com1 P com3 @ IRQ4
   B com2 P com4 @ IRQ3D
   
   pGA䥦˸mMC@Τ@ IRQ ܥi|DD ATwA
   ƾھC֦ۤvAߤ@@ IRQD\h{bCd(P~
   DOWC)\ANCW IRQ }D
   
   pGAb Linux 2.0.X ֤ߡAAiH cat /proc/interrupts ˬdϥΤ
   IRQAA|ݨ칳o˪XG
     _________________________________________________________________
   
 0:    6766283   timer
 1:      91545   keyboard
 2:          0   cascade
 4:     156944 + serial
 7:     101764   WD8013
10:     134365 + BusLogic BT-958
13:          1   math error
15:    3671702 + serial
     _________________________________________________________________
   
   oܤF@ӦCb IRQ4 (@ӷƹ)P@ӦCb IRQ15D (]@
   Cb com2, IRQ3 P com4 Ob IRQ14AåϥΡASܥX)D
   
   Фp - pGAnէA IRQ ܧAnTꪾDAbǤ! Auݭn
   }Aq~ߡANɭdޤUýվ jumperAAٻݭnDӦΤ
   IRQD HڪҤlӻAoOH SCSI D PCA]ڱNDOWq`
   | IRQ14 P 15  IDE ɭD
   
   Aٻݭn`NpGA PC ٶ]F䥦@~tΡA IRQ }iϨ
   @~tαҰʤ`Aήڥ}F!
   
   pGuNC𲾨FDзǪ IRQAAݭniD Linux C@ӰҥΪ
   IRQ }D oiH setserial OFAӥB̦nN rc.localAΦb
   SysV tΤ rc.local ҩIs rc.serial ̭}L{@D H
   ڤWҦCӻAγo˪O
     _________________________________________________________________
   
/bin/setserial -b /dev/ttyS2 IRQ 11
/bin/setserial -b /dev/ttyS3 IRQ 15
     _________________________________________________________________
   
   MӡApGAϥΥ kerneld {ҭtdʺAJCҲաAA๳o˨C
   }ɳ]w@ IRQ N⥦ѤFD oO]pGCҲճQALinux
   N|ѤFoǯS]wD
   
   ]ApGAHʺA覡JCҲաAAnbCJJҲծɭs]w
   IRQ ~D
   
9.1 CPt׬ۮeʪ`Nƶ

   pGAϥΰt(~)ƾھ(14,400 baud Χ)AACtץ
   BzoؼƾھҲͪƶqASbOƾھbYƮɡD
   
   ACݭn@طs UART (Universal Asynchronous Receiver
   Transmitter)AO 16550(A)D pGAbϥΤ@ª(ªCd)A
   ܥiCWuª 8250 UARTAobAϥΰtƾھɥi|oͰD
   D
   
   ϥγoӫO
   
setserial -a /dev/ttySx

    Linux ^AϥΪ UART DpGAS 16550A  UARTAhR@
   sCd( $50)D AR@sdɡATwAվW IRQ!
   
   `N: ̦ 16550 UART W岫DoIܧִNQo{FӥB]o
   Fs - 16550A UARTD ֳ岫yJFDM
   ӥinNARAA٬OӬݤ@UOO 16550AASOOb
   @ǸCdWD
   
9.2 CW

   HeALinux  cuaX ܼXCW ttySx ܼJW١D
   
   ۮ֤ 2.0.X o˪nDwgܤFAҥHAӥiH ttySx Pɪ
   JμXW١D ڧڤF cuaX ˸mW٦bӪ֤ߤi|
   D
   
9.3 tmAƾھ

   ϥ PPP ANoTatmAƾھ  nou@о\ŪAƾھ
   ϥΤU! jƾھ PPP һݨDXtw]ﶵD ̰򥻪tm
   O:-
     * wyq (RTS/CTS) (&K3 b\hĥ Hayes Oƾھ)
       
   Aӭns䥦]w]ϥμз Hayes O^O:
     * E1 }ҫOa^ (chat B@һ)
     * Q0 ^浲GNX (chat B@һ)
     * S0=0 ۰ʦ^ (DAQAƾھťq)
     * &C1 ubsu᰻i
     * &S0 Data Set Ready (DSR)û]}
     * (ݱp) Data Terminal Ready
       
   @ӯxѧA_W[ƾھڦ]wAi|AUAb
   [36]Modem setup informationD
   
   bAqPƾھƾھCɭpB@]ȱosFѡD j
   {Nƾھ\AHTwtרϥΦCɭAYϹqܽuɭ
   tץ򻷺ݼƾھBzD
   
   o٬ split speed operationDpGAƾھ䴩o\Aƾھ
   Cɭwb̰tס]q`O 115,200 baud A 14,400 ƾھ
   iO 38,400 baud^D
   
   ϥΧAqTn]Ҧp minicom^XAƾھtmTåB] PPP
   һݪ]wD \hƾھ|b AT&V O^^̥ثe]wpA
   OAӬdݤ@UAƾھϥΤUD
   
   pGA]w˶äFAAiHǥѵoX AT&F O^íwA]q`
   iH^  ^Xt]wD ]bڹJLj{NƾھAXt]w]t
   Ҧϥ PPP һݪ]w  OAӰˬd^D
   
   @AXFn]wrN⥦gUӡDMAӨMw: AiHNo
   ǳ]wȦsbƾھWDoʰO餤o˥iHξA AT ONisX
   D t@ӰkONoǥT]wb PPP L{ǤJD
   
   pGAuq Linux Uϥμƾھs ISP AA²檺kNONo
   ]wȦsJƾھWDoʰO(non-volatile RAM)D
   
   t@譱ApGAn٦b䥦ε{Χ@~tΤWϥμƾھA̫OI
   kObCɤ~NoǸTǤJA piHTObCɼƾھ`Ob
   TAD(OUoǳ]wr٦ӦnBNObƾھ򥢤FO骺e
   AoTio)D
   
9.4 Cyq`Nƶ

   ƦbCqTuWyʪɭԡAi|o͸ƨFqBz
   nֳoرp]qiণ۰䥦  OoALinux O@ӦhϥΪ̡Ah
   u@~tΡ^D FTOƤ||]bwİϤƤ|WӦ]|
   ^AݭnYǱƬyqkD
   
   ؤkiHbCuWFoӥت:-
     * ϥεwH(Clear To Send/Request to Send - CTS/RTS)
     * ϥγnH(control S and control Q, also known as XON/XOFF).
       
   M̥Φb׺ݾ]r^sWiܦnAOb PPP Wƨϥξ
   8 bits sXŶ  ӥBbƤYӦa۷isb|Qন control
   S H control Q 줸աD ҥHApGƾھ]ϥγnyqܡA
   ǿܮeQZ!
   
   ϥ PPP ts]ϥ 8 bits ƽsX^ӻwyqOܭn
   A]AϥεwyqD
   
9.5 էAƾھX\

   bAFCPƾھ]wɸյۼA ISP Wݬݯ_sWHTw
   ]wO_~D
   
   ϥΧA׺ݾqTn]O minicom^AAQϥ PPP sux
   PPP AD
   
   ]`N: boӶqڭ̨äիإ PPP su  uOnҹڭ֦̾T
   qܸXHάFñJåB_ PPP ӽTaXAsǰeڭ̤T
   ^D
   
   boӹL{AiHI]O@ɮ׸̡^ñJL{Ϊ̬Opߦa]
   D`pߦa^TgUݦAҵAܿJAϥΪ̦W٥HαKXT
   ]HΥإ PPP suݭnUFO^D
   
   pGAAϥ PAPAAiण|ݨñJܲŸAӬO(Hr
   )sqTw(ݰ_ӹOU)X{bAùWD
   
   @ĵi:-
   
     * YǦA۷o: AiHΤrҦϥΪ̦W/KX覡Ψϥ
       PAP ñJD ]pGA ISP Τqxϥ PAP ASߨbùW
       ݨUA]äܧAFD
     * YǯxnDAJ@ǰ_lrM~ҰʼзǪ PAP {ǡD
     * Y PPP AOQʪ - ̴Nb̵ݦӤeXơA
       ȤݼJðeXXkswD pGAns PPP AOQ
       ʼҦAAN|ݨU!
     * YǦAbAU ENTER e|Ұ PPP - ]pGATñJ
       UܥiHո!
       
   o̤֭ȱo⦸  YǦA|bCAñJɧܴܡ]Ҧp̮ɶ
   !^D A Linux bCAJɭԭn{ӥDn
   O:-
     * nDAJϥΪ̦W٪;
     * nDAJKX;
       
   pGAoXYӫOӰ_ʦAݪ PPPAA]ݭnX@AñJ
   AҵAJOHҰ PPP ܡD
   
   pGAA۰ʰ_ PPP ܡA@AñJAAN}lùWX{
   U  oO PPP AݶǰeAH_ʨåBtm PPP suTD
   
   oݰ_ӷ|Oo˪F:-
     _________________________________________________________________
   
~y}#.!}!}!} }8}!}$}%U}"}&} } } } }%}& ...}'}"}(}"} .~~y}
     _________________________________________________________________
   
   (ӥBٷ|@i! )
   
   bYǨtΤ PPP bAݤWTa[H_ʡDoq`O]ӦAQ]
   w\ϥάۦPϥΪ̦W١KXtӰ PPP ñJΤ@ϥάɭ(shell)
   ñJD pGOoˡA@AñJNoXӫODA@AAN| PPP s
   uAݰ_ʪUT  ҥH{bAiH_FD
   
   pGASbsWɥߧYbùWݨoǩU(pGnܥñJñҰ
   PPP A)A U Enter ոկ_Ұ PPP A...
   
   oӮɭԡAANiH_Aƾھ]q`OAֳtaJ +++ @Aƾھ
   ^ OK MᱵۤU ATHO O^D
   
   pGAϧAƾھB@ܡA\ŪAƾھϥΤUAAqTn骺u
   WϥΤUH Serial HOWTO! @AѨMӰDA~ieһD
   
10. إߦW٨}ѪR(DNS)

   Mڭ̤HwƪӦW١AqwƦrD b TCP/IP W]o]N
   Oں^AڭǥѯSwW٩IsYxAӥBCxsb@
   SwаO̭D |ҦӨAڪ Linux u@٬ archenland ӥO
   sb interweft.com.au oӻ̡D ҥHbH̤ߥؤ}NO
   archenland.hedland.edu.auD (٬ FQDN - fully qualified domain name
   D)
   
   MӡAFϺںW䥦q䪺oxAƹWqbںW
   qɥOǥѨ IP Xӻ{D
   
   ]Hλ^WĶ]ѪR^bںWҹڨϥΪ IP 
   XOѻW٪AȤu@D
   
   OoˤlB@:-
     * AݭnDYSwq IP }DݭnoTε{VA
        Linux PC W'WٸѪR'߰ݦT;
     * WٸѪRd߾DWɮ(iO /etc/hosts H/άO
       DoTW٦AAӦWٸѪRڪ欰
       /etc/host.conf ɮרMw);
     * pGצbDWɮפANHצ^;
     * pGObwW٦AAA PC NVӾ߰;
     * pGoW٦AwgDQ߰ݦW٪ IP XANH^D_
       hA|zLںV䥦W٦AMTD ̫oW٦A
       |NTǦ^Ӹ߰ݪWٸѪRAMǵnDTε{D
       
   AгyX PPP suɡAAݭniDA Linux iHb̧DW
   ٹӨ IP X]}ѪR^TApANiHϥξW٦ӧAq
   iHoǦWĶB@һݪ IP XD
   
   @ӤkOJҦAQpD /etc/hosts ɮ׸̡]pGAOsW
   ܳouOi઺ơ^F t@ӤkOϥά۹W٪ IP
   X]nOo IP }Oi઺Db̤pϰW^D
   
   ̦nkO]wA Linux ϥDӨooW٨츹XT  
   ʦaD oAȬOѻW٦AtΩҴѡDݭnu@O IP 
   XJA /etc/resov.conf ɮ׸̡D
   
10.1 /etc/resolv.conf ɮ

   A PPP Atκ޲zϥΪ̤䴩HӭnѵA DNS  IP 
   X]uݭn@  OӦbXDɥiHhU^D
   
   peҭzALinux H MS Windows 95 @˪覡ӳ]wW٦A
   IP XD ҥHA(§a)A ISP ѧAoT!
   
   A /etc/resolv.conf ݰ_ӷ|o:
     _________________________________________________________________
   
domain your.isp.domain.name
nameserver 10.25.0.1
nameserver 10.25.1.2
     _________________________________________________________________
   
   soɮס]pGSܴNؤ@ӷs^He{A ISP ѪTD
   ֦̥HvӹUo:-
   
-rw-r--r--   1 root     root           73 Feb 19 01:46 /etc/resolv.conf

   pGA]ӴNbϰWҥHwg] /etc/resolv.conf ɮתܡAu
   n²檺 PPP su DNS A IP X[Awɮ׸̧YiD
   
10.2 /etc/host.conf ɮ

   A]ˬdA /etc/host.conf ɮ׬O_]wTDݰ_ӹo
     _________________________________________________________________
   
order hosts,bind
multi on
     _________________________________________________________________
   
   iDAWٸѪRbVW٦A߰ݤeϥΥDWɮפTD
   
11. ϥ PPP P root v

   ] PPP ݭn]w]ơAܧ֤߻eHνѦpʧ@AҥH
   nH root vӰoǨơD
   
   pG root H~ϥΪ̭nإ PPP suA pppd {ӳ]H root
   (setuid):-
   
-rwsr-xr-x   1 root     root        95225 Jul 11 00:27 /usr/sbin/pppd

   pG /usr/sbin/ppd O]woˡAH root UoӫO:
   
chmod u+s /usr/sbin/pppd

   oˬO pppd H root vAYϬOѤ@ϥΪ̩Ұ檺D o@
   ϥΪ̰檺 pppd 㦳nvإߺɭή֤߻eD
   
   H root 檺{bwWOb|}AҥHA]w
   'setuid' {D`apߡD \ha{(]A pppd)wgQpߦagH
   N root 檺MI̧CAҥHo˰ӬOwa(LO)
   D
   
   ھڧAƱAtΦpB@өwASOOpGAƱAtθ̪ϥΪ̳
   ҩl PPP sAAӧA ppp-on/off OZ]wHiHŪ
   D]pGA PC uѧAϥΨoˤj^D
   
   MӡApGAƱH_l PPP su]ҦpAAĤlbA Linux
   PC WbӧAƱL̦bSAʷUsWں^AANoإߤ@
   PPP sա]s /etc/group ɮס^åB:
     * N pppd ]wH root vA֦̬O root ӸsլO PPPAӨ
       vDݰ_ӹo
       
-rwsr-x---   1 root     PPP        95225 Jul 11 00:27 /usr/sbin/pppd

     *  ppp-on/off OZѨϥΪ root Hθs PPP Ҿ֦
     *  ppp-of/off OZѸs PPP Ū
       
  -rwxr-x---   1 root     PPP           587 Mar 14  1995 /usr/sbin/ppp-on
  -rwxr-x---   1 root     PPP           631 Mar 14  1995 /usr/sbin/ppp-off

     * 䥦sv
     * _ PPP ϥΪ̥[J /etc/group ɮת PPP sո
       
   YϦpA@ϥΪ̤MLkHn骺覡sD  ppp-off OZ
   ݭn root vDMAϥΪ̳iHƾھ(αNqܽuѤ
   ھޤU)D
   
   t~@(n)kA\ϥΪ̨ϥ sudo Ӱ_ ppp sD o˥iH
   ѧΪwʨåBiHA]w(iH)ϥΪ̨ϥΫOZӱҰ/
   sD ϥ sudo iH@iHϥΪ̰bӦwaҰ/ PPP s
   D
   
12. ]w PPP sɮ

   AH root ñJӫإ߳oǥؿåBsoǳ] PPP suһݪɮ
   AYϧAQҦϥΪ̳ϥ PPPD
   
   PPP ϥδXɮרӫإߨó]w PPP sDoɮצb PPP 2.1.2 P 2.2 
   WٻPmPD
   
   b PPP 2.1.2 oɮ׬O:-
     _________________________________________________________________
   
/usr/sbin/pppd               # PPP 
/usr/sbin/ppp-on             # /suOZ
/usr/sbin/ppp-off            # _uOZ
/etc/ppp/options             # ҦsuҨϥΪﶵ
/etc/ppp/options.ttyXX   # Y@SwqTϥΪﶵ
     _________________________________________________________________
   
   b PPP 2.2 oɮ׬O:-
     _________________________________________________________________
   
/usr/sbin/pppd                  # PPP 
/etc/ppp/scripts/ppp-on         # /suOZ
/etc/ppp/scripts/ppp-on-dialer  #  chat OZ
/etc/ppp/scripts/ppp-off        # _uOZ
/etc/ppp/options                # ҦsuҨϥΪﶵ
/etc/ppp/options.ttyXX          # Y@SwqTϥΪﶵ
     _________________________________________________________________
   
   Red Hat Linux ϥΪ`NзǪ Red Hat 4.X w˱NoǫOZb
   /usr/doc/ppp-2.2.0f-2/scriptsD
   
   bA /etc ؿӭnӥؿ:
   
drwxrwxr-x   2 root     root         1024 Oct  9 11:01 ppp

   pGsb  Ho˪vإߥD
   
   pGoӥؿwgsbAӷ|]t@Ӻ٬ options.tpl ﶵɮ׼˪OD
   oɮץ]AbUD
   
   ]]tҦ PPP ﶵҥHЧA⥦LXӡ]tX pppd uWϥΤ
   UӾ\ŪN|OܦΪ^D MAiHϥγoɮק@ /etc/ppp/options
   ɮת¦AOإߧAۤvAS]tҦboӼ˪O̪Oﶵɮ
   i|n  |uohӥBe\Ū@D
   
   pGAhӦCuƾھ]嫬ҤlO PPP A^Aإߤ@Ӥ@
   ƪ /etc/ppp/options ɮסA䤤]tCӧAѤ䴩JCҨϥ
   @PﶵåBC@ӻݭnӧO]wHإ PPP suCu]߭ӧO
   ɮסD
   
   oɮצW options.ttyx1, options.ttyx2 ̦]䤤 x OAC
   ANX^D
   
   MӡA@ PPP suAAiHϥ /etc/ppp/options oɮסDt~
   @ؿkAAiHҦﶵi pppd O@ѼơD
   
   ϥ /etc/ppp/options.ttySx ɮת]w覡|e[H@D pGA
    PPP ӳsunXӤP`IhܡAANiHb
   /etc/ppp/options.site ̭CӸ`Iإ߿ﶵɮ׵MbAsuɫwﶵ
   ɮק@ PPP OѼơD (ϥ file option-file ѼƩ pppd OC)
   D
   
12.1 N options.tpl ɮ

   Yǭ PPP oMG|F options.tpl oɮסAҥHbo̦ӧ
   㪺ɮסD ګĳAnsoɮרӫإߧAۤv /etc/ppp/options
   D ⥦@ӷsɮ׵MsɮפnDpGA˶äFAs誺ɮ
   AAiH^YqlɮצA׶}lD
     _________________________________________________________________
   
# /etc/ppp/options -*- sh -*- general options for pppd
# created 13-Jul-1995 jmk
# autodate: 01-Aug-1995
# autotime: 19:45

# Use the executable or shell command specified to set up the serial
# line.  This script would typically use the "chat" program to dial the
# modem and start the remote ppp session.
#connect "echo You need to install a connect command."

# Run the executable or shell command specified after pppd has
# terminated the link.  This script could, for example, issue commands
# to the modem to cause it to hang up if hardware modem control signals
# were not available.
#disconnect "chat -- \d+++\d\c OK ath0 OK"

# async character map -- 32-bit hex; each bit is a character
# that needs to be escaped for pppd to receive it.  0x00000001
# represents '\x01', and 0x80000000 represents '\x1f'.
#asyncmap 0

# Require the peer to authenticate itself before allowing network
# packets to be sent or received.
#auth

# Use hardware flow control (i.e. RTS/CTS) to control the flow of data
# on the serial port.
#crtscts

# Use software flow control (i.e. XON/XOFF) to control the flow of data
# on the serial port.
#xonxoff

# Add a default route to the system routing tables, using the peer as
# the gateway, when IPCP negotiation is successfully completed.  This
# entry is removed when the PPP connection is broken.
#defaultroute

# Specifies that certain characters should be escaped on transmission
# (regardless of whether the peer requests them to be escaped with its
# async control character map).  The characters to be escaped are
# specified as a list of hex numbers separated by commas.  Note that
# almost any character can be specified for the escape option, unlike
# the asyncmap option which only allows control characters to be
# specified.  The characters which may not be escaped are those with hex
# values 0x20 - 0x3f or 0x5e.
#escape 11,13,ff

# Don't use the modem control lines.
#local

# Specifies that pppd should use a UUCP-style lock on the serial device
# to ensure exclusive access to the device.
#lock

# Use the modem control lines.  On Ultrix, this option implies hardware
# flow control, as for the crtscts option.  (This option is not fully
# implemented.)
#modem

# Set the MRU [Maximum Receive Unit] value to <n> for negotiation.  pppd
# will ask the peer to send packets of no more than <n> bytes. The
# minimum MRU value is 128.  The default MRU value is 1500.  A value of
# 296 is recommended for slow links (40 bytes for TCP/IP header + 256
# bytes of data).
#mru 542

# Set the interface netmask to <n>, a 32 bit netmask in "decimal dot"
# notation (e.g. 255.255.255.0).
#netmask 255.255.255.0

# Disables the default behaviour when no local IP address is specified,
# which is to determine (if possible) the local IP address from the
# hostname. With this option, the peer will have to supply the local IP
# address during IPCP negotiation (unless it specified explicitly on the
# command line or in an options file).
#noipdefault

# Enables the "passive" option in the LCP.  With this option, pppd will
# attempt to initiate a connection; if no reply is received from the
# peer, pppd will then just wait passively for a valid LCP packet from
# the peer (instead of exiting, as it does without this option).
#passive

# With this option, pppd will not transmit LCP packets to initiate a
# connection until a valid LCP packet is received from the peer (as for
# the "passive" option with old versions of pppd).
#silent

# Don't request or allow negotiation of any options for LCP and IPCP
# (use default values).
#-all

# Disable Address/Control compression negotiation (use default, i.e.
# address/control field disabled).
#-ac

# Disable asyncmap negotiation (use the default asyncmap, i.e. escape
# all control characters).
#-am

# Don't fork to become a background process (otherwise pppd will do so
# if a serial device is specified).
#-detach

# Disable IP address negotiation (with this option, the remote IP
# address must be specified with an option on the command line or in an
# options file).
#-ip

# Disable magic number negotiation.  With this option, pppd cannot
# detect a looped-back line.
#-mn

# Disable MRU [Maximum Receive Unit] negotiation (use default, i.e.
# 1500).
#-mru

# Disable protocol field compression negotiation (use default, i.e.
# protocol field compression disabled).
#-pc

# Require the peer to authenticate itself using PAP.
# This requires TWO WAY authentication - do NOT use this for a standard
# PAP authenticated link to an ISP as this will require the ISP machine
# to authenticate itself to your machine (and it will not be able to).
#+pap

# Don't agree to authenticate using PAP.
#-pap

# Require the peer to authenticate itself using CHAP [Cryptographic
# Handshake Authentication Protocol] authentication.
# This requires TWO WAY authentication - do NOT use this for a standard
# CHAP authenticated link to an ISP as this will require the ISP machine
# to authenticate itself to your machine (and it will not be able to).
#+chap

# Don't agree to authenticate using CHAP.
#-chap

# Disable negotiation of Van Jacobson style IP header compression (use
# default, i.e. no compression).
#-vj

# Increase debugging level (same as -d).  If this option is given, pppd
# will log the contents of all control packets sent or received in a
# readable form.  The packets are logged through syslog with facility
# daemon and level debug. This information can be directed to a file by
# setting up /etc/syslog.conf appropriately (see syslog.conf(5)).  (If
# pppd is compiled with extra debugging enabled, it will log messages
# using facility local2 instead of daemon).
#debug

# Append the domain name <d> to the local host name for authentication
# purposes.  For example, if gethostname() returns the name porsche,
# but the fully qualified domain name is porsche.Quotron.COM, you would
# use the domain option to set the domain name to Quotron.COM.
#domain <d>

# Enable debugging code in the kernel-level PPP driver.  The argument n
# is a number which is the sum of the following values: 1 to enable
# general debug messages, 2 to request that the contents of received
# packets be printed, and 4 to request that the contents of transmitted
# packets be printed.
#kdebug n

# Set the MTU [Maximum Transmit Unit] value to <n>. Unless the peer
# requests a smaller value via MRU negotiation, pppd will request that
# the kernel networking code send data packets of no more than n bytes
# through the PPP network interface.
#mtu <n>

# Set the name of the local system for authentication purposes to <n>.
# This will probably have to be set to your ISP user name if you are
# using PAP/CHAP.
#name <n>

# Set the user name to use for authenticating this machine with the peer
# using PAP to <u>.
# Do NOT use this if you are using 'name' above!
#user <u>

# Enforce the use of the host name as the name of the local system for
# authentication purposes (overrides the name option).
#usehostname

# Set the assumed name of the remote system for authentication purposes
# to <n>.
#remotename <n>

# Add an entry to this system's ARP [Address Resolution Protocol]
# table with the IP address of the peer and the Ethernet address of this
# system.
#proxyarp

# Use the system password database for authenticating the peer using
# PAP.
#login

# If this option is given, pppd will send an LCP echo-request frame to
# the peer every n seconds. Under Linux, the echo-request is sent when
# no packets have been received from the peer for n seconds. Normally
# the peer should respond to the echo-request by sending an echo-reply.
# This option can be used with the lcp-echo-failure option to detect
# that the peer is no longer connected.
#lcp-echo-interval <n>

# If this option is given, pppd will presume the peer to be dead if n
# LCP echo-requests are sent without receiving a valid LCP echo-reply.
# If this happens, pppd will terminate the connection.  Use of this
# option requires a non-zero value for the lcp-echo-interval parameter.
# This option can be used to enable pppd to terminate after the physical
# connection has been broken (e.g., the modem has hung up) in
# situations where no hardware modem control lines are available.
#lcp-echo-failure <n>

# Set the LCP restart interval (retransmission timeout) to <n> seconds
# (default 3).
#lcp-restart <n>

# Set the maximum number of LCP terminate-request transmissions to <n>
# (default 3).
#lcp-max-terminate <n>

# Set the maximum number of LCP configure-request transmissions to <n>
# (default 10).
# Some PPP servers are slow to start up. You may need to increase this
# if you keep getting 'serial line looped back' errors and your are SURE
# that you have logged in correctly and PPP should be starting on the server.
#lcp-max-configure <n>

# Set the maximum number of LCP configure-NAKs returned before starting
# to send configure-Rejects instead to <n> (default 10).
#lcp-max-failure <n>

# Set the IPCP restart interval (retransmission timeout) to <n>
# seconds (default 3).
#ipcp-restart <n>

# Set the maximum number of IPCP terminate-request transmissions to <n>
# (default 3).
#ipcp-max-terminate <n>

# Set the maximum number of IPCP configure-request transmissions to <n>
# (default 10).
#ipcp-max-configure <n>

# Set the maximum number of IPCP configure-NAKs returned before starting
# to send configure-Rejects instead to <n> (default 10).
#ipcp-max-failure <n>

# Set the PAP restart interval (retransmission timeout) to <n> seconds
# (default 3).
#pap-restart <n>

# Set the maximum number of PAP authenticate-request transmissions to
# <n> (default 10).
#pap-max-authreq <n>

# Set the CHAP restart interval (retransmission timeout for
# challenges) to <n> seconds (default 3).
#chap-restart <n>

# Set the maximum number of CHAP challenge transmissions to <n>
# (default 10).
#chap-max-challenge

# If this option is given, pppd will re-challenge the peer every <n>
# seconds.
#chap-interval <n>

# With this option, pppd will accept the peer's idea of our local IP
# address, even if the local IP address was specified in an option.
#ipcp-accept-local

# With this option, pppd will accept the peer's idea of its (remote) IP
# address, even if the remote IP address was specified in an option.
#ipcp-accept-remote
     _________________________________________________________________
   
12.2 ӨϥΤﶵ? (L PAP/CHAP)

   Apөw]^Do̩ҴѪӾAΩjAD
   
   MӡApGLkB@ܡA\Ū˪O(/etc/ppp/options.tpl) H pppd 
   uWϥΤUåBiDAҳsuAtκ޲zϥΪ̤䴩HD
   
   AӪ`No̩ҮiܪsOZ]ϥΤF@ǵ pppd ROCﶵHK
   ƱeվǡD
     _________________________________________________________________
   
# /etc/ppp/options (NO PAP/CHAP)
#
# קK pppd iJI
-detach
#
# ϥμƾھu
modem
# ϥ uucp κAwɥHקKHΦC˸m
lock
# ϥεwyq
crtscts
# be椤Nsإ߬w]e˸m
defaultroute
# ϥΥ"hX"ǦC
asyncmap 0
# ̤jǰeʥ]jp 552 bytes
mtu 552
# ̤jʥ]jp 552 bytes
mru 552
#
#-------END OF SAMPLE /etc/ppp/options (no PAP/CHAP)
     _________________________________________________________________
   
13. pGA PPP Aϥ PAP {(Password Authentication Protocol)

   pGAsAݭn PAP  CHAP {ҡAAݭnh@Iu@D
   
   bWﶵɮפA[WUX
     _________________________________________________________________
   
#
# iD pppd ϥΧA ISP Wٰ{ҹL{"DW"
name <your ISP user name>    # Aݭnܳo@
#
# pGA PPP *A* åBݭnϥ PAP  CHAP {ҡAAhU
# ѡDnbAȤݳsWAɨϥΦﶵ(Yϥϥ PAP  CHAP)
# ]oOiDAۤvbAWѻ{(oXGOi઺A
# ҥHs|)D
#+chap
#+pap
#
# pGAϥΦb /etc/ppp/pap-secrets ɮפgsXKXAhU@檺ѡD
# `N: oM Windows NT WݦsAȸ̪LnsXKXOPD
#+papcrypt
     _________________________________________________________________
   
13.1 ϥ MSCHAP

   Ln Windows NT ݦsA(RAS)iHQ]wϥΤ@
   CHAP(Challenge/Handshake Authentication Protocol) ܺءD bA PPP
   l{XAAiH@ӥs README.MSCHAP80 ɮװQ׳oơD
   
   AiH} pppd \P_AO_nDϥΦ{ҨwD pGA
   ϥ MS CHAP {ҡAA|ݨo˪@
     _________________________________________________________________
   
rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <auth chap 80> <magic 0x46a3>]
     _________________________________________________________________
   
   䪺TO auth chap 80D
   
   Fϥ MS CHAPAAssĶ pppd H䴩wD аѨ PPP l{
   X README.MSCHAP80 psĶHϥΦܺبwD
   
   A٭n`No̪{XuO Linux PPP ȤݳsW MS Windows NT
   AΪD ä䴩N Linux ]߬Ȥݨϥ MSCHAP80 { PPP 
   AD
   
13.2 PAP/CHAP KXɮ

   pGAϥ PAP  CHAP {ҡAAإ߳oǱKXɮסD̬O:
     _________________________________________________________________
   
/etc/ppp/pap-secrets
/etc/ppp/chap-secrets
     _________________________________________________________________
   
   oɮ׾֦̥ rootAsլ rootAPɬFwɮv 740D
   
    PAP P CHAP Ĥ@InXO̬O]pΨӻ{ҹqtΦӤOϥΪ
   D
   
   "? 򤣦PO?" ťAbݡD
   
   @A@Aqإ߻PAإ PPP suAAtΤWϥΪ̳iH
   Φsu - uOAӤwD o]OAiHϥ PPP NӰϰ(LAN)
   s_ӫإߤ@s(WAN)]D
   
   PAP (٦ CHAP ]O)ݭnV{ - ]NOC@qݭn@ӦXkWٻPK
   Xbt@qWD MӡAoäOjѼ PAP {ҳs PPP A
   B@覡D
   
   ]NOAA ISP i|A@ӨϥΪ̦WٻPKXH\AsL̪t
   ζiӳsںWD A ISP AqW٤@I]PA]
   AiॲϥΧAb ISP WϥΪ̦WٰAqW١D
   
   oInϥ pppd ﶵ name user name ӹFD ]ApGAϥΧA ISP
   AϥΪ̦W١A[Wo@
     _________________________________________________________________
   
name your_user name_at_your_ISP
     _________________________________________________________________
   
   A /etc/ppp/options ɮפD
   
   q޳NWӻAPAP ӭnϥ user our_user name_at_your_ISP oӿ
   AOpGϥΨ PAP ܨ pppd oH name Ķ userD 
    name oӿﶵnBOo CHAP ]OĪD
   
   ] PAP/CHAP OΨ{qAb޳NWA]ݭnwݹqW١D M
   ӡAjHu@a ISP ҥHAiHbKXɸ̪ݥDW٨ϥγqΦr
   (*) D
   
   \h ISP hӼƾھ߳s줣P׺ݾA  CӲ׺ݾA
   PW١Aq@]۰u^XD bYǱΤUi]
   ӫܤewDݹqW!
   
13.3 PAP KX

   /etc/ppp/pap-secrets oɮ׬ݰ_ӹ
     _________________________________________________________________
   
# Secrets for authentication using PAP
# client        server       secret     acceptable_local_IP_addresses
     _________________________________________________________________
   
   o|OHťդɦӥB̫@iHOť(pGAϥΰʺA IP ΥѧA
   ISP ҴѪRA IP)D
   
   wA ISP AϥΪ̦W٬O fred ӱKXO flintstone ܨA
   b /etc/ppp/options[.ttySx] ̳]w name fred oӿﶵåBA
   /etc/ppp/pap-secrets ɮ׳]Uo
     _________________________________________________________________
   
# Secrets for authentication using PAP
# client        server  secret          acceptable local IP addresses
fred            *       flintstone
     _________________________________________________________________
   
   oO fred oӥaW١]ڭ̤wgiDL pppd ϥγoӦW١AY
   ϳoOڭ̥aW٤]@ˡ^HΥ󪺦AAϥ flintstone
   oӱKX]tX^D
   
   `Nڭ̨äݭnwa IP }ADnDnڭ̨ϥΤ@ӯSwA
   Tw IP }D YϧAյۥΤ@Tw IPAo]jioq]j
    PPP A(Fwz)\ݨtΦۦw IP XD
   
13.4 CHAP KX

   ثe pppd nDAn{k  oOAqA
   컷ݦAHαqݦAAo{iD
   
   ҥHApGAO fred ӻݬO barney ܡAhb̭ӧO
   /etc/ppp/options.ttySx ̧A] name fred remotename barney ӻݾ
   ] name barney remotename fredD
   
   fred ox /etc/ppp/chap-secrets ɮ׬ݰ_ӷ|
     _________________________________________________________________
   
# Secrets for authentication using CHAP
# client        server  secret            acceptable local IP addresses
fred            barney  flintstone
barney          fred    wilma
     _________________________________________________________________
   
    barney O
     _________________________________________________________________
   
# Secrets for authentication using CHAP
# client        server  secret            acceptable local IP addresses
barney          fred    flintstone
fred            barney  wilma
     _________________________________________________________________
   
   SOn`NO㦳V{ҪءDo\aV
   {ҥۤvåBaVa{ҥۤvD
   
13.5 Bzh PAP {ҳs

   @ǨϥΪ֦̾h@ϥ PAP AisuD pGAϥΪ̦W٦bC
   AQsWPAoäODD
   
   MӡA\hϥΪ̦bӨt(Ϊ̬ƦܬO)W㦳ۦPϥΪ̦W١D ob
   q /etc/ppp/pap-secrets TaܾA@ɷ|DD
   
   pAҮƦaAPPP Ѥ@ؾHJA]D PPP \Aϥ remotename 
   ݦA]w@"QW"D
   
   ]Asⳡ PPP AϥΦW fredDAH覡إ
   /etc/ppp/pap-secrets ɮ
     _________________________________________________________________
   
fred    pppserver1      barney
fred    pppserver2      wilma
     _________________________________________________________________
   
   pAbP pppserver1 suɧAb pppd ﶵϥ name fred remotename
   pppserver1 æbsu pppserver2 ɨϥ name fred remotename pppserver2D
   
   ]AiHϥΦb pppd ϥ file filename Hw ppp ﶵAAiHإߤ@
   OZHsC PPP AATaοﶵɮרåBܥT
   remotename ﶵD
   
14. Hʤ覡إ PPP s

   {bAwgإߧA /etc/ppp/options H /etc/resolv.conf ɮס]HΡA
   pGݭnA٦ /etc/ppp/pap|chap-secrets ɮס^AAiHǥѤʳ]
   PPP suӴճoǳ]w]@ڭ̨ϤʳsuB@Aڭ̱N|۰ʤƸӹL{
   ^D
   
   noơAAqTn饲bmAƾھpUD Minicom
   iH  ALT Q ]Ϊ̦bª minicom Oϥ CTRL A Q^D
   
   TwAH root ñJD
   
   ҰʧAqTn]O minicom^A PPP AåB`@˪ñJ
   D pGAݭnoXYӫOӰ_ʦAݤW PPPANaDAN|ݨA
   HeݹLUD
   
   pGAϥ PAP  CHAP ܡAuOsu컷ݨtӴN|_ʦbݤW
    PPP ӥBANbSñJpUNoǩU]MobYǦAW
   |o - յ۫U Enter ݬݯ_ݨoǩU^D
   
   {bAbnmƾھpUqTn(b minicom ϥ ALT Q 
   CTL A Q)åBb Linux ܲŸU]H root ^J
     _________________________________________________________________
   
pppd -d -detach /dev/ttySx 38400 &
     _________________________________________________________________
   
   -d oӿﶵ}Ұ\  ppp su_ʮɪ͡N|OAtΰO
   ̥h  pGAJW·гo|ܦΪD
   
   AƾھO{bӭn{{A]nإ PPP suDPPP suإ߱N|I
   ɶD
   
   ɧAiH[ PPP ɭAǥѵoXoӫO
     _________________________________________________________________
   
ifconfig
     _________________________________________________________________
   
   bAҾ֦AӺHΦ^³]Ƥ~AAӷ|ݨo˪T:
     _________________________________________________________________
   
ppp0     Link encap:Point-Point Protocol
         inet addr:10.144.153.104  P-t-P:10.144.153.51 Mask:255.255.255.0
         UP POINTOPOINT RUNNING  MTU:552  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0
         TX packets:0 errors:0 dropped:0 overruns:0
     _________________________________________________________________
   
   䤤
     * inet addr:10.144.153.10 OӳsAoݪ IP XD
     * P-t-P:10.144.153.5 OAݪ IP XD
       
   (۵MA ifconfig |io IP XAӬOA PPP AWϥΪD)
   
   `N: ifconfig ]iDAӳswg_ʨåBb!
   
   pGS ppp ˸mCXαo쪺Oo˪T:
     _________________________________________________________________
   
ppp0     Link encap:Point-Point Protocol
         inet addr:0.0.0.0  P-t-P:0.0.0.0  Mask:0.0.0.0
         POINTOPOINT  MTU:1500  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0
         TX packets:0 errors:0 dropped:0 overruns:0
     _________________________________________________________________
   
   A PPP suèSإ... Ѿ\yᦳ~ư`!
   
   A٥iHݨoݾ(Ψ᪺)e|DnoIAUoӫO
     _________________________________________________________________
   
route -n
     _________________________________________________________________
   
   AӬݨ칳o˪:-
     _________________________________________________________________
   
Kernel routing table
Destination     Gateway         Genmask         Flags MSS    Window Use Iface
10.144.153.3    *               255.255.255.255 UH    1500   0        1 ppp0
127.0.0.0       *               255.0.0.0       U     3584   0       11 lo
10.0.0.0        *               255.0.0.0       U     1500   0       35 eth0
default         10.144.153.3    *               UG    1500   0        5 ppp0
     _________________________________________________________________
   
   SO`No̡Aڭ̦Ӷثڭ̪ ppp ˸mD
   
   Ĥ@ODe(H H X)åB\ڭ̬ݨoڭ̥bsD
   - AӴNSFD
   
   ĤGOw]e|( pppd  defaultroute ﶵҫإߪ)D oe
   |iDڭ̪ Linux PC N󤣦bAӺʥ]e쨺 - ڭ̫w
    - ]NO PPP AD  PPP Adڭ̱Nʥ]e
   ںñN^ʥ]e^ڭ̡D
   
   pGAbe椤SݨӶءAǨƤlD SOOpGAtΰO
   (syslog)ܤ@TiDA pppd LkNwsbw]e|AAw
   @w]e|VAAӺɭ - ӳoѫweӨN:
   Au঳@ӹw]e|!!!
   
   Aˬd@UAtΪ_lɮץHXw]eOb̫إߪ(oO
   route add default... Ow)D N令o˪ route add net...D
   
   {bǥ ifconfig XҦ^ IP X 'ping' @UӦAHճo
   ӳsAo
     _________________________________________________________________
   
ping 10.144.153.51
     _________________________________________________________________
   
   Aӷ|칳o˪X
     _________________________________________________________________
   
PING 10.144.153.51 (10.144.153.51): 56 data bytes
64 bytes from 10.144.153.51: icmp_seq=0 ttl=255 time=328.3 ms
64 bytes from 10.144.153.51: icmp_seq=1 ttl=255 time=190.5 ms
64 bytes from 10.144.153.51: icmp_seq=2 ttl=255 time=187.5 ms
64 bytes from 10.144.153.51: icmp_seq=3 ttl=255 time=170.7 ms
     _________________________________________________________________
   
   oN|@CLUh  U CTRL C פAɧAN|hT:
     _________________________________________________________________
   
--- 10.144.153.51 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 170.7/219.2/328.3 ms
     _________________________________________________________________
   
   ثeܦnD
   
   {bյǥѦW ping YxD]O PPP AۤvW١AӬObt@
   Ӧa誺@xADiwg_ʦӥBbB@D^DҦp
     _________________________________________________________________
   
ping sunsite.unc.edu
     _________________________________________________________________
   
   oɷ|@IyA] Linux qAb /etc/resolv.conf ̫w DNS o
   An 'ping' DW٩ҹ IP }  ҥHnߡ]OAN|
   ݨAƾھO{{^D buȪɶAN|칳o˪X
     _________________________________________________________________
   
 PING sunsite.unc.edu (152.2.254.81): 56 data bytes
64 bytes from 152.2.254.81: icmp_seq=0 ttl=254 time=190.1 ms
64 bytes from 152.2.254.81: icmp_seq=1 ttl=254 time=180.6 ms
64 bytes from 152.2.254.81: icmp_seq=2 ttl=254 time=169.8 ms
64 bytes from 152.2.254.81: icmp_seq=3 ttl=254 time=170.6 ms
64 bytes from 152.2.254.81: icmp_seq=4 ttl=254 time=170.6 ms
     _________________________________________________________________
   
   A@AǥѫU CTRL C פXèoέp...
     _________________________________________________________________
   
--- sunsite.unc.edu ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 169.8/176.3/190.1 ms
     _________________________________________________________________
   
   pGAS^Aյ ping @UA ISP Ѫ DNS  IP }D
   pGAqo̱o֩wGAݰ_ӰDbA /etc/resolv.conf ɮ
   ̡D
   
   pGo˷|SGADXbeWAΪ̬OA ISP bNʥ]e^
   AɥXFDD ˬdWeApGSDAMA ISP pD@Ӵ
    ISP nkOΥt@ا@~tΨӳsD pGo˴NiHʡADN
   bAoD
   
   pG@`AǥJoӫOפӳsu
     _________________________________________________________________
   
ppp-off
     _________________________________________________________________
   
   @quȪyAƾھӷ|ۤv_q
   
   pGoӫOLkʧ@ܡA򤣬OAƾھNO_ʧAqTn
   BH +++ _ƾھMAƾھ OK ܮɥH ATH0 _qܡD
   
   Ai]oM pppd ҫإߪw
     _________________________________________________________________
   
rm -f /var/lock/LCK..ttySx
     _________________________________________________________________
   
15. ϧAs۰ʤ - гysOZ

   @AiHΤWzkΤʤ覡ñJAnkOإߤ@ǫOZӦ۰
   AioǤu@D
   
   @ chat OZiH۰ʤñJHΰ_ PPP {ǡA]ҦAo]H
   root άO ppp sղխ^uOoX@ӫOӰ_ʧAsuD
   
15.1 HϥΪ̦W١KX{ҪOZ

   pGA ISP änDϥ PAP/CHAP ܡAoǴNOAǳƪ!
   
   pG ppp Mw˥TAAӷ|ӽdɮסD b PPP 2.1.2 Ob
   /usr/sbin Ӧb PPP 2.2 ̬Ob /etc/ppp/scriptsDoǬO
   
   b PPP-2.1.2
   
ppp-on
ppp-off

   Ӧb PPP-2.2
   
ppp-off
ppp-on
ppp-on-dialer

   {bApGAbϥ PPP 2.1.2AڱjPĳARoǽdɮסD ̦
   bD - niDڥ̤u@oܦn - ڤ]ΤFܪ@qɶ(ӥB٦bo
   HOWTO Ĥ@˥)!
   
   F ppp 2.1.2 ϥΪ̪vqAo̦n˪OɮסAoǬOq ppp 2.2
   oM̮ӪD ګĳAèϥγoǫOZӤnAª
   PPP-2.1.2 OZD
   
15.2 ppp-on OZ

   oOڱҰʳsu@OZĤ@ӡD
     _________________________________________________________________
   
#!/bin/sh
#
# Script to initiate a PPP connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command.  However, it is simple.
#
# These are the parameters. Change as needed.
TELEPHONE=555-1212      # The telephone number for the connection
ACCOUNT=george          # The account name for logon (as in 'George Burns')
PASSWORD=gracie         # The password for this account (and 'Gracie Allen')
LOCAL_IP=0.0.0.0        # Local IP address if known. Dynamic = 0.0.0.0
REMOTE_IP=0.0.0.0       # Remote IP address if desired. Normally 0.0.0.0
NETMASK=255.255.255.0   # The proper netmask if needed
#
# Export them so that they will be available to 'ppp-on-dialer'
export TELEPHONE ACCOUNT PASSWORD
#
# This is the location of the script which dials the phone and logs
# in.  Please use the absolute file name as the $PATH variable is not
# used on the connect option.  (To do so on a 'root' account would be
# a security hole so don't ask.)
#
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
#
# Initiate the connection
#
#
exec /usr/sbin/pppd debug /dev/ttySx 38400 \
        $LOCAL_IP:$REMOTE_IP \
        connect $DIALER_SCRIPT
     _________________________________________________________________
   
   ӳoO ppp-on-dialer OZ:-
     _________________________________________________________________
   
#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
/usr/sbin/chat -v                                       \
        TIMEOUT         3                               \
        ABORT           '\nBUSY\r'                      \
        ABORT           '\nNO ANSWER\r'                 \
        ABORT           '\nRINGING\r\n\r\nRINGING\r'    \
        ''              \rAT                            \
        'OK-+++\c-OK'   ATH0                            \
        TIMEOUT         30                              \
        OK              ATDT$TELEPHONE                  \
        CONNECT         ''                              \
        ogin:--ogin:    $ACCOUNT                        \
        assword:        $PASSWORD
     _________________________________________________________________
   
   b PPP-2.2 Appp-off OZݰ_ӹ:-
     _________________________________________________________________
   
#!/bin/sh
######################################################################
#
# Determine the device to be terminated.
#
if [ "$1" = "" ]; then
        DEVICE=ppp0
else
        DEVICE=$1
fi

######################################################################
#
# If the ppp0 pid file is present then the program is running. Stop it.
if [ -r /var/run/$DEVICE.pid ]; then
        kill -INT `cat /var/run/$DEVICE.pid`
#
# If the kill did not work then there is no process running for this
# pid. It may also mean that the lock file will be left. You may wish
# to delete the lock file at the same time.
        if [ ! "$?" = "0" ]; then
                rm -f /var/run/$DEVICE.pid
                echo "ERROR: Removed stale pid file"
                exit 1
        fi
#
# Success. Let pppd clean up its own junk.
        echo "PPP link to $DEVICE terminated."
        exit 0
fi
#
# The ppp process is not running for ppp0
echo "ERROR: PPP link is not active on $DEVICE"
exit 1
     _________________________________________________________________
   
15.3 so̩ҴѪ_lOZ

   ]osOZⳡAڭ̤Os襦̡D
   
  ppp-on OZ
  
   ANosoӫOZHϬMAb ISP ϥΪ̦W١AAb ISP KXAA
   ISP qܸXD
   
   C@湳O TELEPHONE= ڤW]wFoܼƥ]tbk䪺T (M
   ]Aѳ)D ]sC@ϥA ISP PsuOTD
   
   ӥBApGA(ݭn)b /etc/ppp/options ɮ׸̳]wF IP XARo
     _________________________________________________________________
   
$LOCAL_IP:$REMOTE_IP \
     _________________________________________________________________
   
   ٦ATwܼ DIALER_SCRIPT VANnϥΪOZ|W١D
   ]ApGAʩΧܳoӫOZW١ATwATa ppp-on OZ
   ̪o@D
   
  ppp-on-dialer OZ
  
   oOĤGӫOZګإ߰_ڭ̪ PPP sD
   
   `N: @ chat OZ@bP@̡D˱׽uOΨ@iHL
   Ʀ檺]KH̾\Ū^ӨäOOZզ@D
   
   MӡAJӦaݬݥӸ`HKڭ̤Fѥ(])nOD`
   Ϊ!
   
15.4 @ chat OZ䤤tN...

   @ chat OZO@tC"ݦr" "eXr"tD SOOA`N
   `ObeXYǰTeݬYǰTX{D
   
   pGڭ̦bSTpUneXYǰTܡAڭ̥ϥ
   Ūݦr]ǥ "" ^ӦbSeXTpUnݬYǰT
   @k]! ӥBApGr]tnXӦr]Ҧp NO CARRIER^AAr
   Τ޸AAo chat |r@O@ӶءD
   
   bڭ̼˪O̪ chat OO:
     _________________________________________________________________
   
exec /usr/sbin/chat -v
     _________________________________________________________________
   
   _ chat A-v iD chat NҦXJtΰO̡]q`O
   /var/log/messages^D @Aıo chat OZB@íwӥiaAso@
    -v HK֧AtΰOVD
     _________________________________________________________________
   
TIMEOUT         3
     _________________________________________________________________
   
   o]wҴݪJOɮɭTDpGAϥίuOܺCƾھ
   AionW[oӳ]w줭άOQ!
     _________________________________________________________________
   
ABORT           '\nBUSY\r'
     _________________________________________________________________
   
   pG BUSY rAD
     _________________________________________________________________
   
ABORT           '\nNO ANSWER\r'
     _________________________________________________________________
   
   pG NO ANSWER rAD
     _________________________________________________________________
   
ABORT           '\nRINGING\r\n\r\nRINGING\r'
     _________________________________________________________________
   
   pG]ƪ^RINGRING rADoO]YHqܵA!
     _________________________________________________________________
   
"              \rAT
     _________________________________________________________________
   
   ݼƾھǰeTåBeX AT rD
     _________________________________________________________________
   
OK-+++\c-OK   ATH0
     _________________________________________________________________
   
   o@Ӥ@IA]ϥΤFY chat ~^_\D
   
   ҥNO... OK ApGS]]ƾھäbOҦU^
   eX +++ ]ϼƾھ^OҦз Hayes ۮeƾھr^åB
   OKF۰eX ATH0 ]ƾھ_r^D oAOZiHIAƾھ
   HbuWLk_upD
     _________________________________________________________________
   
TIMEOUT         30
     _________________________________________________________________
   
   ]wOZl檺Oɮɭ 30 DpGAg]OɦӸgL
   chat OZQפDA⥦W[ 45 Χ[D
     _________________________________________________________________
   
OK              ATDT$TELEPHONE
     _________________________________________________________________
   
    OK ]ƾھ ATH0 O^^åBڭ̷QnIsXD
     _________________________________________________________________
   
CONNECT         "
     _________________________________________________________________
   
    CONNECT r]ݼƾھ^ɧڭ̪ƾھeX^åBeX
   ^аTD
     _________________________________________________________________
   
ogin:--ogin:    $ACCOUNT
     _________________________________________________________________
   
   A@Ao̭ڭ̦@ǿ~^_]wDñJ(...ogin:)AOpG
   ڭ̦bOɫeSAeX@Ӫ^r(return)MAMñJܡD
   촣ܮɡAeXϥΪ̦W١]sbϥΪ̬ɭ $ACCOUNT ܼƸ
   ^D
     _________________________________________________________________
   
assword:        $PASSWORD
     _________________________________________________________________
   
   ݱKXܨåBeXKX]A@AsbϥΪ̬ɭ@ܼƸ̡^D
   
   o chat OZXz~^_\D Chat ٦\hnSAo
   Үi٭nhD ԲӪTаѾ\ chat uWϥΤU(man 8 chat)D
   
  bAݱҰ PPP
  
   Mo ppp-on-dialer OZbAñJ|۰ʱҰ pppd Aӻ
   D`nΡAMӬYǦAݭnAզabAWҰ PPPD
   
   pGAݭnbAWUOHҰ PPPAAns ppp-on-dialer OZ
   D
   
   boOZ(b password o᭱)[W  eX r - oOM
   A shell ܲŸ (SOp߹ Bourne shell SNqr - O $
   P [  ] kA)D
   
   @ chat F shell ܲŸAchat UOHҰʧA ISP  PPP 
   AD
   
   HڪҤlӨAڪ PPP AϥμзǪ Linux Bash ܲŸ
     _________________________________________________________________
   
[hartr@kepler hartr]$
     _________________________________________________________________
   
   ӥBݭnڥ
     _________________________________________________________________
   
ppp
     _________________________________________________________________
   
   HҰʦAW PPPD
   
   b\@I~^_OӦnDNAҥHbڪҤlڥ
     _________________________________________________________________
   
        hartr--hartr    ppp
     _________________________________________________________________
   
   oNOApGڦbOɫeS촣ܲŸAeX return åBAݴܲ
   D
   
   @촣ܲŸANeX ppp rD
   
   `N: OѤFbe@浲e[W \ HK chat {oӫOZOb@
   !
   
   OAYǦA|ͫD`hܪܲŸ! Aiॲϥ minicom h
   ñJXHKFѤiHΨӰTw""rD
   
15.5 ϥΩ PAP/CHAP {su chat OZ

   pGA ISP ϥ PAP/CHAP {AA chat OZ|²ohD A
   chat OZҭnuOqܡAݱWuAMN pppd hBzñ
   JƩy!
     _________________________________________________________________
   
#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
exec /usr/sbin/chat -v                                  \
        TIMEOUT         3                               \
        ABORT           '\nBUSY\r'                      \
        ABORT           '\nNO ANSWER\r'                 \
        ABORT           '\nRINGING\r\n\r\nRINGING\r'    \
        ''              \rAT                            \
        'OK-+++\c-OK'   ATH0                            \
        TIMEOUT         30                              \
        OK              ATDT$TELEPHONE                  \
        CONNECT         ''                              \
     _________________________________________________________________
   
15.6 pppd  debug P file option_file ﶵ

   Nڭ̤wgݹLAAiH pppd ϥ -d ﶵ}TOD
   'debug' ﶵMoӬO@˪D
   
   ]ڭ̥bϥηsOZإ߷ssuAۦﶵޡD (ĵi: pG
   AϺЪŶjAO pppd Ti|jqW[AtΰOɤjp
   ϧAJ· - LbAw|suѨùճ\[)D
   
   @Aa{@u@`AAiHhﶵD
   
   pGAOq /etc/ppp/options  /etc/ppp/options.ttySx ɮפsX ppp
   ﶵA iHb pppd W file ﶵwɮצW - Ҧp
     _________________________________________________________________
   
exec /usr/sbin/pppd debug file options.myserver /dev/ttyS0 38400 \
     _________________________________________________________________
   
16. էAsuOZ

   }Ҥ@ӷs Xterm]pGAb X U^ζ}Ҥ@ӷsDxåBH
   root ñJD
   
   boӷsq@~AoXoӫO
   
tail -f /var/log/messages

   ]άOAtΰOɮתW١^D
   
   bĤ@ӵ]άODx^oXoөRO
   
ppp-on &

   ]άOAҽs誺 /usr/sbin/ppp-on W١^D pGASǥѦbo
   ӫOݫw & ϱoOZiJI檺ܡAb ppp ]su
   ɡ^eA^׺ݾܤU
   
   {blܨtΰOɪD
   
   AN|YǹUCF]wA chat w -v åB pppd w -d
   ﶵ^.... oOb pppd _ʸTOtΰOɮ׸̪ chat O
   ZΨ^:
     _________________________________________________________________
   
Oct 21 16:09:58 hwin chat[19868]: abort on (NO CARRIER)
Oct 21 16:09:59 hwin chat[19868]: abort on (BUSY)
Oct 21 16:09:59 hwin chat[19868]: send (ATZ^M)
Oct 21 16:09:59 hwin chat[19868]: expect (OK)
Oct 21 16:10:00 hwin chat[19868]: ATZ^M^M
Oct 21 16:10:00 hwin chat[19868]: OK -- got it
Oct 21 16:10:00 hwin chat[19868]: send (ATDT722298^M)
Oct 21 16:10:00 hwin chat[19868]: expect (CONNECT)
Oct 21 16:10:00 hwin chat[19868]: ^M
Oct 21 16:10:22 hwin chat[19868]: ATDT722298^M^M
Oct 21 16:10:22 hwin chat[19868]: CONNECT -- got it
Oct 21 16:10:22 hwin chat[19868]: send (^M)
Oct 21 16:10:22 hwin chat[19868]: expect (ogin:)
Oct 21 16:10:23 hwin chat[19868]: kepler login: -- got it
Oct 21 16:10:23 hwin chat[19868]: send (hartr^M)
Oct 21 16:10:23 hwin chat[19868]: expect (ssword:)
Oct 21 16:10:23 hwin chat[19868]:  hartr^M
Oct 21 16:10:23 hwin chat[19868]: Password: -- got it
Oct 21 16:10:23 hwin chat[19868]: send (??????^M)
Oct 21 16:10:23 hwin chat[19868]: expect (hartr)
Oct 21 16:10:24 hwin chat[19868]: [hartr -- got it
Oct 21 16:10:24 hwin chat[19868]: send (ppp^M)
Oct 21 16:10:27 hwin pppd[19872]: pppd 2.1.2 started by root, uid 0
Oct 21 16:10:27 hwin pppd[19873]: Using interface ppp0
Oct 21 16:10:27 hwin pppd[19873]: Connect: ppp0 <--> /dev/cua1
Oct 21 16:10:27 hwin pppd[19873]: fsm_sdata(LCP): Sent code 1, id 1.
Oct 21 16:10:27 hwin pppd[19873]: LCP: sending Configure-Request, id 1
Oct 21 16:10:27 hwin pppd[19873]: fsm_rconfreq(LCP): Rcvd id 1.
Oct 21 16:10:27 hwin pppd[19873]: lcp_reqci: rcvd MRU
Oct 21 16:10:27 hwin pppd[19873]: (1500)
Oct 21 16:10:27 hwin pppd[19873]:  (ACK)
Oct 21 16:10:27 hwin pppd[19873]: lcp_reqci: rcvd ASYNCMAP
Oct 21 16:10:27 hwin pppd[19873]: (0)
Oct 21 16:10:27 hwin pppd[19873]:  (ACK)
Oct 21 16:10:27 hwin pppd[19873]: lcp_reqci: rcvd MAGICNUMBER
Oct 21 16:10:27 hwin pppd[19873]: (a098b898)
Oct 21 16:10:27 hwin pppd[19873]:  (ACK)
Oct 21 16:10:27 hwin pppd[19873]: lcp_reqci: rcvd PCOMPRESSION
Oct 21 16:10:27 hwin pppd[19873]:  (ACK)
Oct 21 16:10:27 hwin pppd[19873]: lcp_reqci: rcvd ACCOMPRESSION
Oct 21 16:10:27 hwin pppd[19873]:  (ACK)
Oct 21 16:10:27 hwin pppd[19873]: lcp_reqci: returning CONFACK.
Oct 21 16:10:27 hwin pppd[19873]: fsm_sdata(LCP): Sent code 2, id 1.
Oct 21 16:10:27 hwin pppd[19873]: fsm_rconfack(LCP): Rcvd id 1.
Oct 21 16:10:27 hwin pppd[19873]: fsm_sdata(IPCP): Sent code 1, id 1.
Oct 21 16:10:27 hwin pppd[19873]: IPCP: sending Configure-Request, id 1
Oct 21 16:10:27 hwin pppd[19873]: fsm_rconfreq(IPCP): Rcvd id 1.
Oct 21 16:10:27 hwin pppd[19873]: ipcp: received ADDR
Oct 21 16:10:27 hwin pppd[19873]: (10.144.153.51)
Oct 21 16:10:27 hwin pppd[19873]:  (ACK)
Oct 21 16:10:27 hwin pppd[19873]: ipcp: received COMPRESSTYPE
Oct 21 16:10:27 hwin pppd[19873]: (45)
Oct 21 16:10:27 hwin pppd[19873]:  (ACK)
Oct 21 16:10:27 hwin pppd[19873]: ipcp: returning Configure-ACK
Oct 21 16:10:28 hwin pppd[19873]: fsm_sdata(IPCP): Sent code 2, id 1.
Oct 21 16:10:30 hwin pppd[19873]: fsm_sdata(IPCP): Sent code 1, id 1.
Oct 21 16:10:30 hwin pppd[19873]: IPCP: sending Configure-Request, id 1
Oct 21 16:10:30 hwin pppd[19873]: fsm_rconfreq(IPCP): Rcvd id 255.
Oct 21 16:10:31 hwin pppd[19873]: ipcp: received ADDR
Oct 21 16:10:31 hwin pppd[19873]: (10.144.153.51)
Oct 21 16:10:31 hwin pppd[19873]:  (ACK)
Oct 21 16:10:31 hwin pppd[19873]: ipcp: received COMPRESSTYPE
Oct 21 16:10:31 hwin pppd[19873]: (45)
Oct 21 16:10:31 hwin pppd[19873]:  (ACK)
Oct 21 16:10:31 hwin pppd[19873]: ipcp: returning Configure-ACK
Oct 21 16:10:31 hwin pppd[19873]: fsm_sdata(IPCP): Sent code 2, id 255.
Oct 21 16:10:31 hwin pppd[19873]: fsm_rconfack(IPCP): Rcvd id 1.
Oct 21 16:10:31 hwin pppd[19873]: ipcp: up
Oct 21 16:10:31 hwin pppd[19873]: local  IP address 10.144.153.104
Oct 21 16:10:31 hwin pppd[19873]: remote IP address 10.144.153.51
     _________________________________________________________________
   
   ]`N  ڨϥRA IP X  ]ڪeoǪF PPP Ah
    pGAϥΰʺA IP XAN|ݨoǡD^ ٦AoӦA
   nwROӱҰ PPPD
   
   oݰ_ӨSD  ҥHpPeկA ping @ IP XHΥD
   W١D
   
   _ʧAyTsάO䥦FFåB}l}  AWuF!
   
17.  PPP s

   A PPP sAiHϥμзǪ ppp-off Oפ]nOo  A
   oO root Ϊ̬O PPP sժխ! ^
   
   AN|bAtΰO̬ݨ@ǹo˪F:
     _________________________________________________________________
   
Oct 21 16:10:45 hwin pppd[19873]: Interrupt received: terminating link
Oct 21 16:10:45 hwin pppd[19873]: ipcp: down
Oct 21 16:10:45 hwin pppd[19873]: default route ioctl(SIOCDELRT): Bad address
Oct 21 16:10:45 hwin pppd[19873]: fsm_sdata(LCP): Sent code 5, id 2.
Oct 21 16:10:46 hwin pppd[19873]: fsm_rtermack(LCP).
Oct 21 16:10:46 hwin pppd[19873]: Connection terminated.
Oct 21 16:10:46 hwin pppd[19873]: Exit.
     _________________________________________________________________
   
   Oߨ SIOCDELRT - oLO pppd ܭnFӨSnߪD
   
18. 

   AsuUإi઺]LkB@  chat LkTaAAuT
   jD ҥHAˬdAtΰOMuD
   
18.1 ڧ PPP sĶihO Linux ڨS...

   @ӫD``DOH̤wgN PPP sĶ֤ߤåBհ pppdA
   ֤ߤM軡䴩 PPP! \h]iɭPƵo͡D
   
  AҰʪOT֤߶?
  
   MAwgssĶ֤ߥH䴩 PPPAAoSҰʷs֤ߡD oiO]A
   Ss /etc/lilo.conf í] liloD
   
   ˬdkOUoӫO uname -aAN͹o˪G
     _________________________________________________________________
   
Linux archenland 2.0.28 #2 Thu Feb 13 12:31:37 EST 1997 i586
     _________________________________________________________________
   
   XF֤ߪή֤߽sĶ - o˧AND쩳oͤFơD
   
  AN PPP ֤ߤ䴩sĶҲն?
  
   pGAN PPP ֤ߤ䴩sĶҲաAoSsĶΦw˼ҲաAAN|oo
   ~D ݤ@U [37]Kernel-HOWTO HΦb /usr/src/linux U README ɮ!
   
   t@ӼҲճsiDOAݭnҲզ۰ʦaQJAoS
   kerneld (|۰ʸJòҲժu)D ݤ@U [38]kerneld mini-HOWTO 
   Tp]w kerneldD
   
  AO_AΥT PPP tXA֤?
  
   Aϥ ppp-2.2 HtX֤ 2.0.XD AiHb֤ 1.2.X ϥ ppp-2.2
   (pGA׸ɹL֤)_hAϥ ppp-2.1.2D
   
  AO_H root  pppd?
  
   pGAOH root  pppd (åB pppd å]wH root )
   AAN|즹TD
   
18.2 ڪƾھsWF PPP åҰ

   Pˤ]\ɪ](ѦҤ@U comp.os.linux...)D
   
   @ӳ̱`~ObAOZ̧A֥FYǪFD o̰ߤ@iOAN
   Linux PC PAܰOAtΰO(/var/log/messages)M@@
   aݭӥJӡD AiٻݭnAHʤkJAˬd@MD
   
   AonqYpߦaˬd  ӥB߸̭nOoڭ̤HضɦVA\ŪO
   ̻{ڭJ  ӤOub̪!
   
18.3 tΰO "serial line is not 8 bit clean..."

   o]\h - O serial line looped back AɭP]i
   O\hƱ@(Τ@tC)D
   
   nD쩳oͤFA pppd IᰵFǤIFѡD
   
    pppd ҰʫA|eXsw(link control protocol)ʥ]컷ݾ
   D pGXk^~|U@q(ϥ IPCP - IP ʥ])ӥB
   uboӧڪ IP h~|إߦ]A~ϥ PPP sD
   
   pGA PC eXӫʥ]ɦbݨS PPP AbB@Aoǫʥ]b
   ñJL{NQu^ӡD ]oǫʥ]Oϥ 8 bitsAu^Ӯɷ|NĤKӦ
   I(OAASCII OC줸X)D PPP ]ө覹TD
   
   \h]|yӫʥ]Qu^D
   
  ASTañJA
  
   A chat OZAA PC |Ұ pppdDMӡApGAåb
   AñJL{(]AeX󥲭nbAWҰ PPP O)APPP N|}
   lD
   
   ]swʥ]Qu^A]]oӿ~D
   
   Apߦaˬdíץ(n)A chat OZ(ѨW)D
   
  AåҰʦAW PPP
  
   Y PPP AbAñJL{ݭnAJOΫU RETURN ~|b
   Ұ PPPD
   
   ˬdA chat OZ(ѨW)D
   
   pGAHʤ覡ñJɵo{AeX RETURN ~|bݱҰ PPPA²a
   bA chat OZݥ[Wťժ/eXr(ŪeXrڤW|e
   X RETURN)D
   
  ݪ PPP L{ҰʫܺC
  
   oIޥ!
   
   w]pUA Linux pppd QsĶ̦heXQӳsunDʥ]D pG
   AҰʦICAQӳsuʥ]ib PPP ǳƦneNeXFD
   
   ObAWApppd ݨQӫʥ]Qu^(ĤK줸QIh)ӵD
   
   ӤkiHѨM:-
   
   bA PPP ﶵ[W lcp-max-configure 30D oW[ pppd beeX
   suʥ]̤jƥءD@ӯuܺCAӻAAiٻݭnhD
   
   Ϊ̡AAiH^LӥΤ@ǧޥDAγ\|`NAHñJ PPP A
    PPP ҰʮɡA쪺UĤ@Ӧr`O tilde(~) rD
   
   QΦIڭ̥iHb chat OZݥ[Ws/eXrA tilde
   räeXFD oݰ_ӹo:-
     _________________________________________________________________
   
\~      ''
     _________________________________________________________________
   
   `N: ] tilde r shell ӻSNqA[hXŸ(NOe
   ˱׽u)D
   
18.4 ]߹w]e|

   pG pppd ڵإ߹w]e|AoO](ӨS)ڵΨNw
   w]e|D
   
   q`]O]YǮMNAAӺd]w]e|ӤO]w
   eD
   
   Ѩ Linux NAG P Net2/3 HOWTOs ̪THTa]wAAӺdά
   eD
   
   t@i]OAϰwϥΤFhDθѾӥBAew]w
   Nw]e|Vo̡D
   
   nץoرpݭnhѦӤwgWX HOWTO dFD ĳA
   o@ǱMaN(gѷsDոsΧAPiHݪH)D
   
18.5 䥦D

   ٦\h]ɭP PPP LksάOLkTB@D
   
   {bJӬݬ PPP FAQ ]ouO@tCDP^^DoO@D`Թꪺ
   ӥB״Nb̭! Hڦۤv]^gApGADפb䤤
   AӰDNO PPP ! Hڬҧڨϥ ELF ֤ߦӥBSɯžA
   ֤߼ҲաDbƥX{eڶȶȮOFjѡ]HΤ@ӱߤWjɶ
   ^AGhӨƹWwD`}n PPP AD
   
19. 󽦵ۮɦpoU

   pGAϧA PPP sB@A^Ys\ŪoˬdC@  P
   ɰtX "chat -v..." H "pppd -d" bAtΰO̫إߪX@ѦҡD
   
   ]nѦ PPP H FAQ å[WbgΪ!
   
   pGAM󽦵۪AܡA򦳨ǯb PPP o譱AH|XzB
   Wߪy comp.os.linux.misc P comp.os.linux.networking sDQ׸s
   AH comp.protocols.pppD
   
   AiHձHӤHqll󵹧ڡAگuۤvu@]Mͬ^ӥBڤ
   Oҷ|ܧ֦a^С]YϤ|oˡ^]ooڥثeu@tHΧڨp
   HͬAөw!
   
   SOO  niKŤUӪ~XsDQ׸sW]nǥѹqll
   H  e̮OjqWeӫ̱N൹ /dev/null (DگSOnD
   NH!)
   
20. sB@᪺MD

   @ӰDOAN|o{\hAȴѪ̥u䴩L̵sbM˳sunD o
   ]嫬^OLnҪ :-(  ӥB\hAȴѪ̪䴩BݨӤ@I
   F Unix (or Linux)D ҥHnǳơAqL̨oӦhU!
   
   AMiHL̤@ӦåBШ|L Linux ѡ] ISP UH
   bںλy "D" ӳoNۥL̦baӭnx Linux
     MOoˡ^!
   
20.1 ڵLkݨڳsu PPP AH~@

   n  A PPP suwإߨð椤ӥBAiHǥѸ PPP A IP 
   X]ǥ ifconfig ppp0 OܪĤGө ""  IP X^ ping 
   AAOAĲΨ᪺aD
   
   A ping Ab /etc/resolv.conf ̫w@W٦Ax
   IP XD pGiHܡAANiHbA PPP A~F]D
   o IP XAsu "" IP XۦP^D ҥH{bӸո ping A
   AȴѪ̪ںW  Ҧp
   
ping my.provider.net.au

   pGo˵Lk\AAӦWٸѪRWDDoiO]bA
   /etc/resolv.conf ɮ׸̦r~D qܵAAȴѪ̹өұo
   TåBpߦaˬdoɮסDpGݰ_ӥSDAAqܵAȴѪ̽T
   wAgUT IP Xr
   
   pGMLkB@]ӥBAAȴѪ̽T{LW٦A}åBb
   ^AADb䥦a  ӥBګĳApߦaqYˬdAw
   ˪ Linux]SO`Nɮv^D
   
   pGAMǥ IP X ping AAȴѪ̪W٦AA򤣬OL
   ]ӹqܵL̽Tw@U^NOӻeDoͦbAAȴѪ
   D A@AqܵL̬dݬݬݡD
   
   ӥiO "" O@x Linux PPP AӦb֤߸̨Sw IP
   forwarding ﶵ!
   
   @Ө}nդkOϥΤjhѵ]@M^ Microsoft Windows n
   նiJAAȴѪ̡D pGۦPbbt~@M@~tΤU@`A
   DObA Linux tΤWӤObAAȴѪ̨D
   
20.2 ڥiHHeqllA౵

   pGAϥΰʺA IP XAoOܥ`DѾ\U " [39]]ߪA" @`
   D
   
20.3 H̤ӧڪ finger, WWW, gopher, talk ?

   P˦aApGAϥΰʺA IP XAoOD``D Ѿ\U " [40]]
   ߪA"Ӹ`D
   
21. HʺA IP ѺںA

   pGAϥΰʺA IP X]\hAȴѪ̤]uѰʺA IP XDA
   AsuIXhN^AA{ѳotD
   
   A~eAȽШDN|DDoOAiHϥ sendmail eXqll
   Aqݸ`Iǿ(ftp)ɮסA լd(finger)b䥦WϥΪ̡Asy
   TD
   
   SOOAMAbuWAiH^бa^AWqllDlN¦a
   bAlCA^A ISP AeXD
   
   MӡAAëD@ 24 pɳsbںWACsu]|֦
   ۦP IP XD ҥHAi౵o쪽HAqllAåB]
   ߤ@xyTAɮ׶ǿA! ]ںPAsb@
   ߤ@Aä[iHpôYA]AèSߤ@ IP X(O - 
   ]|ϥγo IP XA̼Wu)D
   
   pGA]ߤ@x WWW]Υ䥦A^AbںWH|
   DDL̪DA{bbuWHΥT]ثe^ IP XD L
   \h޹DiHooTA]AѧAqܵL̡AHoqlliDL
   Ϊ̬ObAAȴѪ̪bWaϥ ".plan" ɮס]]AѪ̤\
   shell  finger s^D
   
   {bAjϥΪ̦ӨAoOӰD  jH̩ҷQnu
   OHePqll]ϥΦbAAȴѪ̤Wb^HγsuyT
   AǿɮץHΨ䥦ںWAȡD pGA֦ѥ~suAȡA
   AuӨoRA IP XDt~@ؤkOseܹLk...
   
21.1 ]wqll

   YϬOʺA IP XAATiHtmAW sendmail ӰeXAba
   ݼgnqllD  sendmail tmi|OܧtkӥBܧx
    ҥHo󤣷|չϧiDAӫ򰵡D MӡAAiӰtmA
   sendmail HKAںAȴѪ̯©RA@ "smart relay" D]b
   sendmail.cf  DS ﶵ^D]󬰸ԲӪtmTаѾ\ sendmail  
   øԾ\H sendmail  m4 tmDXGiHTw̭@w@ӯŦX
   Aݭn^D
   
   ]@D`nѦb Sendmail(O'Reilly and Associates ٥ 'tg')
   AjϥΪ̨ӻbӹLxF!
   
   @Atmn sendmail AAiQb PPP su@_ʪɭԴNn
   sendmail ְeXݦblC̪TD no򰵪ܡA[JoO
   
sendmail -q &

   A /etc/ppp/ip-up OZ(ѨU)D
   
   ѥ~qllʺA IP XӨOӰDDBzoӰDkO:
     * tmAϥΪ̶l{ҦeXhlb "reply to" YӦb
       AںAȴѪ̤Wqll}D
       pGiHܡAA]ӱNA FROM a}]A ISP Ѫqll}
       D
     * ϥ popclient {qAAȴѪ̨^AqllDΪ̡ApG
       A ISP ϥ IMAPAϥΤ䴩 IMAP ϥΪ̶l{(Ҧp pine)D
       
   AiHǥѦb /etc/ppp/ip-up OZJnOHKbɱNoӹL
   {۰ʤ(ѨU)D
   
21.2 ]waW٦A

   MAjiϥΦbA ISP ̪W٦AAA]iH]ߤ@xaȦs
   MΡ]n^W٦AAǥ ip-up OZҰʡD ]a]ȦsMΡ^W
   ٦AnBOpGAbsu``pôۦP`I򥦥iH`٧A
   ]HWe^D
   
   ȦsMΦW٦A]b named.boot ɮ׸̨ϥΤ@ 'forwarders' VA
   ISPs  DNS^W٦Atm²D O'Reilly book (DNS and Bind) 
   ҦAݭnDFD
   
   ]@ [41]DNS-HOWTO iHoD
   
   pGA@pϰgѧA Linux PC κں(Ҧpϥ IP )
   A baݰW٦A(ϥ forwarders ɦV)|OӦnDNA]|
   CѦWٸѪRҦΪWeΩɶD
   
   @~@ӭnI: AnbA ISP ̶}lҥΤ@xnAȦsM
   W٦Ae߰ݧA ISP vD TtmAA DNS @I
   |yA ISP xZAOpGAFǤAi|ް_·...
   
22. ϥ PPP sӺ

   򥻤Ws@x Linux PC  PPP AHΨϥ PPP sӰϰS
   tODOoAPPP O@IIwD
   
   MӡAAToA󻼰e|pإߪDD\Ū NET-2 howto H
   Linux Network Administrator Guide (NAG)D A]No{o "TCP/IP
   Network Administration" (by O'Reilly and Assoc - ISBN 0-937175-82-X)|
   ΪUD
   
   pGAQbsY@ϥΤ@ӺXΡAA|o{ Linux
   (draft) sub networking mini-howto ΪD oib [42]Linux Sub
   networking mini-HOWTO D
   
   FsӰϰAAϥΪOP IP s(άOP˺s
   )ӥBANoϥRA IP X  Ψϥ IP ˡD pGAQn
    IP ˪ܡAѾ\ IP masquerade mini-howto ]wСD
   
22.1 ]w IP X

   P䥦ϰ޲z̨Өݪ PPP ɭϥΪ IP XD pGA
   RA IP XAoi]|nDASwqܸXD
   
   {bsA /etc/ppp/options[.ttyXX] ɮ  󦹳subAo@ݨ
   ίSwƾھΦCOӦnDND Ai]onhܧA
   /etc/ppp/options ɮ  åB]n䥦suإ߾A
   options.ttyXX ɮ!
   
   bAﶵɮ׸̫w PPP sAoݪ IP XAoPeҮiܨϥR
   A IP X覡ۦPD
   
22.2 ]we|

   AwƧAϰWʥ]gL PPP sҫإߪɭeXhDoOӨ
   qL{D
   
   AAإ߱q PPP sshe|D p
   GӳsqںAoiHǥ pppd ﶵ 'defaultroute' ѥ
   vإߪw]e|ӳBzӧAơD
   
   MӦpGӳsuOsӰϰA򥲶[J@ӫwe|
   D oOb /etc/ppp/ip-up OZϥ 'route' O檺]Ѿ\su_
   ... Ӹ`̦p檺С^D
   
   AoĤGƬOiDbAϰW䥦qox Linux qڤWO
   ppp sq'hD'D
   
   MAoǤu@ӳst@ݪ޲z̤]o! MӡA]o/LN
   ʥ]eAA@ӫwe|OnAӤOw]e
   |(DݪϰOsWAhκں)D
   
22.3 w

   pGAϥ PPP sAϰںWh  άƦܥuO@"~
   "ϰWhAAҼ{wʪDD ڱjPyAҼ{]ߤ@x
   !
   
   AӦbH覡s~ϰκںeiDAϰ
   z̡D So˰ܥiϧASWY·!
   
23. إ߳s - /etc/ppp/ip-up OZ

   @ PPP sإ߫A pppd |M /etc/ppp/ip-up OZD pGoӫO
   ZsbåBiH檺ܡA PPP A{N|oӫOZD o\A
   ۰ʰi঳nSe|OΥAQbC PPP sҰʮ
   檺ʧ@D
   
   oLNO@봶q shell OZAiHOZవ(]NOA
   AQ)D
   
   ҦpAAiQn sendmail ֳBzblCݥ~eTD
   
   aAAiHb ip-up ̴J@ǫOo]ϥ POP^bA ISP 䵥
   ۧAqllD
   
   Lb /etc/ppp/ip-up ]ǭ:-
   
     * HܼƥHW[wʡDo]NOAXɪ
       |WٵD
     * ޳NWӻA/etc/ppp/ip-up O@ӵ{ӫDOZD oOiHQ
        - ]]bĤ@}l㦳зǪ file magic
       (#!/bin/bash) åBQ root ŪΰD
       
23.1 Se|

   pGAsOӰϰAANo]ߤ@Ө '~' ϰw
   e|D oiHܮeϥ /etc/ppp/ip-up OZFDߤ@xoͦb
   Ah PPP sɡD
   
   oO] /etc/ppp/ip-up oӫOZOѨC@Ӱ_ʪ ppp suҰ檺A
   HAonpߦaC@Ӱ_ʪs楿TeO!
   
23.2 BzqllC

   ӰϰsإߤAAiQnTwbCqllQMX
   - e쥦تaD oiHξAIs sendmail ӹFD
   
   b pppd ǻOZSwѼƤWϥ bash  `case' ԭzӧoӤu@
   D ҦpAoOڥΨӳBzڭ̪ssγqڮaAӺ]]OѬ
   P PPP ABz^/etc/ppp/ip-up OZD
   
23.3 @ /etc/ppp/ip-up OZҤl

   UҤlѤPϥνdҡD
     _________________________________________________________________
   
#!/bin/bash
#
# Script which handles the routing issues as necessary for pppd
# Only the link to Newman requires this handling.
#
# When the ppp link comes up, this script is called with the following
# parameters
#       $1      the interface name used by pppd (e.g. ppp3)
#       $2      the tty device name
#       $3      the tty device speed
#       $4      the local IP address for the interface
#       $5      the remote IP address
#       $6      the parameter specified by the 'ipparam' option to pppd
#
case "$5" in
# Handle the routing to the Newman Campus server
        202.12.126.1)
                /sbin/route add -net 202.12.126.0 gw 202.12.126.1
# and flush the mail queue to get their email there asap!
                /usr/sbin/sendmail -q &
                ;;
        139.130.177.2)
# Our Internet link
# When the link comes up, start the time server and synchronise to the world
# provided it is not already running
                if [ ! -f /var/lock/subsys/xntpd ]; then
                        /etc/rc.d/init.d/xntpd.init start &
                fi
# Start the news server (if not already running)
                if [ ! -f /var/lock/subsys/news ]; then
                        /etc/rc.d/init.d/news start &
                fi
                ;;
        203.18.8.104)
# Get the email down to my home machine as soon as the link comes up
# No routing is required as my home Ethernet is handled by IP
# masquerade and proxyarp routing.
                /usr/sbin/sendmail -q &
                ;;
        *)
esac
exit 0
     _________________________________________________________________
   
   _ʳqڭ Newman ն骺 ppp sHγoӫOZGAڭ̳̫oU
   oӻeO]ox]Oڭ̳q`Ϊ PPP AåBBzڭ̪
   ںs^D ڤwgboӿX̥[J@ǵѥHCӶجO:
     _________________________________________________________________
   
[root@kepler /root]# route -n
Kernel routing table
Destination     Gateway         Genmask         Flags MSS    Window Use Iface
# the HOST route to our remote internet gateway
139.130.177.2   *               255.255.255.255 UH    1500   0      134 ppp4
# the HOST route to our Newman campus server
202.12.126.1    *               255.255.255.255 UH    1500   0       82 ppp5
# the HOST route to my home ethernet
203.18.8.104    *               255.255.255.255 UH    1500   0       74 ppp3
# two of our general dial up PPP lines
203.18.8.64     *               255.255.255.255 UH    552    0        0 ppp2
203.18.8.62     *               255.255.255.255 UH    552    0        1 ppp1
# the specific network route to the Newman campus LAN
202.12.126.0    202.12.126.1    255.255.255.0   UG    1500   0        0 ppp5
# the route to our local Ethernet (super-netting two adjacent C classes)
203.18.8.0      *               255.255.254.0   U     1500   0     1683 eth0
# the route to the loop back device
127.0.0.0       *               255.0.0.0       U     3584   0      483 lo
# the default route to the Internet
default         139.130.177.2   *               UG    1500   0     3633 ppp4
     _________________________________________________________________
   
23.4 Bzqll

   W@`ΦpBz~el  @suإߤ²aǥѲMXlC
   FD
   
   pGAsssAAiH򻷺ݰϰ޲z̨սХ
   ̰槹ۦPʧ@D ҦpAbڭ̪ss Newman ն騺@ݪ
   /etc/ppp/ip-up OZݰ_ӹ:
     _________________________________________________________________
   
#!/bin/bash
#
# Script which handles the routing issues as necessary for pppd
# Only the link to Hedland requires this handling.
#
# When the ppp link comes up, this script is called with the following
# parameters
#       $1      the interface name used by pppd (e.g. ppp3)
#       $2      the tty device name
#       $3      the tty device speed
#       $4      the local IP address for the interface
#       $5      the remote IP address
#       $6      the parameter specified by the 'ipparam' option to pppd
#
case "$5" in
        203.18.8.4)
                /usr/sbin/sendmail -q
                ;;
        *)
esac
exit 0
     _________________________________________________________________
   
   MӦpGAuϥΰʺA IP X覡 PPP susA ISPAAoqbA
   ISP WboAqllD oq`Oϥ POP(Post Office
   Protocol)wӹFDiHϥ `popclient' {Bzoӵ{  
   ip-up OZ]iHA۰ʤƳoӵ{ǡD
   
   ²aإߤ@ /etc/ppp/ip-up OZA䤤]t_ popclient {A
   OD bڰ Red Hat Linux WqW]Ȧɧڳaۥ^
   Oo˪
     _________________________________________________________________
   
popclient -3 -c -u hartr -p <password> kepler.hedland.edu.au |formail -s procma
il
     _________________________________________________________________
   
   AiHϥ slurp Ψ䥦nHۦP覡osDAHνѦpA
   D OoAip-up oӫOZuOӼзǪ bash OZ]iHΨӦ۰ʤƷC
   A PPP sإ߮ɻݭn\D
   
24. ϥ /etc/ppp/ip-down

   AiHإߤ@OZbs@Dosb /etc/ppp/ip-down 
   D oiHΨ٭Ab /etc/ppp/ip-up OZSʧ@D
   
25. ϰWeD

   pGAwgsbYӰϰWOMQnϥΦbAӤH Linux W
   pppd ܡAAonIYǻeʥ]DAqAAϰ]gL
   AAӺɭ^HΨ컷ݪ PPP AM~@ɡD
   
   o@`äձЧAʥ]e  uBz@²檺ASwe
   p]RA^!
   
   pGAxeܡAڱjPayA\Ū Linux Network
   Administrator Guide (NAG)D P O'Reilly  "TCP/IP Network
   Administration" ]HD`eFѪ覡[\FoӥDDD
   
   RAe|򥻳WhOw]e|ӬOV}X̦h@
   D 䥦hbe椤Jwe|D
   
   ڰߤ@bo̤ЪpOA Linux b@ӨSsWںϰ
   W  ӧAQnbMs۰ϰpUںWѦۤv
   ΡD
   
   ATwAAӺe|O]qLAϰw}
    O]w]e|!
   
   ǥѵoX route OˬdAAӷ|ݨpUT:
   
[root@hwin /root]# route -n
Kernel routing table
Destination     Gateway         Genmask         Flags MSS    Window Use Iface
loopback        *               255.255.255.0   U     1936   0       50 lo
10.0.0.0        *               255.255.255.0   U     1436   0      565 eth0

   pGAAӺɭ (eth0) Vw]e|A]b eth0 Ӧ檺Ĥ@CW
   | "default" rˡ^AonܧAAӺ_lOZϥVSw
   XӫDw]e|]ѷ Net2 HOWTO H NAG^D
   
   oN\ pppd ]ߧAw]e|ApUҥ:
   
[root@hwin /root]# route -n
Kernel routing table

Destination     Gateway         Genmask         Flags MSS    Window Use Iface
10.144.153.51   *               255.255.255.255 UH    488    0        0 ppp0
127.0.0.0       *               255.255.255.0   U     1936   0       50 lo
10.1.0.0        *               255.255.255.0   U     1436   0      569 eth0
default         10.144.153.51   *               UG    488    0        3 ppp0

   pPAҨ쪺Aڭ֦̾g ppp0  PPP A(10.144.153.51)D
   e]wӥB]֦ϥ PPP A@hDw]e]wD
   
   pGA]won񦹧  \ŪwgLeýбЦbA
   Ma!
   
   pGAϰWwgѾAbA̤wgإߤFqes@
   hDD AAw]e| PPP ɭ  åBϨ䥦e|
   wѸѾAȪD
   
25.1 wW`Nƶ

   Ab{ϰW]w@x Linux sںWAAbı
   wgں  HΦb̪bȭ  }FAӰϰD bA
   o˰eAڱjPayAбЧA޲z̨ðѦҸӳBwD pG
   A PPP suQ\aΨӧAxܡAA̤֤]|ۭPP٪ϥ
   ̡AΨtΪ޲ẕjPD A]i|o{AۤvmD`Y
   ·!
   
   bAsϰںWheAƦܬOʺAsuAӭnҼ{w
   ~  ]IѦ O'Reilly  "Building Internet Firewalls"!
   
26. إ PPP A

   pPeLAou@\hkiHiHFD ڦbo̩ҤЪOګ
   򰵪k]ϥ Cyclades hCd^HΤ@զ۰౵qܽuD
   
   pGAwڦbo̤ЪkAЦۥѦaϥΧAۤvkD LAګܼ
   NboϥλӪ]tB~覡DҥHAЧA׸kH
   !
   
   Ъ`NAo@`up]w Linux @ PPP ADڤQ]^]
   t]wS׺ݾAγo@TD
   
   ӥBAک|LtX shadow KXϥΡ]ӷ|^D]ثeЪ
   Tä]t shadow ݭn]wD
   
26.1 sĶ֤

   ҦLsĶ֤ߥHή֤߻P pppd AΡDo`]Aw
   gŪLoe`!
   
    PPP AAAbA֤ߤ]t IP forwarding \D A]i
   |Ʊ]t䥦\]O IP firewalls, accounting ^D
   
   pGAϥΦhCdAA]TabA֤ߤ]tnXʵ{
   !
   
26.2 AtΪ[

   ڭ̨ϥάۦPϥΪ̦W١KXtﴣѼ PPP (and SLIP) bH
   shell bD o˰nB]ڭ̦Ө^OϥΪ̥uݭn@ӱbNiHϥ
   ҦsuD
   
   ]ڭ̬OШ|´Aڭ̨ä¾HξǥͪϥΦOAҥH߭p
   PODD
   
   bڭ̪`IPںڭ̳]m@xAӳo|YǨϥΪ̪
   sA]uObڭ̪]ں^𤺡]zѫܩAL
   𪺲Ӹ`]|bX{ӥBb󱡪pUSY^D
   
   ϥΪ̫إ߳sڭ̸`I PPP s{ǡ]MObL֦̾Īb^
   O:
     * Jڭ̪۰౵]oOs@ƾھ@qܸX  Ĥ@
       xŶƾھ|_Jqܡ^D
     * ϥΤ@靈ĪϥΪ̦W٥HαKXñJD
     * b shell ܲŸUAoX ppp OHҰʦAW PPP {ǡD
     * ҰʥL̾W PPP]iHO Windows, DOS, Linux, MAC OS Υ
       @~tΪ  oOL̪D^D
       
   oxACӼJϥέӧO /etc/ppp/options.ttyXX ɮסAӳo
   ʺA IP t]wݪ IP XD AaȤݨϥΥNz}ѪR
   w(proxyarp)ӻeʥ]]gѾA pppd ﶵ[H]w^D oקKFϥ
   routed άO gated ݨDD
   
   ϥΪ̱qL̨ݱ_ɡApppd |XӨçiDƾھn_APɰ
   PPP sD
   
26.3 һݪn

   AN|ݭnUCn:-
     * LinuxAAasĶH]tnﶵD
     * AXA֤ߪ pppd D
     * @MoaBzƾھqT 'getty' {D
       bo̧ڭ̨ϥΪO getty_ps2.0.7h AnҼ{ mgettyD ڤF
       mgetty iHXϥ pap/chap Is] pap O Windows 95 ϥΪ
       ǡ^æ۰ʦa_ pppdAOک|sLD
     * AϥΪ̯s@xW٦A (DNS)D
       pGi઺ܧAuӰAۤvW٦A...
       
26.4 ]wзǪ(shell access)

   bAiH]ߧA PPP AeAA Linux BzзǪ
   sD
   
   oϥλä[\o]wkDаѾ\Aܤ getty H
   [43]Serial HOWTO ̦o]wTD
   
26.5 ] PPP ﶵɮ

   ANoҦ]ߤ@ӥ骺 /etc/ppp/options ɮסA䤤OqΪ
   D ڭ̨ϥΪﶵO:
     _________________________________________________________________
   
asyncmap 0
netmask 255.255.254.0
proxyarp
lock
crtscts
modem
     _________________________________________________________________
   
   `N - ڭ̨SϥΥ(㪺)e]w - SOOǫS defaultroute
   ﶵD ozѬO]ҦA( PPP A)ҭnNONʥ]q PPP Ȥ
   ݻeAϰκںåBNʥ]ѧAϰeAȤ
   D
   
   һݪuOȤDeAӨϥ pppd  'proxyarp' ﶵF
   D
   
   o 'proxyarp' ﶵ]ߤ@ӥNz}ѪRwة PPP A}
   Rw(ARP)椤A򥻤WNO 'NҦn PPP Ȥݪʥ]e'D
   oOإ߳@ PPP Ȥݪe|²檺@Ӥ覡 - Aγoؤ覡
   bӰϰeʥ] - A[JAeӤϥΥNz}
   ѪRwD
   
   AXG@w|Ʊ洣ѰʺAt IP XAϥΪ̡DAiHǥѤt
   IP XCӼӹFتD {bAACӼإߤ@
   /etc/ppp/options.ttyXX ɮסD
   
   bo̭Aun²aJa]A^ IP XθӰҭnϥΪ IP 
   XDҦp
     _________________________________________________________________
   
kepler:slip01
     _________________________________________________________________
   
   SO`NAboɮ׸̧AiHϥΦXkDW١]ڵo{ڥuOobں
   WnP]ƪ IP X  Wٷ|󦳷Nq~^!
   
26.6 ]w pppd HKϥΪ̡]\a^楦

   ]_ ppp st۰tm֤߳]ơ]ɭ^ξޱ֤߻e檺ʧ@
   AҥHݭnSOv  ƹWݭn㪺 root vD
   
   BOA pppd wg]piHwa]wH root DҥHA
   
     _________________________________________________________________
   
chmod u+s /usr/sbin/pppd
     _________________________________________________________________
   
   ACXoɮ׮ɡAӷ|pPo
     _________________________________________________________________
   
-rwsr-xr-x   1 root     root        74224 Apr 28 07:17 /usr/sbin/pppd
     _________________________________________________________________
   
   pGASo˰AϥΪ̱N]ߥL̪ PPP sD
   
26.7  pppd ]w@ӥ쪺OW(alias)

   F²Ƨڭ̼ PPP ϥΪ̪su{ǡAڭ̫إߤ@ӥ쪺OW(b
   /etc/bashrc)p@LñJun@²檺ON_ʦAݪ ppp
   D
   
   oݰ_ӹ
     _________________________________________________________________
   
alias ppp="exec /usr/sbin/pppd -detach"
     _________________________________________________________________
   
   ҧ@O
     * exec : NHoӫOҰ檺{b檺{]boӨҤlO
       shell^D
     * pppd -detach : _ pppd åBnⲣͪ{ǩJIDoTO
       pppd ɤ|dU{ǡD
       
   @ӨϥΪ̹oñJɡAL̦b 'w' Xݰ_ӷ|o
     _________________________________________________________________
   
  6:24pm  up 3 days,  7:00,  4 users,  load average: 0.05, 0.03, 0.00
User     tty       login@  idle   JCPU   PCPU  what
hartr    ttyC0     3:05am  9:14                -
     _________________________________________________________________
   
   No... ڧiDLAoO@ӫ²檺A򥻪 PPP At!
   
27. b null modem (su)Wϥ PPP

   oD`a² - ]SƾھҥHƱܱoeD
   
   Aܨ䤤@'A'AbCW] getty HKAiH
   q'Ȥ'ϥ minicom hΦCHճsʡD
   
   @A\FAAiHho gettyADAQΨϥΪ̦W/KXӽT{su
   D ]Aⳡ'鱱v'Aڰ]AäQpD
   
   {bAbAݰh getty ýT{AwbⳡWTaϥ
   'setserial' ӳ]wCD
   
   ҦAnNObӨtΤWҰ pppdD ڰ]AbxWϥ
   /dev/ttyS3 إ߳suD ]AbⳡWO:-
     _________________________________________________________________
   
pppd -detach crtscts lock <local IP>:<remote IP> /dev/ttyS3 38400 &
     _________________________________________________________________
   
   oN|إ߰_s - ثeA٥we|D AiHbCW
   ping OӴճsDpGo˥iHܡAפ䤤@ pppd {ǥHs
   D
   
   Aݭne|ڤWݧAsQөwD @ӻA䤤@|s
   WAӺ(Ϋ᪺)]һݪeM PPP APȤݤ@ˡD
   
   ]b㦳AӺWApppd OӬO
     _________________________________________________________________
   
pppd -detach crtscts lock proxyarp <local IP>:<remote IP> /dev/ttyS3 38400 &
     _________________________________________________________________
   
   ӥt@WO
     _________________________________________________________________
   
pppd -detach crtscts lock defaultroute <local IP>:<remote IP> /dev/ttyS3 38400
&
     _________________________________________________________________
   
   pGAsӺ(ϥΦCs!)ΦeݨDAAiHӳo
   eҴkӨϥ /etc/ppp/ip-upD
   
   Robert Hart
   Port Hedland, Western Australia
   Melbourne, Victoria, Australia August/October 1996 January/March 1997

References

   1. mailto:hartr@interweft.com.au
   2. http://ultima.ncnu.edu.tw/~asdchen/
   3. http://www.phys.ntu.edu.tw/~cwhuang/pub/
   4. http://sunsite.unc.edu/LDP/HOWTO/
   5. http://www.interweft.com.au/other/ppp-howto/ppp-howto.html
   6. ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/other-formats
   7. http://www.interweft.com.au/
   8. http://www.RedHat.com/
   9. http://sunsite.unc.edu/mdw/HOWTO/mini/IP-Masquerade
  10. http://www.in.net/info/modems/index.html
  11. http://sunsite.unc.edu/mdw/LDP-books/nag-1.0/nag.html
  12. http://sunsite.unc.edu/mdw/HOWTO/NET-2-HOWTO.html
  13. http://www.in.net/info/modems/index.html
  14. http://www.ora.com/
  15. ftp://sunsite.unc.edu/pub/Linux/docs/faqs
  16. http://sunsite.unc.edu/mdw/
  17. http://summer.snu.ac.kr/~djshin/linux/mail-list/index.shtml
  18. ftp://sunsite.unc.edu/pub/Linux/system/network/serial/ppp/ppp-2.2.0g.tar.gz
  19. file://localhost/tmp/zh-sgmltools.441/PPP-HOWTO.txt.html#Kernel configuration
  20. file://localhost/tmp/zh-sgmltools.441/Kernel-HOWTO.html
  21. file://localhost/tmp/zh-sgmltools.441/PPP-HOWTO.txt.html#Server info
  22. file://localhost/tmp/zh-sgmltools.441/PPP-HOWTO.txt.html#Modem
  23. file://localhost/tmp/zh-sgmltools.441/PPP-HOWTO.txt.html#DNS
  24. file://localhost/tmp/zh-sgmltools.441/PPP-HOWTO.txt.html#root
  25. file://localhost/tmp/zh-sgmltools.441/PPP-HOWTO.txt.html#options
  26. file://localhost/tmp/zh-sgmltools.441/PPP-HOWTO.txt.html#pap
  27. file://localhost/tmp/zh-sgmltools.441/PPP-HOWTO.txt.html#manual
  28. file://localhost/tmp/zh-sgmltools.441/PPP-HOWTO.txt.html#automate
  29. file://localhost/tmp/zh-sgmltools.441/PPP-HOWTO.txt.html#off
  30. file://localhost/tmp/zh-sgmltools.441/PPP-HOWTO.txt.html#problems
  31. file://localhost/tmp/zh-sgmltools.441/PPP-HOWTO.txt.html#ip-up
  32. file://localhost/tmp/zh-sgmltools.441/PPP-HOWTO.txt.html#dynamic-server
  33. file://localhost/tmp/zh-sgmltools.441/Kernel-HOWTO.html
  34. ftp://sunsite.unc.edu/pub/Linux/kernel/v2.0
  35. ftp://sunsite.unc.edu/pub/Linux/kernel/old
  36. http://www.in.net/info/modems/index.html
  37. file://localhost/tmp/zh-sgmltools.441/Kernel-HOWTO.html
  38. file://localhost/tmp/zh-sgmltools.441/mini/Kerneld.html
  39. file://localhost/tmp/zh-sgmltools.441/PPP-HOWTO.txt.html#dynamic-server
  40. file://localhost/tmp/zh-sgmltools.441/PPP-HOWTO.txt.html#dynamic-server
  41. file://localhost/tmp/zh-sgmltools.441/DNS-HOWTO.html
  42. http://www.interweft.com.au/other/
  43. file://localhost/tmp/zh-sgmltools.441/Serial-HOWTO.html
