红联Linux门户
Linux帮助

请管理和 高手帮分析一下!!!!!!

发布时间:2008-10-31 12:18:49来源:红联作者:geniusmen
请大家帮帮我呀!!!小弟先谢过了!!
我用的是redhat9.0 用PPPD拨号 通过GPRS上网,运行命令是
pppd /dev/pts/1 115200 connect 'chat -v "" at+cgdcont=1,\"IP\",\"cmnet\" OK atd*98*1# CONNECT'
在log下的message是
Oct 31 11:41:55 localhost kernel: PPP generic driver version 2.4.2
Oct 31 11:41:55 localhost pppd[2142]: pppd 2.4.1 started by root, uid 0
Oct 31 11:41:56 localhost chat[2143]: send (ath0^M)
Oct 31 11:41:56 localhost chat[2143]: expect (OK)
Oct 31 11:41:56 localhost chat[2143]: ath0^M^M
Oct 31 11:41:56 localhost chat[2143]: OK
Oct 31 11:41:56 localhost chat[2143]: -- got it
Oct 31 11:41:56 localhost chat[2143]: send (at+cgdcont=1,"IP","cmnet"^M)
Oct 31 11:41:57 localhost chat[2143]: expect (OK)
Oct 31 11:41:57 localhost chat[2143]: ^M
Oct 31 11:41:57 localhost chat[2143]: at+cgdcont=1,"IP","cmnet"^M^M
Oct 31 11:41:57 localhost chat[2143]: OK
Oct 31 11:41:57 localhost chat[2143]: -- got it
Oct 31 11:41:57 localhost chat[2143]: send (atd*98*1#^M)
Oct 31 11:41:57 localhost chat[2143]: expect (CONNECT)
Oct 31 11:41:57 localhost chat[2143]: ^M
Oct 31 11:41:57 localhost chat[2143]: atd*98*1#^M^M
Oct 31 11:41:57 localhost chat[2143]: CONNECT
Oct 31 11:41:57 localhost chat[2143]: -- got it
Oct 31 11:41:57 localhost pppd[2142]: Serial connection established.
Oct 31 11:41:57 localhost pppd[2142]: Using interface ppp0
Oct 31 11:41:57 localhost pppd[2142]: Connect: ppp0 <--> /dev/pts/1
Oct 31 11:41:57 localhost /etc/hotplug/net.agent: assuming ppp0 is already up
Oct 31 11:41:58 localhost modprobe: modprobe: Can't locate module ppp-compress-21
Oct 31 11:41:58 localhost kernel: PPP Deflate Compression module registered
Oct 31 11:41:58 localhost modprobe: modprobe: Can't locate module ppp-compress-21
Oct 31 11:42:04 localhost pppd[2142]: not replacing existing default route to eth2 [172.17.255.254]
Oct 31 11:42:04 localhost pppd[2142]: local IP address 10.67.67.229
Oct 31 11:42:04 localhost pppd[2142]: remote IP address 192.168.0.1
Oct 31 11:42:04 localhost pppd[2142]: primary DNS address 211.136.20.203

很奇怪remote IP address 192.168.0.1
而且我PING根本就PING不通 好像包都没有发出去,请帮忙,谢谢!!!
文章评论

共有 7 条评论

  1. geniusmen 于 2008-11-12 09:17:35发表:

    有的朋友说是路由没有指定我后来指定为PPP0的路由 为
    Kernel IP routing table
    Destination Gateway Genmask Flags MSS Window irtt Iface
    192.168.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
    192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
    192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
    169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2
    172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2
    127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
    0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 ppp0
    可是还是不能上网呀!!请朋友们给予帮助!!

  2. geniusmen 于 2008-11-06 18:39:25发表:

    (5ty(
    不能沉帖呀,伙计们,上呀…………………………

  3. geniusmen 于 2008-11-03 10:58:31发表:

    Nov 3 11:02:50 localhost pppd[14084]: pppd 2.4.1 started by root, uid 0
    Nov 3 11:02:51 localhost chat[14085]: send (ath0^M)
    Nov 3 11:02:51 localhost chat[14085]: expect (OK)
    Nov 3 11:02:51 localhost chat[14085]: ath0^M^M
    Nov 3 11:02:51 localhost chat[14085]: OK
    Nov 3 11:02:51 localhost chat[14085]: -- got it
    Nov 3 11:02:51 localhost chat[14085]: send (at+cgdcont=1,"IP","cmnet"^M)
    Nov 3 11:02:52 localhost chat[14085]: expect (OK)
    Nov 3 11:02:52 localhost chat[14085]: ^M
    Nov 3 11:02:52 localhost chat[14085]: at+cgdcont=1,"IP","cmnet"^M^M
    Nov 3 11:02:52 localhost chat[14085]: OK
    Nov 3 11:02:52 localhost chat[14085]: -- got it
    Nov 3 11:02:52 localhost chat[14085]: send (atd*98*1#^M)
    Nov 3 11:02:52 localhost chat[14085]: expect (CONNECT)
    Nov 3 11:02:52 localhost chat[14085]: ^M
    Nov 3 11:02:52 localhost chat[14085]: atd*98*1#^M^M
    Nov 3 11:02:52 localhost chat[14085]: CONNECT
    Nov 3 11:02:52 localhost chat[14085]: -- got it
    Nov 3 11:02:52 localhost pppd[14084]: Serial connection established.
    Nov 3 11:02:52 localhost pppd[14084]: Using interface ppp0
    Nov 3 11:02:52 localhost pppd[14084]: Connect: ppp0 <--> /dev/pts/1
    Nov 3 11:02:52 localhost /etc/hotplug/net.agent: assuming ppp0 is already up
    Nov 3 11:02:56 localhost pppd[14084]: not replacing existing default route to eth2 [172.17.255.254]
    Nov 3 11:02:56 localhost pppd[14084]: local IP address 10.67.61.124
    Nov 3 11:02:56 localhost pppd[14084]: remote IP address 192.168.0.1
    Nov 3 11:02:56 localhost pppd[14084]: primary DNS address 211.136.20.203


    还是PING 不通呀,而且好像外网也PING不通我获得的IP 10.67.61.124
    ZKEEY 帮看下呀

  4. geniusmen 于 2008-11-02 22:27:50发表:

    嗯谢谢 ZKEEY 我明天去试试 并一定把最新动态告诉你!!万分感谢!!

  5. zkeey 于 2008-10-31 20:14:37发表:

    把24 ,26 都改成你的21

  6. zkeey 于 2008-10-31 20:13:58发表:

    修改一些modules的alias文件
    用modprobe -c |head -10看下这个文件在哪里。
    应该是/etc/conf.modules或者/etc/moudles.d/alias
    添加下面:
    ## PPP Connection
    alias ppp-compress-21 bsd_comp
    alias ppp-compress-24 ppp_deflate
    alias ppp-compress-26 ppp_deflate
    希望对你有用。

  7. geniusmen 于 2008-10-31 15:05:33发表:

    不能沉贴呀! 无论大家知道多少,还是帮我分析一下,多少发表一下意见呀!!!!