免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1875 | 回复: 6
打印 上一主题 下一主题

pppoe服務器問題 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-10-27 20:48 |只看该作者 |倒序浏览
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 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2006-10-28 20:52 |只看该作者
没有人回么。。。顶起来等答案

论坛徽章:
0
3 [报告]
发表于 2006-10-29 18:02 |只看该作者
环境, 配置写清楚一些!

论坛徽章:
0
4 [报告]
发表于 2006-10-29 20:29 |只看该作者
恩,我是要用一个linux服务器,来模拟测试路由器的pppoe拨号的,环境里就只有一个服务器,ethernet card一个(eth0),与路由器(asus wl-500gP)的wan port连接起来。

配置文件就是上面说的那3个(pap-secrets,chap-secrets和pppoe-server-options)进行了修改。

然后在路由器里设置账号密码,就出现上面的log信息了。

论坛徽章:
0
5 [报告]
发表于 2006-10-29 20:35 |只看该作者
把你的pap-secrets里面的引号去掉再看看?

论坛徽章:
0
6 [报告]
发表于 2006-10-30 10:55 |只看该作者
我把引号去掉以后还是显示一样的信息。。。

论坛徽章:
0
7 [报告]
发表于 2006-10-31 20:47 |只看该作者
另外再问一下,发生LCP timeout一般是什么原因
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP