
                             SLIP/PPP ģ HOWTO
                                       
3.0 ( 8/7/97 Irish )

   Ľ͸ SLIP/PPP ģƩ SLiRP  TIA  Linux Box
   ӵһվ̨[generic site]˲֤ʹñļĽ ӭ
   ָ̡
   
   ҽ᳢߽п£һ 
   ȡصļַ
   
   ˣǿʼ!!
     _________________________________________________________________
   
     * 1.0 ģ?
       ϣ˽ SLIP-PPP ģ൱Ҫġȣ
       㲢ĻϰװģǰװԶϡĻ
       ֻҪ ġ֧Ԯ TCP/IP  SLIP  PPP ͨѶЭ⻹ҪһЩ
       ͻˡ
       ģĻ͸ SLIP/PPP Զ·
       ģشһҪ󲢽֮·ϡȻᣬ·ϵ
       Ӧͻ Զϵʺʱģٴ SLIP/PPP
       ߴĻ ϡԣ·˵ֻںԶϵ
       ʺŹͨǶ˵ ͺ·һ
       ӦÿԿʱ·ϵԻˡƩ˵talk
       ʽûа취͸ģΪⲿ㷢̸ʱ
       ʵǳ ԶϽ talk سʽ[daemon]Ļ
       ϡ
       ģ SLIP/PPP Ĳͬ춣ģûָ IP λַ
       㡣 סֻǰһʺת SLIP/PPP ѡ
     * 1.1 ʲ TIA ?
       [1]·ת [The Internet Adaptor] һȺ marketplacce.com 
       ԱдġĿǰ Ѿ뿪ùҲΪѾǸĲƷˣ
       Ѿֹͣзˡµ 汾 2.05 ҪʹTIAʹ
       ô˰汾ע⣡µıTIA ĿǰֻṩλַȨ[site
       licence]
     * 1.2 ʲ SLiRP ? SLiRP һ GNU Ȩ壬ĿǰѾ
       ʽʮȶ Ĺܽ TIA Զ࣬(˵)Դϲ
       ԽڸLinux FTPվ ҵ塣
     * 1.3 ʲ Term ?
       ĳЩ£û root Ȩޣûа취
        ˰װ SLIP  dip ʱ㼸ѡҪʹ Term ˡ֪
       Term ϸѶ  Sunsite ϵ HOWTO
     * 1.4 ʲ SLIP/PPP ?
       ٣ԷרҵĲʹ˵ڵԺļ۸
       SLIP/PPP 㸺𣬻ҪǾɣǱģ
       ĺáģ ṩȫһ̵ķǽ
       ͺṩ[provider]һ ȫҲøۣ͸ģ
       ٶȣҲ֧Ԯе·Э ֮ʹģ
       ·һѡ񣬶ҶԴ˵ģͺ ˡ
     _________________________________________________________________
   
   ˣЩҶ֪! ҵҪμģ?
   
   û⣬ＱͿ쵽Ƕˡ֮ǰһЩҪ֪Ѷ
   ͽһĽ͡
   
   ȣ㲻֪ IP λַĻṩǶȡ
    ϵͳʾ¼'who'Ķǵ /etc/hosts 
   ֱ ǰ!õ֮ᣬ㻹Ҫ֪ POP/SMTP 
   NNTP ŷ IP λַ( 㲻֪ʲĻңֱʰɣ
   Ҫ)
   
   Ҽ򵥵һʲ[hostnames][domain
   names] ƵĵһݾƣʣĲݾ
   [domain]˵ hostname.domain.name(Ҳĸݵ
   hostname.do.main.name)ߺ һЧ[Fully
   Qualified Domain Name, FQDN]
   
    Linux Ǵ /etc/HOSTNAME ǵģҲԸ
   ʵ ϣҲ(ʹ SlackwareԤֵ
   "darkstar.frop.org")ֱ ༭ /etc/HOSTNAME ĳκҪ
    --- סʹģʵ ·ȫεģ
   ԣȡʱܵķɡȻ Ҫʹ
   SLIP-PPP ӣǵҪȷҪṩߵ·[sub-net] 
   ˵ṩ "info.superhiway.com"
   "superhiway.com" ƾ "info"Խ
   "offramp.info.superhiway.com"߾ͽ "offramp.superhiway.com"
   ߶ԡ£ƶ"offramp"
   
     * 2.0 ׼ Linux 
       ˵¾Ҫġһǰϸ˵
          + ->  SLIP  TCP/IP ĺ[kernal]
          + -> ༭һЩ /etc µĵ
          + -> װ趨 dip
          + -> װ pppd (ǱģֻPPP)
       ҲҪȡȷģλװԶSLiRP 
       [2]Sunsite  Linux Ftp վҵе TIA Ѷ
       ɼ [3]TIA ҳ
       
   ǿʼ!
   
     * 2.1 ĺ
       ǰûԹӦһ¡Ӧȿ FAQ
        ģܼ򵥵ġҪĻԼ e-mail ңһæ
       ġ
       ƪҼ 'make config'ע
       "Network Devices"ѡ'y'Ȼ SLIP CSLIP(PPP)  TCP/IP
       ѡ'y' ·ԭҪЭһ
       ѡ'n' 㲻 Ļǽ޷ȷִ! ˱ͺͰ
       װµĺ֮ᣬ
     * 2.2 ༭һЩ /etc µĵ
       Щ趨Զ· /etc ϵͳ趨[system
       configurations] Ŀ¼뽫˫(")ݸΪʵ
       ֵ(ǲð˫ţ ֻΪ˱ʾ㣬ʵʵĵû
       Щ˫ŵ)¾Ҫĵĵ 
          + /etc/hosts:
#The next line is required to be EXACTLY as below.
127.0.0.1       localhost

#Note at the end of the next two entries the hostname is repeated.
#This abbreviation is an alias, and is required for the first entry.
#If you're on a LAN, you'll need to substitute your IP address for
#the first one below.
192.0.2.1       "yourhostname.domain.name  yourhostname"
"XXX.XXX.XX.XX" "remotehostname.domain.name  remotehostname"
                  + /etc/host.conf:
order hosts, bind
multi on
                  + /etc/resolv.conf:
domain "yourdomain.name"
#The next line usually uses the same remote IP address that's in /etc/hosts
nameserver "XXX.XXX.XX.XX"
                  + Ҫʹ NNTP ŷ /etc/profile мһ
            :
            export NNTPSERVER="remote.hosts.nntpservername"
     * 2.3.1 DIP
       DIP [Dialup Internet Protocol] ӵԶʱģ
        ·תSLIP/PPP Slackware У"N"У
       һЩͻ ͹߳ʽһЩҲҪװ =)
       ҲԵ [4]Sunsite ȡø tar 
       һ㰲װ֮ᣬҪ dip [script]ΪһֻҪ
        ˫(")ݸΪʵѶͿ(ǲð˫ţ
       ֻΪ ʾ)
       ----------⿪ʼ--------------------------------
