当前位置:   article > 正文

pppoe-server服务pap模式Connection terminated

connection terminated

启动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模式遇到的问题如下:

  1. pppoe-server[2379]: Session 6 created for client 64:00:6a:57:df:e2 (10.0.1.7) on br-lan using Service-Name ''
  2. pppd[2379]: Plugin /etc/ppp/plugins/rp-pppoe.so loaded.
  3. pppd[2379]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
  4. pppd[2379]: pppd 2.4.7 started by root, uid 0
  5. pppd[2379]: Connected to 64:00:6a:57:df:e2 via interface br-lan
  6. pppd[2379]: Using interface ppp0
  7. pppd[2379]: Connect: ppp0 <--> br-lan
  8. pppd[2379]: Connection terminated.
  9. pppoe-server[1952]: Sent PADT
  10. pppd[2379]: Exit.

开始以为是pppoe和pppd版本兼容问题,换了版本还是不行最后屏蔽掉login

  1. #PPP options for the PPPoE server
  2. #LIC: GPL
  3. require-pap
  4. #login
  5. lcp-echo-interval 10
  6. lcp-echo-failure 2
  7. mru 1492
  8. mtu 1492

login:如果设置了该选项,登录的用户名密码必须和当前linux系统下的一个用户名相同,否则报错。
重新开始拨号

  1. pppoe-server[2418]: Session 7 created for client 64:00:6a:57:df:e2 (10.0.1.8) on br-lan using Service-Name ''
  2. pppd[2418]: Plugin /etc/ppp/plugins/rp-pppoe.so loaded.
  3. pppd[2418]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.7
  4. pppd[2418]: pppd 2.4.7 started by root, uid 0
  5. pppd[2418]: Connected to 64:00:6a:57:df:e2 via interface br-lan
  6. pppd[2418]: Using interface ppp0
  7. pppd[2418]: Connect: ppp0 <--> br-lan
  8. pppd[2418]: PAP peer authentication succeeded for admin
  9. pppd[2418]: peer from calling number 64:00:6A:57:DF:E2 authorized
  10. pppd[2418]: local IP address 10.0.1.1
  11. pppd[2418]: remote IP address 10.0.1.8

经测试chap也可以。


本文转自 Linux_woniu 51CTO博客,原文链接:http://blog.51cto.com/linuxcgi/2045524


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

闽ICP备14008679号