码迷,mamicode.com
首页 > 系统相关 > 详细

AT PPP拨号失败,linux环境下在如何调试?

时间:2015-07-19 13:39:48      阅读:392      评论:0      收藏:0      [点我收藏+]

标签:at ppp linux 调试

    首先PPP在options文件中可以放开debug & kedebug调试选项

    其次Linux内核日记可以通过cat /var/log/syslog.1查看


    下面是linux的相关操作步骤

  1.   cd /etc/ppp

  2.   ls

  3.   vi options

  4.   change #debug to debug

    # Increase debugging level (same as -d).  If this option is given, pppd
    # will log the contents of all control packets sent or received in a
    # readable form.  The packets are logged through syslog with facility
    # daemon and level debug.
    This information can be directed to a file by
    # setting up /etc/syslog.conf appropriately (see syslog.conf(5)).  (If
    # pppd is compiled with extra debugging enabled, it will log messages
    # using facility local2 instead of daemon).
    #debug

    debug

  5.   change #kdebug  n to kdebug 1

    # Enable debugging code in the kernel-level PPP driver.  The argument n
    # is a number which is the sum of the following values: 1 to enable
    # general debug messages, 2 to request that the contents of received
    # packets be printed, and 4 to request that the contents of transmitted
    # packets be printed.
    #kdebug n

    kdebug

  6. 设备拨号

  7. cat /var/log/syslog.1 > ppp_debug_history.log


    总结:

    这次遇到的问题是MRU大小不匹配问题,终端的MRU设置是默认的576(556+20),

但是服务器配置的MRU大小是1500,结果终端发起第一次拨号,MRU不匹配,导致拨号失败。


本文出自 “山下问童子” 博客,请务必保留此出处http://linpeng.blog.51cto.com/9779987/1676063

AT PPP拨号失败,linux环境下在如何调试?

标签:at ppp linux 调试

原文地址:http://linpeng.blog.51cto.com/9779987/1676063

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!