📄 ppp-howto-16.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"> <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.7"> <TITLE>PPP HOWTO 中译版: 测试你的连线指令稿</TITLE> <LINK HREF="PPP-HOWTO-17.html" REL=next> <LINK HREF="PPP-HOWTO-15.html" REL=previous> <LINK HREF="PPP-HOWTO.html#toc16" REL=contents></HEAD><BODY><A HREF="PPP-HOWTO-17.html">Next</A><A HREF="PPP-HOWTO-15.html">Previous</A><A HREF="PPP-HOWTO.html#toc16">Contents</A><HR><H2><A NAME="s16">16. 测试你的连线指令稿</A></H2><P>开启一个新的 Xterm(如果你在 X 底下)或开启一个新的虚拟主控台并且以 root 签入.<P><P>在这个新的阶段作业中,发出这个指令<P><BLOCKQUOTE><CODE><PRE>tail -f /var/log/messages</PRE></CODE></BLOCKQUOTE><P><P>(或是你系统记录档案的任何名称).<P><P>在第一个视窗(或是虚拟主控台中)发出这个命令<P><BLOCKQUOTE><CODE><PRE>ppp-on &</PRE></CODE></BLOCKQUOTE><P><P>(或是任何你所编辑的 <CODE>/usr/sbin/ppp-on</CODE> 版本之名称).如果你没有藉由在这个指令的尾端指定 & 使得指令稿进入背景执行的话,那麽在 ppp 结束(当连线结束时)之前你都不能回到终端机提示下<P><P>现在切换到追踪系统记录档的视窗.<P><P>你将会见到某些像下列的东西(假定你对 chat 指定 <CODE>-v</CODE> 并且对 pppd 指定 <CODE>-d</CODE> 选项)....这是紧跟在 pppd 起动资讯之後记录到系统记录档案里的 chat 指令稿及其回应:<P><HR><PRE>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^MOct 21 16:10:00 hwin chat[19868]: OK -- got itOct 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]: ^MOct 21 16:10:22 hwin chat[19868]: ATDT722298^M^MOct 21 16:10:22 hwin chat[19868]: CONNECT -- got itOct 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 itOct 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^MOct 21 16:10:23 hwin chat[19868]: Password: -- got itOct 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 itOct 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 0Oct 21 16:10:27 hwin pppd[19873]: Using interface ppp0Oct 21 16:10:27 hwin pppd[19873]: Connect: ppp0 <--> /dev/cua1Oct 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 1Oct 21 16:10:27 hwin pppd[19873]: fsm_rconfreq(LCP): Rcvd id 1.Oct 21 16:10:27 hwin pppd[19873]: lcp_reqci: rcvd MRUOct 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 ASYNCMAPOct 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 MAGICNUMBEROct 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 PCOMPRESSIONOct 21 16:10:27 hwin pppd[19873]: (ACK)Oct 21 16:10:27 hwin pppd[19873]: lcp_reqci: rcvd ACCOMPRESSIONOct 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 1Oct 21 16:10:27 hwin pppd[19873]: fsm_rconfreq(IPCP): Rcvd id 1.Oct 21 16:10:27 hwin pppd[19873]: ipcp: received ADDROct 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 COMPRESSTYPEOct 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-ACKOct 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 1Oct 21 16:10:30 hwin pppd[19873]: fsm_rconfreq(IPCP): Rcvd id 255.Oct 21 16:10:31 hwin pppd[19873]: ipcp: received ADDROct 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 COMPRESSTYPEOct 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-ACKOct 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: upOct 21 16:10:31 hwin pppd[19873]: local IP address 10.144.153.104Oct 21 16:10:31 hwin pppd[19873]: remote IP address 10.144.153.51</PRE><HR><P><P>(注意 - 我使用静态的 IP 号码 - 因此我的机器送这些东西到 PPP 伺服器去 - 如果你使用动态的 IP 号码那麽你将不会看见这些.)还有,这个伺服器需要指定的命令来启动 PPP.<P><P>这看起来没什麽问题 - 所以如同前面的测试般, ping 一些 IP 号码以及主机名称.<P>起动你的全球资讯浏览器或是任何其它东东并且开始逛 - 你上线了!<P><HR><A HREF="PPP-HOWTO-17.html">Next</A><A HREF="PPP-HOWTO-15.html">Previous</A><A HREF="PPP-HOWTO.html#toc16">Contents</A></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -