Chinaunix首页 | 论坛 | 博客
  • 博客访问: 67640
  • 博文数量: 14
  • 博客积分: 1599
  • 博客等级: 上尉
  • 技术积分: 160
  • 用 户 组: 普通用户
  • 注册时间: 2006-06-13 09:39
文章分类
文章存档

2011年(6)

2010年(4)

2008年(4)

分类: 系统运维

2008-06-05 16:21:15

CentOS release 5 (Final) 默认的安装包是ppp-2.4.4 和rp-pppoe-3.5-32.1,配置可以拨号,但是无法通过验证,最终发现是ppp版本兼容性问题,下载ppp-2.4.1-6plf后,强制降级,拨号成功。

配置文件/etc/ppp/options

local
require-pap
login
auth
defaultroute
ipcp-accept-local
ipcp-accept-remote
10.0.0.1:10.0.0.255
netmask 255.255.255.0
ms-dns 192.168.1.144

/etc/ppp/pap-secrets

# client        server secret                  IP addresses
*       *       ""      *

/etc/ppp/pppoe-server-options

logfile /var/log/pppd.log

echo "/sbin/pppoe-server -I eth2.3 -I eth2.101 -I eth2.8" >>/etc/rc.local 启动pppoe-server

附DHCP配置(可用于pppoe动态分配ip)

/etc/dhcpd.conf

option netbios-name-servers 192.168.1.144;
option netbios-node-type 8;
option domain-name-servers 192.168.1.144;
ddns-update-style interim;
ignore client-updates;

# 2

#subnet 172.16.3.0 netmask 255.255.255.0 {
#       option routers 172.16.3.1;
#       range 172.16.3.11 172.16.3.50;
#       }
subnet 172.16.4.0 netmask 255.255.255.0 {
        option routers 172.16.4.1;
        range 172.16.4.11 172.16.4.50;
        }
subnet 172.16.5.0 netmask 255.255.255.0 {
        option routers 172.16.5.1;
        range 172.16.5.11 172.16.5.50;
        }
subnet 172.16.6.0 netmask 255.255.255.0 {
        option routers 172.16.6.1;
        range 172.16.6.11 172.16.6.50;
        }
subnet 172.16.7.0 netmask 255.255.255.0 {
        option routers 172.16.7.1;
        range 172.16.7.11 172.16.7.50;
        }
subnet 172.16.8.0 netmask 255.255.255.0 {
        option routers 172.16.8.1;
        range 172.16.8.11 172.16.8.50;
        }
subnet 172.16.131.0 netmask 255.255.255.0 {
        option routers 172.16.131.1;
        range 172.16.131.11 172.16.131.50;
        }

阅读(2138) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~