main:
  get $local "yourhostname.domain.name"
  get $remote "remotehostname.domain.name"

#Your port here
  port cua"?"

#Use 115200 for 28.8 modems
  speed 57400
  reset

#don't use spaces in your AT command string!
  init AT "string of commands"
  wait OK 5

# This will redial. If it doesn't work, play with the wait time (listen
# to your modem). If it still doesn't work, mail me.
# See also; the note at the bottom of the script re: error codes.

dial:
  dial "phonenumber"
  print Dialing...
  if $errlvl != 0 goto error

#You may need to change this wait time to suit your modem
  wait BUSY 20
  if $errlvl == 0 goto dial

login:
  print Connected and Logging in...

#This wait and send gets me past my hosts Annex. Change for your site!
  wait ==> 60
  send 4\n
  wait ogin: 60
  if $errlvl != 0 goto login_error1
  send "LOGIN"\n
  wait assword: 60
  if $errlvl != 0 goto login_error2
  send "PASSWORD"\n

loggedin:
  wait "SYSTEM PROMPT" 60
  if $errlvl != 0 goto shell_error
  print Logged in!
  send "emulator startup command"\n
  wait "emulator startup response" 60
  if $errlvl != 0 goto emu_error

#The recommended mtu setting is 1500, but this is faster interactively.
#Ftp may be slower, so adjust to taste.
  get $mtu 296
  default

done:
  print CONNECTED to $remote with address $rmtip
  mode CSLIP
  goto exit

error:
  print Dialing Error

login_error1:
  print No Login

login_error2:
  print No Password prompt

shell_error:
  print No shell prompt

emu_error:
  There was a problem starting the emulator

exit:

#This will error out when the -v flag is used, but work when run normally
#(ends dip at a local prompt).
  \r
       -------------Ϊֹ-----------------------------
     * 2.3.2 DIP ע °汾 dip Ӧݻ״̬ѶϢ (æߣû
       ) 档б
       
     * 0 = [OK]
     * 1 = [CONNECT]
     * 2 = [ERROR]
     * 3 = æ[BUSY]
     * 4 = ûв[NO CARRIER]
       
   ĲӶν᳤
dial:
  dial "phonenumber"
  print Dialing...
  if $errlvl != 0 goto error
  wait 1 20
  if $errlvl != 1 goto dial

   Ҫ鹦 Lee Olds (lee@eskimo.com)
   
   \n = [newline] \r = Ͳת[carriage return]ĳЩط Ҳ
   еĻٶ԰!
   
   춵ȴʹ͵ʽлĻʵʵΣ
  wait ogin: 60
        (ȴԶͳ 'ogin:' ִ60ʱ䡣յ֮ᣬ
        СȲִ60ʱ֮ᣬŻС)
  if $errlvl != 0 goto login_error1 (һпѡԵʹ)
        (֮ǰյȴִлᱻн
        ûյʱĻ趨ĵطִ ('lo
gin_error1')
  send "LOGIN"\n
        (DIP ͳ'LOGIN'ִһԪ)

   ҪĻԷ˯"sleep 10" 
   ͣ10롣
   
   㽫Щ༭֮ᣬ뽫磬remote.dipȻŵ
   /root Ŀ¼ root ִ'dip remote'״ִʱʹ -v
    г('dip -v remote')ʾ dip ев衣
   
   Dip ֻ root ִУһʹߵִ 
   ҪصѶҡйҪҿԻὫ
   뵽 
   
    dip ִѶϢеעɾԿ
   
     2.4 PPP
   
   ĿǰΪֹѾ֪ CSLIPڼеǳá 
   ںĵĲ֧ԮЭʹĺת --- ֻҪȷǲ
    С
   
   ȻЩԿ PPP Ϊʲԭֻˡ
   νǼһƪר HOWTO ˡֻ
    ģʹ PPP Ҫرעĵط
   
   ȣ° DIP ʾ PPP dip  PPP 
   ʽ[daemon]ûʾѶϢȵȡʹ DIP 
   PPPǵҪеѶ[startup info]Ž /etc/ppp/options 
    Ȼǲɹġ
   
   ᵽй options Ҫ pppd һ "
   "Ҫڵģ'192.0.2.1:XXX.XXX.XX.XX' Ǳʾ ' IP λַ:Զ IP
   λַ' ֮ҪԭΪͨ pppd Զɿհף
   ģʱʧܡ
   
   Ҫȡõ pppd ׼ƺĳЩ汾һЩС⡣
   
   ᣬ㹻֧ʹ PPPֻҪѧϰ
   ģȻĻĲҪѾùߣͿͻ˵ı׼趨
    κθоõı֡Ȼ״Ƿһ˳
   ҾͲұ֤  : )
     _________________________________________________________________
   
     * 3.0 ҿʲ?
       ! һ˳ĻӦѾӵ·! Կ 'telnet
       Զ ' (ǵ hosts ед? )ӦÿԵõԶ
       ϵǩ ʾšһ°! ڿıض˻ֱ
        telnet / FTP / etc.  ·ϵκεطҸ? Ļ
       Զŷ[nameserver] λַ(resolv.conf)
       ʵ! ҳЩЩС
       ԶûṩķҲ޷ʹ! ˵Զ
        ִ telnetǶҲ޷ڱΪʲ? Ϊģ
       ʵֻ ÷µ[re-directing]ѡ
     * 3.1 ʼ[Mail]
       ֻĽȻ Pine ĪԴ [5]ʢٴѧء
       'XӴΪʼĶ'Ƽ XFmailѾʽ
        İ汾װסҪڱض˰װʼŷϵͳ(
       뱾ض˵ Ŵ[spools]ͬ)ΪѾڽPOP Ĺܣ
       ʹ - Ҫ popclient/fetchpop ! ͼʹ߽[GUI]
       ɿƻ[customizable]Ҳ֧Ԯ MIMEϿ [6]XFmail ҳ 
       !
     * 3.2 [News]
       ֽĶ [7]SLRN װʹöǳ򵥡 һ
        NNTP Ķ壬ָ Ҫض˵Ŵ[news
       transport] (˵㲻Ҫװ Cnews  INN)Ψ
       һҪľֻȡ NNTPŷ ISP ṩȻһ
       Ϊĳʽ ǲɫģ֧Ԯ󣬲 rxvt ն˻
       ӴִС
       XӴΪĶ [8]KNews 򼸺 ġͬ
       SLRN һҪض˵Ŵ[news transport]ֻҪ NNTPŷ
       ֵһԡ
     * 3.3 Mosaic/Netscape
       ȻأҪִXӴִȻֻҪضλѹ
        ٰװͺˣǼټ򵥲Ĺˡ
     _________________________________________________________________
   
     * 4.0 
       һ©ʲᣬȻʲ⣬ûϵ쿴ŵŶ
        صѶ·ǳƵó(һ°汾
       )Ȼ 㹱׵Խ࣬ṩҲͶࡣ
       κοṩģ벻Ҫ ԥˣҰɡ
       ҪκΰڰװĹκ⣬ҿṩ
         ҪѶ 1. һ /etc 
       2. һ -v (~~Ƴ뱣!)
       ʹ޷ṩףҲ㽫ЩѶȷȻĸң
        Ҫ
     * 4.1 ο
       ᵽ Sunsite Ϊһ FTP վ[9] sunsite.unc.eduһ 
       ʵӵκ Linux ѶеFAQHOWTOREADME
       [10]Marketplace.com  TIA  ҳҲΨһȡõĵط
        Irish[11] irish@eskimo.comûڰҵèǱҵ
       СʱҶڶ Linux дۡ
        HOWTO λַȡã
          + http://www.eskimo.com/~irish
          + ftp://ftp.eskimo.com/u/i/irish
          + ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/mini/TIA

References

   1. http://www.marketplace.com/tia/tiahome.html
   2. ftp://sunsite.unc.edu/pub/Linux/INDEX.html
   3. http://marketplace.com/tiahome/tia.html
   4. ftp://sunsite.unc.edu/pub/Linux/INDEX.html
   5. ftp://ftp.cac.washington.edu/
   6. http://burka.netvision.net.il/xfmail/xfmail.html
   7. ftp://space.mit.edu/pub/davis/slrn
   8. http://www.student.nada.kth.se/~su95-kjo/knews.html
   9. ftp://sunsite.unc.edu/pub/Linux/INDEX.html
  10. http://marketplace.com/
  11. mailto:irish@eskimo.com
