pppoe linux软件,LINUXPPPOEV6服务器搭建测试(最新整理)

《LINUXPPPOEV6服务器搭建测试(最新整理)》由会员分享,可在线阅读,更多相关《LINUXPPPOEV6服务器搭建测试(最新整理)(8页珍藏版)》请在人人文库网上搜索。

1、linux 搭建 ipv6 的 pppoe server 端近期在做 PPPOEV6 的测试,就尝试着在 linux 搭建 pppoe 相关软件,主要是开源软件 ppp-2.4.5 和 rp-pppoe-3.8以下是对网上资料的整理,跳过很多人写的乱七八糟的 COPY,完全按下面步骤走就可以了网络架构 pc-routerserverPC: WIN7ROUTER:dlink 860lbServer:DEBIAN 5(这个安好就自带了 ppp rp-pppoe,但下面我还是讲下如何用 GZ 来安,你可以用 apt-get autoremove ppp pppoe 将它删了)如何查看是否安好了,用 。

2、dpkg debian:/etc/ppp# dpkg -l | grep ppprcppp2.4.5-4Point-to-Point Protocol (PPP) - daemonrcpppoe3.8-3PPP over Ethernet driverdebian:/etc/ppp# dpkg -get-selections | grep ppppppdeinstallpppoedeinstall如上,系统自带的被我删了,然后我自己装了这 2 个软件1. 下载 ppp-2.4.5.tar.gz、rp-pppoe-3.8.tar.gz 2.安装a. 将 ppp、rp-pppoe 解压b. 安装 。

3、pppdcd ppp-2.4.5/pppdvi Makefile.linux 开启 HAVE_INET6=y/ 关键点,不然不支持 IPV6 cd ppp-2.4.5./configure(备注:先 make clean 一下,确保 HAVE_INET6 开启)makemake install c.安装 rp-pppoecd rp-pppoe/src./configure -enable-plugin=/opt/ppp-2.4.5/这句好像没什么意义makemake install 3.修改配置文件vim /etc/ppp/pppoe.conf修改下面几个值,其他的不要动ETH=eth0USE。

4、R=rp-pppoe/拨号用户名LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.sovim /etc/ppp/pppoe-server-options下面是全部内容# PPP options for the PPPoE server # LIC: GPLrequire-chap/表示会用到 chap-secrets 文件#loginlcp-echo-interval 10lcp-echo-failure 2+ipv6ipv6 :1,:2SERVER 会分到一个 FE80:1/10 的地址,ROUTER 会分到一个 FE80:2/10 的地址,然后我们需要配置 di。

5、bbler 才能让 ROUTER 拿到 GLOBAL 地址vim /etc/ppp/chap-secrets# Secrets for authentication using CHAP# clientserversecretIP addressesrp-pppoe*rp-pppoe*用*代替地址,这个表是 CHAP 认证的账号和密码对照表,所以实际上我们拨号的账号密码都是 rp-pppoevim options local4. 开启 server 端pppoe-server -I eth05. 页面和配置效果PPPOEV6 ONLY拨号成功以后可以看到 PPP0 分配了一个本地地址 FE80。

6、:2/10 ppp0Link encap:Point-to-Point Protocolinet6 addr: fe80:2/10 Scope:LinkUP POINTOPOINT RUNNING NOARP MULTICASTMTU:1492Metric:1RX packets:7 errors:0 dropped:0 overruns:0 frame:0 TX packets:17 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3RX bytes:196 (196.0 B)TX bytes:1291 (1.2。

7、 KiB)但是我们还没有拿到 GLOBAL 地址,所以我们需要在 debian 上跑 radvd 和 dibbler 来给 PPP接口分配地址1. STATELESS 的情况,这种模式下只跑 RADVD 就可以了,RADVD 的配置文件如下Vim /etc/radvd.conf interface ppp0AdvSendAdvert on;MinRtrAdvInterval 3;MaxRtrAdvInterval 10; AdvDefaultPreference high; AdvHomeAgentFlag off;IgnoreIfMissing on;/这个很关键AdvManagedFlag。

8、 off;/这个很关键AdvOtherConfigFlag off; /这个很关键prefix 2001:/96AdvOnLink on;AdvAutonomous on; /让 PPP 接口根据 PREFIX 生成地址AdvRouterAddr on;RDNSS 2001:1 2001:2AdvRDNSSPreference 8;AdvRDNSSLifetime 30;然后看效果,GLOBAL 地址成功分配ppp0Link encap:Point-to-Point Protocol inet6 addr: 2001:2/64 Scope:Global inet6 addr: fe80:2/1。

9、0 Scope:LinkUP POINTOPOINT RUNNING NOARP MULTICASTMTU:1492Metric:1RX packets:47 errors:0 dropped:0 overruns:0 frame:0 TX packets:13 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3RX bytes:5452 (5.3 KiB) TX bytes:1439 (1.4 KiB)cat /etc/resolv.conf # Auto-Generatednameserver 192.168.。

10、0.1 search但是 RDNSS 没有解析成功,没拿到 DNS 地址,看来只有换 STATEFUL 模式2. STATEFUL 模式,既要配置 RADVD 又要配置 DIBBLER Vim /etc/radvd.conf 注意红色部分的不同interface ppp0AdvSendAdvert on;MinRtrAdvInterval 3;MaxRtrAdvInterval 10; AdvDefaultPreference high; AdvHomeAgentFlag off;IgnoreIfMissing on;AdvManagedFlag on;AdvOtherConfigFlag o。

11、n;prefix 2001:/96AdvOnLink on;AdvAutonomous off;AdvRouterAddr on;RDNSS 2001:1 2001:2AdvRDNSSPreference 8;AdvRDNSSLifetime 30;红色部分意思是 RADVD 不分配地址,用 DIBBLER 来分,原理就是协议上规定的 M 和 O 值Vim /etc/dibbler/server.conf# Logging level range: 1(Emergency)-8(Debug) log-level 8# Dont log full date log-mode short# set。

12、 preference of this server to 0 (higher = more prefered) preference 0iface ppp0 / also ranges can be defines, instead of exact values t1 1800-2000t2 2700-3000prefered-lifetime 3600valid-lifetime 7200class pool 2000:/64# assign temporary addresses from this pool ta-class pool 3000:/96#assign /96 pref。

13、ixes from this pool pd-class pd-pool 3000:458:ff01:ff03:abcd:/80 pd-length 96option dns-server 2000:ff,2000:fe有时候会发生不回报文的问题,红色部分 ppp0 表示在这个接口上跑 dibbler然后我将 ppp0 改成 eth0,居然成功了,但第二次失败,又改回 ppp0,成功,后来我发现原来是因为 PPP0 接口建立之前带 DIBBLER 会不能通信,必须在 PPP0 建立后把 DIBBLER 带起来, 这个 BUG 看来需要自己研究配置文件才行了,暂时放着成功以后分得 GLOBAL 。

14、地址ppp0Link encap:Point-to-Point Protocolinet6 addr: 2000:ea5c:2de2:713e:a561/96 Scope:Global inet6 addr: fe80:2/10 Scope:LinkUP POINTOPOINT RUNNING NOARP MULTICASTMTU:1492Metric:1RX packets:56 errors:0 dropped:0 overruns:0 frame:0 TX packets:16 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 tx。

15、queuelen:3RX bytes:6847 (6.6 KiB) TX bytes:1806 (1.7 KiB)DNS 也分到了# cat /etc/resolv.conf # Auto-Generated nameserver 2000:ff nameserver 2000:fenameserver 192.168.0.1 search分割线 这个 ROUTER 还支持 pppoev4 share pppoev6SERVER 的参数有点不一样,其它都一样,主要是给一个 IPV4 的地址pppoe-server -I eth0 L 10.10.10.10-R 10.10.10.11拨号成功以。

16、后 PPP0 接口会既有 IPV4 地址又有 IPV6 地址,非常有意思ppp0Link encap:Point-to-Point Protocolinet addr:10.10.10.13P-t-P:10.10.10.10Mask:255.255.255.255inet6 addr: 2001:2/64 Scope:Global inet6 addr: fe80:2/10 Scope:LinkUP POINTOPOINT RUNNING NOARP MULTICASTMTU:1492Metric:1RX packets:27 errors:0 dropped:0 overruns:0 fra。

17、me:0 TX packets:28 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3RX bytes:2544 (2.4 KiB)TX bytes:2014 (1.9 KiB) 但是 SERVER 这边没有 GLOBAL 地址,我们可以自己配一个Debian:/#ip -6 addr add 2001:1/64 dev ppp0加路由Debian:/#ip -6 route add 3001:1/64 via 2001:1;“”“”At the end, Xiao Bian gives you a passag。

18、e. Minand once said, people who learn to learn are very happy people. In every wonderful life, learning is an eternal theme. As a professional clerical and teaching position, I understand the importance of continuous learning, life is diligent, nothing can be gained, only continuous learning can ach。

19、ieve better self. Only by constantly learning and mastering the latest relevant knowledge, can employees from all walks of life keep up with the pace of enterprise development and innovate to meet the needs of the market. This document is also edited by my studio professionals, there may be errors in the document, if there are errors, please correct, thank you。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值