当前位置:   article > 正文

linux pppoe内核模块,pppoe-server服务pap模式Connection terminated

pppd 2.4.7 started by root, uid 0

启动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也可以。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/知新_RL/article/detail/170756
推荐阅读
相关标签
  

闽ICP备14008679号