免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2577 | 回复: 0
打印 上一主题 下一主题

CentOS上实现PPPOE接入 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-05 16:21 |只看该作者 |倒序浏览

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;
        }


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/20609/showart_727192.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP