📄 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 + -