|
说明:
一。服务器端环境:
[root@CentOS ~]# uname -r ;lsmod |grep 'ppp'
2.6.9
pppoe 15424 0
pppox 3976 1 pppoe
ppp_synctty 12416 0
ppp_async 13696 1
crc_ccitt 2432 1 ppp_async
ppp_mppe_mppc 16132 0
ppp_generic 42004 5 pppoe,pppox,ppp_synctty,ppp_async,ppp_mppe_mppc
slhc 8192 1 ppp_generic
# kernel 2.6.9,重编译内核,已支持ppp_mppe_mppc
[root@CentOS ~]# ifconfig |grep -A1 'eth'
eth0 Link encap:Ethernet HWaddr 00:0E:1F:50:E2:8C
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
--
eth1 Link encap:Ethernet HWaddr 00:14:85:93:33:97
inet6 addr: fe80::214:85ff:fe93:3397/64 Scope ink
# 双网卡,eth0指定地址,eth1未指定地址,作为PPPoE Server接入端口
二。软件环境
ppp-2.4.3.tar.gz # 将自带的包卸载,并重编译
rp-pppoe-3.5.tar.gz
ppp-2.4.3-mppe-mppc-1.1.patch #ppp包的mppe_mppc 补丁
linux-2.6.9-mppe-mppc-1.2.patch # 内核补丁
三。配置文件
[root@CentOS ppp]# egrep -v "^$|#" /etc/ppp/options
noipdefault
logfile /var/log/pppd.log
crtscts
lock
modem
asyncmap 0
mru 1492
mtu 1492
netmask 255.255.255.0
nodetach
lcp-echo-interval 30
lcp-echo-failure 4
lcp-max-configure 60
lcp-restart 2
idle 600
noipx
file /etc/ppp/filters
noreplacedefaultroute
proxyarp
ms-dns 202.96.134.133
ms-dns 202.96.128.68
plugin rp-pppoe.so
plugin radius.so
plugin radattr.so
# PPP 程序的主配置文件,
# 参照http://www.freeantennas.com/PPPoE-Server-HOWTO.html上面的
[root@CentOS ppp]# cat /etc/ppp/pppoe-server-options
# PPP options for the PPPoE server
# LIC: GPL
require-pap
login
lcp-echo-interval 10
lcp-echo-failure 2
# 默认配置,按上面的howto说明是不用修改的
[root@CentOS ppp]# cat /etc/ppp/pap-secrets
# Secrets for authentication using PAP
# client server secret IP addresses
"TMeng" * "111111" *
启动PPPoE Server
[root@CentOS ppp]# pppoe-server -F -I eth1 -L 192.168.3.2
# 启动pppoe 守护进程
[root@CentOS ppp]# less /etc/var/messages
Dec 1 20:25:47 CentOS pppoe-server[6295]: Sent PADT
Dec 1 20:25:47 CentOS pppoe-server[4226]: Sent PADT
Dec 1 20:25:47 CentOS pppoe-server[4204]: Sent PADT
Dec 1 20:25:47 CentOS pppoe-server[4249]: Sent PADT
Dec 1 20:25:47 CentOS pppoe-server[6350]: Sent PADT
# 可以看出pppoe-server进程已启动
***************************************************
故障现像:
客户端为winxp系统,使用XP自带的PPPoe拔号程序故障提示为"如图所示“
日志中提示如下:
Dec 1 20:46:44 CentOS pppoe-server[6584]: Session 34 created for client 00:09:6
b:cd:cf:21 (10.67.15.34) on eth1 using Service-Name ''
Dec 1 20:46:44 CentOS pppoe-server[6445]: Session 34 closed for client 00:09:6b
:cd:cf:21 (10.67.15.34) on eth1
# 没有任何错误提示 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|