安装
rp-pppoe-3.5-22.i386.rpm
ppp-2.4.2-6.4.RHEL4.i386.rpm
后,/etc/ppp/默认的文件配置:
[root@GateWay-002 ppp]# more pppoe-server-options
# PPP options for the PPPoE server
# LIC: GPL
require-chap
#上面的表示使用chap-secrets进行认证
login
lcp-echo-interval 10
lcp-echo-failure 2
[root@GateWay-002 ppp]# more options
local
在chap-secrets文件中建立用户,既可使用pppoe-server -L 192.168.0.254 -I eth0 -N 35来使用了
[root@GateWay-002 ppp]# more chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
"110" * "110" 192.168.0.111
优化:
pppoe-server-options的选项:
1.客户端DNS选项(最多可以指定三个DNS):ms-dns 202.103.0.68
2.defaultroute
3.noproxyarp
二.
/etc/ppp/options
lock
/etc/ppp/pppoe-server-options
# PPP options for the PPPoE server
# LIC: GPL
#require-pap
#mtu 1475
lock
-pap
+chap
login
lcp-echo-interval 10
lcp-echo-failure 2
defaultroute
proxyarp
netmask 255.255.0.0
#ms-dns 202.103.24.68
ms-dns 202.103.0.117
阅读(1416) | 评论(0) | 转发(0) |