我正在尝试在ubuntu 11.04上使用pppd设置pppoe服务器。我的目标是检查一个pppoe客户端是否能够从我们的服务器获取一个IP地址。对于我提到的 http://poundcomment.wordpress.com/2011/03/30/pppoe-server-on-ubuntu/并按照脚本中的微小更改执行这些步骤。
以下是我对这些脚本所做的更改。 在/ etc / ppp / chap-secrets中:
I use the address range of 192.168.1.1 (which is going to be the ip of server).
在/ etc / ppp / ipaddress_pool中:
192.168.1.2-30
Made the appropriate changes in /etc/ppp/pppoe_start.
我使用的是以太网接口eth0(不是链接中所说的eth1)
并在同一档案中
iptables -t nat -A POSTROUTING -j MASQUERADE (removed the -o eth0 parameter.As i
认为任何可用的界面都将被选中。我有wlan0而不是eth1)
长在服务器端:
Jun 9 03:20:08 ubuntu pppoe-server[2253]: Session 12 created for client 14:fe:b5:9e:30:aa (192.168.1.13) on eth0 using Service-Name ''
Jun 9 03:20:08 ubuntu pppoe-server[2224]: Session 12 closed for client 14:fe:b5:9e:30:aa (192.168.1.13) on eth0
Jun 9 03:20:08 ubuntu pppoe-server[2224]: Sent PADT
日志的一小部分就是我在这里所呈现的。
登录客户端:
Jun 9 12:56:40 ram-mindsys pppd[3137]: PPP session is 24
Jun 9 12:56:40 ram-mindsys pppd[3137]: Connected to 00:26:22:08:50:1e via interface eth0
Jun 9 12:56:40 ram-mindsys NetworkManager[840]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Jun 9 12:56:40 ram-mindsys NetworkManager[840]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Jun 9 12:56:40 ram-mindsys pppd[3137]: Using interface ppp0
Jun 9 12:56:40 ram-mindsys pppd[3137]: Connect: ppp0 <--> eth0
Jun 9 12:56:40 ram-mindsys init: Failed to spawn ufw pre-start process: unable to execute: No such file or directory
Jun 9 12:56:40 ram-mindsys init: Failed to spawn ufw post-stop process: unable to execute: No such file or directory
Jun 9 12:57:10 ram-mindsys pppd[3137]: LCP: timeout sending Config-Requests
Jun 9 12:57:10 ram-mindsys pppd[3137]: Connection terminated.
Jun 9 12:57:10 ram-mindsys NetworkManager[840]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Jun 9 12:57:10 ram-mindsys pppd[3137]: Modem hangup
对于杂乱的演示文稿感到抱歉。我不知道如何在此处附加文件。
我认为正在建立联系,但很快就会终止。我没有得到问题所在。请对此进行一些说明。