启动pppoe进程
/usr/sbin/pppoe-server -k -T 60 -I br-lan -N 100 -L 10.0.1.1 -R 10.0.1.2 # -k调用内核模块否则也是拨不上
开始拨号chap可以,pap模式遇到的问题如下:
pppoe-server[2379]: Session 6 created for client 64:00:6a:57:df:e2 (10.0.1.7) on br-lan using Service-Name ''
pppd[2379]: Plugin /etc/ppp/plugins/rp-pppoe.so loaded.
pppd[2379]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
pppd[2379]: pppd 2.4.7 started by root, uid 0
pppd[2379]: Connected to 64:00:6a:57:df:e2 via interface br-lan
pppd[2379]: Using interface ppp0
pppd[2379]: Connect: ppp0 <--> br-lan
pppd[2379]: Connection terminated.
pppoe-server[1952]: Sent PADT
pppd[2379]: Exit.
开始以为是pppoe和pppd版本兼容问题,换了版本还是不行最后屏蔽掉login
#PPP options for the PPPoE server
#LIC: GPL
require-pap
#login
lcp-echo-interval 10
lcp-echo-failure 2
mru 1492
mtu 1492
login:如果设置了该选项,登录的用户名密码必须和当前linux系统下的一个用户名相同,否则报错。 重新开始拨号
pppoe-server[2418]: Session 7 created for client 64:00:6a:57:df:e2 (10.0.1.8) on br-lan using Service-Name ''
pppd[2418]: Plugin /etc/ppp/plugins/rp-pppoe.so loaded.
pppd[2418]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
pppd[2418]: pppd 2.4.7 started by root, uid 0
pppd[2418]: Connected to 64:00:6a:57:df:e2 via interface br-lan
pppd[2418]: Using interface ppp0
pppd[2418]: Connect: ppp0 <--> br-lan
pppd[2418]: PAP peer authentication succeeded for admin
pppd[2418]: peer from calling number 64:00:6A:57:DF:E2 authorized
pppd[2418]: local IP address 10.0.1.1
pppd[2418]: remote IP address 10.0.1.8
经测试chap也可以。