首先PPP在options文件中可以放开debug & kedebug调试选项
其次Linux内核日记可以通过cat /var/log/syslog.1查看
下面是linux的相关操作步骤
cd /etc/ppp
ls
vi options
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
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
设备拨号
cat /var/log/syslog.1 > ppp_debug_history.log
总结:
这次遇到的问题是MRU大小不匹配问题,终端的MRU设置是默认的576(556+20),
但是服务器配置的MRU大小是1500,结果终端发起第一次拨号,MRU不匹配,导致拨号失败。
本文出自 “山下问童子” 博客,请务必保留此出处http://linpeng.blog.51cto.com/9779987/1676063
原文地址:http://linpeng.blog.51cto.com/9779987/1676063