LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1226|回复: 2

Help!debian sarge PPPoE server 不能响应PPP LCP request

[复制链接]
发表于 2006-5-16 19:45:29 | 显示全部楼层 |阅读模式
最近用debian架设一个PPPoE server,但是遇到了一个奇怪的问题。
安装的是debian sarge,2.6 kernel。pppoe包默认已经安装,所以我在/etc/ppp目录下直接创建了一个pppoe-server-options文件,并且在pap-secret中加入了用户。
用pppoe-server -I eth0 -L 10.0.0.1 -R 10.0.0.2启动pppoe server以后,使用Windows的client去拨号,但是不成功。抓网卡的包发现server不回应client的PPP LCP request,查syslog却发现里面显示PPP LCP response已经发出去了。不知道是什么原因没有发到网络上。
有没有人遇到过相同的问题,请高手指点一下,谢谢了!

我的pppoe-server-options:

# PPP options for the PPPoE server
# LIC: GPL
#require-pap
#login
lcp-echo-interval 60
lcp-echo-failure 5
-detach
asyncmap 0
lock
ipcp-accept-remote
+pap
-chap
proxyarp
ms-dns  1.1.1.1

syslog内容:

May 11 13:41:41 localhost pppoe-server[4491]: Session 1 created for client 00:c0:9f:9b:26:62 (10.0.0.2) on eth0 using Service-Name ''
May 11 13:41:41 localhost pppd[4491]: pppd options in effect:
May 11 13:41:41 localhost pppd[4491]: debug^I^I# (from /etc/ppp/pppoe-server-options)
May 11 13:41:41 localhost pppd[4491]: nodetach^I^I# (from command line)
May 11 13:41:41 localhost pppd[4491]: logfile /var/log/pppoe-server.log^I^I# (from /etc/ppp/pppoe-server-options)
May 11 13:41:41 localhost pppd[4491]: noktune^I^I# (from /etc/ppp/pppoe-server-options)
May 11 13:41:41 localhost pppd[4491]: dump^I^I# (from /etc/ppp/pppoe-server-options)
May 11 13:41:41 localhost pppd[4491]: require-chap^I^I# (from /etc/ppp/pppoe-server-options)
May 11 13:41:41 localhost pppd[4491]: ^I^I# (from /etc/ppp/options)
May 11 13:41:41 localhost pppd[4491]: pty /usr/sbin/pppoe -n -I eth0 -e 1:00:c0:9f:9b:26:62 -S ''^I^I# (from command line)
May 11 13:41:41 localhost pppd[4491]: crtscts^I^I# (from /etc/ppp/options)
May 11 13:41:41 localhost pppd[4491]: noaccomp^I^I# (from command line)
May 11 13:41:41 localhost pppd[4491]: default-asyncmap^I^I# (from command line)
May 11 13:41:41 localhost pppd[4491]: nopcomp^I^I# (from command line)
May 11 13:41:41 localhost pppd[4491]: lcp-echo-failure 3^I^I# (from /etc/ppp/pppoe-server-options)
May 11 13:41:41 localhost pppd[4491]: lcp-echo-interval 20^I^I# (from /etc/ppp/pppoe-server-options)
May 11 13:41:41 localhost pppd[4491]: hide-password^I^I# (from /etc/ppp/options)
May 11 13:41:41 localhost pppd[4491]: novj^I^I# (from command line)
May 11 13:41:41 localhost pppd[4491]: novjccomp^I^I# (from command line)
May 11 13:41:41 localhost pppd[4491]: ipcp-accept-remote^I^I# (from /etc/ppp/pppoe-server-options)
May 11 13:41:41 localhost pppd[4491]: ms-dns xxx # [don't know how to print value]^I^I# (from /etc/ppp/pppoe-server-options)
May 11 13:41:41 localhost pppd[4491]: proxyarp^I^I# (from /etc/ppp/pppoe-server-options)
May 11 13:41:41 localhost pppd[4491]: netmask 255.255.255.255^I^I# (from /etc/ppp/pppoe-server-options)
May 11 13:41:41 localhost pppd[4491]: 10.0.0.1:10.0.0.2^I^I# (from command line)
May 11 13:41:41 localhost pppd[4491]: nobsdcomp^I^I# (from command line)
May 11 13:41:41 localhost pppd[4491]: nodeflate^I^I# (from command line)
May 11 13:41:41 localhost pppd[4491]: noipx^I^I# (from /etc/ppp/options)
May 11 13:41:41 localhost pppd[4491]: pppd 2.4.3 started by root, uid 0
May 11 13:41:41 localhost pppd[4491]: using channel 5
May 11 13:41:41 localhost pppd[4491]: Using interface ppp0
May 11 13:41:41 localhost pppd[4491]: Connect: ppp0 <--> /dev/pts/2
May 11 13:41:42 localhost pppd[4491]: sent [LCP ConfReq id=0x1 <auth chap MD5> <magic 0x7aee8d85>]
May 11 13:41:43 localhost pppd[4491]: rcvd [LCP ConfReq id=0x1 <mru 1480> <magic 0x1cfa5938> <callback CBCP>]
May 11 13:41:43 localhost pppd[4491]: sent [LCP ConfRej id=0x1 <callback CBCP>]
May 11 13:41:45 localhost pppd[4491]: sent [LCP ConfReq id=0x1 <auth chap MD5> <magic 0x7aee8d85>]
May 11 13:41:48 localhost pppd[4491]: sent [LCP ConfReq id=0x1 <auth chap MD5> <magic 0x7aee8d85>]
May 11 13:41:50 localhost pppd[4491]: rcvd [LCP ConfReq id=0x3 <mru 1480> <magic 0x1cfa5938> <callback CBCP>]
May 11 13:41:50 localhost pppd[4491]: sent [LCP ConfRej id=0x3 <callback CBCP>]
May 11 13:41:51 localhost pppd[4491]: sent [LCP ConfReq id=0x1 <auth chap MD5> <magic 0x7aee8d85>]
May 11 13:41:57 localhost last message repeated 2 times
May 11 13:41:58 localhost pppd[4491]: rcvd [LCP ConfReq id=0x5 <mru 1480> <magic 0x1cfa5938> <callback CBCP>]
May 11 13:41:58 localhost pppd[4491]: sent [LCP ConfRej id=0x5 <callback CBCP>]
May 11 13:42:00 localhost pppd[4491]: sent [LCP ConfReq id=0x1 <auth chap MD5> <magic 0x7aee8d85>]
May 11 13:42:06 localhost last message repeated 2 times
May 11 13:42:06 localhost pppd[4491]: rcvd [LCP ConfReq id=0x7 <mru 1480> <magic 0x1cfa5938> <callback CBCP>]
May 11 13:42:06 localhost pppd[4491]: sent [LCP ConfRej id=0x7 <callback CBCP>]
May 11 13:42:09 localhost pppd[4491]: sent [LCP ConfReq id=0x1 <auth chap MD5> <magic 0x7aee8d85>]
May 11 13:42:12 localhost pppd[4491]: LCP: timeout sending Config-Requests
May 11 13:42:12 localhost pppd[4491]: Connection terminated.
May 11 13:42:12 localhost pppd[4491]: using channel 6
May 11 13:42:12 localhost pppd[4491]: Using interface ppp0
May 11 13:42:12 localhost pppd[4491]: Connect: ppp0 <--> /dev/pts/3
May 11 13:42:12 localhost pppd[4491]: Waiting for 2 child processes...
May 11 13:42:12 localhost pppd[4491]:   script /usr/sbin/pppoe -n -I eth0 -e 1:00:c0:9f:9b:26:62 -S '', pid 4513
May 11 13:42:12 localhost pppd[4491]:   script /usr/sbin/pppoe -n -I eth0 -e 1:00:c0:9f:9b:26:62 -S '', pid 4492
May 11 13:42:17 localhost pppd[4491]: sending SIGTERM to process 4513
May 11 13:42:17 localhost pppd[4491]: sending SIGTERM to process 4492
May 11 13:42:17 localhost pppd[4491]: tcflush failed: Bad file descriptor
May 11 13:42:17 localhost pppd[4491]: Exit.
May 11 13:42:17 localhost pppoe-server[4490]: Session 1 closed for client 00:c0:9f:9b:26:62 (10.0.0.2) on eth0
May 11 13:42:17 localhost pppoe-server[4490]: Sent PADT
 楼主| 发表于 2006-5-16 19:48:17 | 显示全部楼层
syslog里面说ppp sent的包都没有从server发出来,不知道为什么。郁闷。。。
回复 支持 反对

使用道具 举报

发表于 2006-5-17 20:25:21 | 显示全部楼层
pppoe-server-options:
-chap

syslog内容:
sent [LCP ConfReq id=0x1 <auth chap MD5> <magic 0x7aee8d85>]

你server disable chap,client request chap当然lcp不行了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表