pppoe服務器問題
Suse 10.1,ppp-2.4.3-31
去下载了rp-pppoe 3.8,然后
./configure --enalbe-plugin
make
make install
/etc/ppp/pap-secrets配置如下:
#client server secret IP address
"usr" * "123" *
/etc/ppp/chap-secrets的配置和pap-secrets一样
/etc/ppp/pppoe-server-options配置如下:
+pap
+chap
login
lcp-echo-interval 30
lcp-echo-failure 4
ms-dns 10.0.0.1
然后运行:
modprobe pppoe
pppoe-server -I eth0 -N 2 -L 10.0.0.1 -R 10.0.0.100 -r -u
client端提示:
Jan 1 00:05:23 pppd[86]: Starting link
Jan 1 00:05:23 pppd[86]: PPP session is 1
Jan 1 00:05:23 pppd[86]: Connect: ppp0 -> eth0
Jan 1 00:05:26 pppd[86]: Remote message: User not known to the underlying authentication module
Jan 1 00:05:26 pppd[86]: PAP authentication failed
Jan 1 00:05:26 pppd[86]: Connection terminated.
Jan 1 00:05:26 pppd[86]: Exit.
然后我用cat var/log/messages去看,纪录信息如下:
Oct 28 03:46:06 qt5 pppd[7795]: pppd 2.4.3 started by root, uid 0
Oct 28 03:46:06 qt5 pppd[7795]: Using interface ppp1
Oct 28 03:46:06 qt5 pppd[7795]: Connect: ppp1 <--> /dev/pts/2
Oct 28 03:46:07 qt5 pppd[7795]: Warning - secret file /etc/ppp/pap-secrets has world access
Oct 28 03:46:09 qt5 pppd[7795]: Warning - secret file /etc/ppp/pap-secrets has world access
Oct 28 03:46:09 qt5 pppd[7795]: PAP peer authentication failed for usr
Oct 28 03:46:09 qt5 pppd[7795]: Connection terminated.
Oct 28 03:46:09 qt5 pppoe[7796]: read (asyncReadFromPPP): Session 2: Input/output error
Oct 28 03:46:09 qt5 pppd[7795]: Script /usr/sbin/pppoe -n -I eth0 -e 2:00:15:f2:c7:e5:5d -S '' finished (pid 7796), status = 0x1
Oct 28 03:46:09 qt5 pppd[7795]: Exit.
Oct 28 03:46:09 qt5 pppoe-server[7794]: Session 2 closed for client 00:15:f2:c7:e5:5d (10.0.0.101) on eth0
Oct 28 03:46:09 qt5 pppoe-server[7794]: Sent PADT
请问问题出在哪里,是我的pap-scerets写的不对么?
[ 本帖最后由 ghoulr 于 2006-10-31 09:13 编辑 ]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
另外再问一下,发生LCP timeout一般是什么原因
我把引号去掉以后还是显示一样的信息。。。
把你的pap-secrets里面的引号去掉再看看?
恩,我是要用一个linux服务器,来模拟测试路由器的pppoe拨号的,环境里就只有一个服务器,ethernet card一个(eth0),与路由器(asus wl-500gP)的wan port连接起来。
配置文件就是上面说的那3个(pap-secrets,chap-secrets和pppoe-server-options)进行了修改。
然后在路由器里设置账号密码,就出现上面的log信息了。
环境, 配置写清楚一些!
没有人回么。。。顶起来等答案