- 论坛徽章:
- 0
|
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 编辑 ] |
|