?? 088.htm
字號:
<HTML><HEAD><meta http-equiv="Content-Type" content="text/html; charset=GB2312"><TITLE>-->Linux HowTo 中譯版-->PPP HOWTO 中譯版: 測試你的連線指令稿</TITLE>
<META NAME="keywords" CONTENT=" Linux HowTo 中譯版 PPP HOWTO 中譯版: 測試你的連線指令稿">
<META NAME="description" CONTENT=" - Linux HowTo 中譯版 - PPP HOWTO 中譯版: 測試你的連線指令稿">
<style>
<!--
#page {position:absolute; z-index:0; left:0px; top:0px}
.tt3 {font: 9pt/12pt "宋體"}
.tt2 {font: 12pt/15pt "宋體"}
a {text-decoration:none}
a:hover {color: blue;text-decoration:underline}
-->
</style>
</HEAD>
<body text="#000000" aLink=#9900ff link=#006699 vLink=#006699 bgcolor="#FFFFFF" leftmargin="3" topmargin="3" marginheight="3" marginwidth="3">
<TABLE WIDTH="100%" CELLPADDING=10 CELLSPACING=0 BORDER=0>
<TR>
<TD CLASS="tt3" VALIGN="top" width="8%" bgcolor="#e0e0e0"><strong><A HREF="089.htm">后一頁</A><BR>
<A HREF="087.htm">前一頁</A><BR>
<A HREF="index.html">回目錄</A><BR>
<A HREF="../../../../index.htm">回首頁</A><BR>
</strong>
</TD>
<TD class="tt2" bgcolor="#F5F8F8" width="84%"><center><B><FONT style="FONT-SIZE: 16.5pt" COLOR="#FF6666" FACE="楷體_GB2312">PPP HOWTO 中譯版: 測試你的連線指令稿</FONT></B></center>
<hr color="#EE9B73" size="1" width="94%">
姓名:Robert Hart<br>
Email:hartr@interweft.com.au<br>
地址 :<br>
轉摘 :http://member.netease.com/</p>
<BR>
<BR>
<hr SIZE="0">
<BR>
<p>16. 測試你的連線指令稿 <br>
開啟一個新的 Xterm(如果你在 X
底下)或開啟一個新的虛擬主控臺并且以 root 簽入. <br>
<br>
在這個新的階段作業中,發出這個指令 <br>
<br>
<br>
tail -f /var/log/messages <br>
<br>
<br>
(或是你系統記錄檔案的任何名稱). <br>
<br>
在第一個視窗(或是虛擬主控臺中)發出這個命令 <br>
<br>
<br>
ppp-on & <br>
<br>
<br>
(或是任何你所編輯的 /usr/sbin/ppp-on
版本之名稱).如果你沒有藉由在這個指令的尾端指定 &
使得指令稿進入背景執行的話,那麼在 ppp
結束(當連線結束時)之前你都不能回到終端機提示下 <br>
<br>
現在切換到追蹤系統記錄檔的視窗. <br>
<br>
你將會見到某些像下列的東西(假定你對 chat 指定 -v 并且對 pppd
指定 -d 選項).... 這是緊跟在 pppd
起動資訊之後記錄到系統記錄檔案里的 chat 指令稿及其回應: <br>
<br>
<br>
<br>
-------------------------------------------------------------------------------- <br>
<br>
Oct 21 16:09:58 hwin chat[19868]: abort on (NO CARRIER) <br>
Oct 21 16:09:59 hwin chat[19868]: abort on (BUSY) <br>
Oct 21 16:09:59 hwin chat[19868]: send (ATZ^M) <br>
Oct 21 16:09:59 hwin chat[19868]: expect (OK) <br>
Oct 21 16:10:00 hwin chat[19868]: ATZ^M^M <br>
Oct 21 16:10:00 hwin chat[19868]: OK -- got it <br>
Oct 21 16:10:00 hwin chat[19868]: send (ATDT722298^M) <br>
Oct 21 16:10:00 hwin chat[19868]: expect (CONNECT) <br>
Oct 21 16:10:00 hwin chat[19868]: ^M <br>
Oct 21 16:10:22 hwin chat[19868]: ATDT722298^M^M <br>
Oct 21 16:10:22 hwin chat[19868]: CONNECT -- got it <br>
Oct 21 16:10:22 hwin chat[19868]: send (^M) <br>
Oct 21 16:10:22 hwin chat[19868]: expect (ogin:) <br>
Oct 21 16:10:23 hwin chat[19868]: kepler login: -- got it <br>
Oct 21 16:10:23 hwin chat[19868]: send (hartr^M) <br>
Oct 21 16:10:23 hwin chat[19868]: expect (ssword:) <br>
Oct 21 16:10:23 hwin chat[19868]: hartr^M <br>
Oct 21 16:10:23 hwin chat[19868]: Password: -- got it <br>
Oct 21 16:10:23 hwin chat[19868]: send (??????^M) <br>
Oct 21 16:10:23 hwin chat[19868]: expect (hartr) <br>
Oct 21 16:10:24 hwin chat[19868]: [hartr -- got it <br>
Oct 21 16:10:24 hwin chat[19868]: send (ppp^M) <br>
Oct 21 16:10:27 hwin pppd[19872]: pppd 2.1.2 started by root, uid 0 <br>
Oct 21 16:10:27 hwin pppd[19873]: Using interface ppp0 <br>
Oct 21 16:10:27 hwin pppd[19873]: Connect: ppp0 <--> /dev/cua1 <br>
Oct 21 16:10:27 hwin pppd[19873]: fsm_sdata(LCP): Sent code 1, id 1. <br>
Oct 21 16:10:27 hwin pppd[19873]: LCP: sending Configure-Request, id 1 <br>
Oct 21 16:10:27 hwin pppd[19873]: fsm_rconfreq(LCP): Rcvd id 1. <br>
Oct 21 16:10:27 hwin pppd[19873]: lcp_reqci: rcvd MRU <br>
Oct 21 16:10:27 hwin pppd[19873]: (1500) <br>
Oct 21 16:10:27 hwin pppd[19873]: (ACK) <br>
Oct 21 16:10:27 hwin pppd[19873]: lcp_reqci: rcvd ASYNCMAP <br>
Oct 21 16:10:27 hwin pppd[19873]: (0) <br>
Oct 21 16:10:27 hwin pppd[19873]: (ACK) <br>
Oct 21 16:10:27 hwin pppd[19873]: lcp_reqci: rcvd MAGICNUMBER <br>
Oct 21 16:10:27 hwin pppd[19873]: (a098b898) <br>
Oct 21 16:10:27 hwin pppd[19873]: (ACK) <br>
Oct 21 16:10:27 hwin pppd[19873]: lcp_reqci: rcvd PCOMPRESSION <br>
Oct 21 16:10:27 hwin pppd[19873]: (ACK) <br>
Oct 21 16:10:27 hwin pppd[19873]: lcp_reqci: rcvd ACCOMPRESSION <br>
Oct 21 16:10:27 hwin pppd[19873]: (ACK) <br>
Oct 21 16:10:27 hwin pppd[19873]: lcp_reqci: returning CONFACK. <br>
Oct 21 16:10:27 hwin pppd[19873]: fsm_sdata(LCP): Sent code 2, id 1. <br>
Oct 21 16:10:27 hwin pppd[19873]: fsm_rconfack(LCP): Rcvd id 1. <br>
Oct 21 16:10:27 hwin pppd[19873]: fsm_sdata(IPCP): Sent code 1, id 1. <br>
Oct 21 16:10:27 hwin pppd[19873]: IPCP: sending Configure-Request, id 1 <br>
Oct 21 16:10:27 hwin pppd[19873]: fsm_rconfreq(IPCP): Rcvd id 1. <br>
Oct 21 16:10:27 hwin pppd[19873]: ipcp: received ADDR <br>
Oct 21 16:10:27 hwin pppd[19873]: (10.144.153.51) <br>
Oct 21 16:10:27 hwin pppd[19873]: (ACK) <br>
Oct 21 16:10:27 hwin pppd[19873]: ipcp: received COMPRESSTYPE <br>
Oct 21 16:10:27 hwin pppd[19873]: (45) <br>
Oct 21 16:10:27 hwin pppd[19873]: (ACK) <br>
Oct 21 16:10:27 hwin pppd[19873]: ipcp: returning Configure-ACK <br>
Oct 21 16:10:28 hwin pppd[19873]: fsm_sdata(IPCP): Sent code 2, id 1. <br>
Oct 21 16:10:30 hwin pppd[19873]: fsm_sdata(IPCP): Sent code 1, id 1. <br>
Oct 21 16:10:30 hwin pppd[19873]: IPCP: sending Configure-Request, id 1 <br>
Oct 21 16:10:30 hwin pppd[19873]: fsm_rconfreq(IPCP): Rcvd id 255. <br>
Oct 21 16:10:31 hwin pppd[19873]: ipcp: received ADDR <br>
Oct 21 16:10:31 hwin pppd[19873]: (10.144.153.51) <br>
Oct 21 16:10:31 hwin pppd[19873]: (ACK) <br>
Oct 21 16:10:31 hwin pppd[19873]: ipcp: received COMPRESSTYPE <br>
Oct 21 16:10:31 hwin pppd[19873]: (45) <br>
Oct 21 16:10:31 hwin pppd[19873]: (ACK) <br>
Oct 21 16:10:31 hwin pppd[19873]: ipcp: returning Configure-ACK <br>
Oct 21 16:10:31 hwin pppd[19873]: fsm_sdata(IPCP): Sent code 2, id 255. <br>
Oct 21 16:10:31 hwin pppd[19873]: fsm_rconfack(IPCP): Rcvd id 1. <br>
Oct 21 16:10:31 hwin pppd[19873]: ipcp: up <br>
Oct 21 16:10:31 hwin pppd[19873]: local IP address 10.144.153.104 <br>
Oct 21 16:10:31 hwin pppd[19873]: remote IP address 10.144.153.51 <br>
<br>
<br>
-------------------------------------------------------------------------------- <br>
<br>
<br>
(注意 - 我使用靜態的 IP 號碼 - 因此我的機器送這些東西到 PPP
伺服器去 - 如果你使用動態的 IP
號碼那麼你將不會看見這些.)還有,這個伺服器需要指定的命令來啟動
PPP. <br>
<br>
這看起來沒什麼問題 - 所以如同前面的測試般, ping 一些 IP
號碼以及主機名稱. <br>
<br>
起動你的全球資訊瀏覽器或是任何其它東東并且開始逛 - 你上線了!
</p>
<BR>
<hr color="#EE9B73" size="1" width="94%">
</TD>
<TD CLASS="tt3" VALIGN="bottom" width="8%" bgcolor="#e0e0e0"><strong><A HREF="089.htm">后一頁</A><BR>
<A HREF="087.htm">前一頁</A><BR>
<A HREF="index.html">回目錄</A><BR>
<A HREF="../../../../index.htm">回首頁</A><BR>
</strong>
</TD>
</TR>
</table>
</BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -