找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 19159|回复: 16

CC固件mwan3无脑单线pppoe3拨教程

  [复制链接]
发表于 2014-11-22 19:25 | 显示全部楼层 |阅读模式
本帖最后由 am2dk 于 2015-9-27 11:29 编辑

1.首先确认你的网络是否支持多拨,最简单的办法就是用两台电脑接交换机,然后交换机连接猫,同时PPPOE。如果能同时拨上说明可以多播。2.确认你的路由器闪存容量8MB以上。
3.下载CC固件:
http://downloads.openwrt.org/snapshots/trunk/ar71xx/
4.如果是原厂固件请使用后缀带factory的,如果已经有openwrt,用sysupgrade后缀的即可。请准备一个能上外网的路由器,需要更新的路由器作为2级路由挂在主路由上面。

5.如果是初次刷新,或者没有设置密码的就用telnet命令,路由器重启后打开命令提示符。
连接路由器
telnet 192.168.1.1
如果有密码并且是openwrt升级的请使用putty,并输入账号跟密码。
6.在命令行下安装软件:
刷新软件列表
opkg update
安装luci
opkg install luci
安装中文语言包
opkg install luci-i18n-base-zh-cn
opkg install luci-i18n-firewall-zh-cn
安装macvlan
opkg install kmod-macvlan
安装mwan3
opkg install mwan3
安装mwan3的web界面
opkg install luci-app-mwan3
开启luci
/etc/init.d/uhttpd enable
启动luci
/etc/init.d/uhttpd start
重启
reboot
注意因为在安装的过程中是需要连接网络的请不要断开网络,如果中途卡住,请重新启动命令提示符,或者putty
7.重启以后进入192.168.1.1,在 系统-语言 里面设置成中文,在 网络-接口 先看看WAN口的类型(一般有eth0 eth1 eth0.2这三种)记下你的WAN口类型,转到 系统-启动项,在最下面的框框里面的exit 0的上面复制粘贴以下代码,红色加粗的地方改成你的WAN口类型:
sleep 6
ip link add link eth0 name vth1 type macvlan
ifconfig vth1 hw ether 00:11:2B:33:44:55
ifconfig vth1 up

ip link add link eth0 name vth2 type macvlan
ifconfig vth2 hw ether 00:11:2C:33:44:56
ifconfig vth2 up

8.转到 网络-Load-Balancing-Advanced-Network-Config 在下面的框框中找到config interface 'wan'开头的这一段,粘贴覆盖以下代码,红色加粗的地方改成你的wan口类型,蓝色加粗的地方填你的pppoe账号跟密码:
config interface 'wan'
        option enabled '1'
        option ifname 'eth0'
        option _orig_ifname 'eth0'
        option _orig_bridge 'false'
        option proto 'pppoe'
        option username '账号'
        option password '密码'
        option metric '1'

config interface 'wan1'
        option enabled '1'
        option _orig_ifname 'eth0'
        option _orig_bridge 'false'
        option ifname 'vth1'
        option proto 'pppoe'
        option username '账号'
        option password '密码'
        option metric '2'

config interface 'wan2'
        option enabled '1'
        option _orig_ifname 'eth0'
        option _orig_bridge 'false'
        option proto 'pppoe'
        option ifname 'vth2'
        option username '账号'
        option password '密码'
        option metric '3'

9.转到 网络-Load-Balancing-Advanced-MWAN Config 在下面的框框中全部覆盖以下代码:
config interface 'wan'
        option enabled '1'
        option reliability '1'
        option up '3'
        option reroute '1'
        list track_ip '114.114.114.114'
        option count '5'
        option timeout '1'
        option interval '1'
        option down '10'

config interface 'wan1'
        option enabled '1'
        option reliability '1'
        option up '3'
        option reroute '2'
        list track_ip '114.114.114.114'
        option count '5'
        option timeout '1'
        option interval '1'
        option down '10'

config interface 'wan2'
        option enabled '1'
        option reliability '1'
        option up '3'
        option reroute '3'
        list track_ip '114.114.114.114'
        option count '5'
        option timeout '1'
        option interval '1'
        option down '10'

config rule
        option proto 'all'
        option equalize '1'
        option use_policy 'wan1234bl'

config member 'wan1m'
        option metric '1'
        option interface 'wan'
        option weight '1'

config member 'wan2m'
        option interface 'wan1'
        option metric '1'
        option weight '1'

config member 'wan3m'
        option interface 'wan2'
        option metric '1'
        option weight '1'

config policy 'wan1234bl'
        list use_member 'wan1m'
        list use_member 'wan2m'
        list use_member 'wan3m'
        option last_resort 'default'
10.转到 网络-接口-WAN1-修改-防火墙设置 设置成wan
网络-接口-WAN2-修改-防火墙设置 设置成wan
11.转到 系统-重启 点 执行重启。并将猫接到该路由器上一同重启。
最后来张效果图:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2014-11-22 21:02 | 显示全部楼层
二楼支持!!!!!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-11-26 19:51 | 显示全部楼层
楼主 上行叠加了吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2014-11-26 20:06 | 显示全部楼层
好东东 测试下先
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-2-1 11:59 | 显示全部楼层
非常感谢,成功了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-4-13 09:27 | 显示全部楼层
CC版是什么意思?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-4-13 22:54 来自手机 | 显示全部楼层
4拨5拨怎么加啊
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-6-24 18:52 | 显示全部楼层
很棒,以前按其它教程,3拨成功,但不叠加。这次终于叠加了。十分感谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-7-22 21:33 | 显示全部楼层
没有用    重起了都进不了路由了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-9-27 21:05 | 显示全部楼层
WARNING: some interfaces have no default route in the main routing table!
请问这是怎么回事?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-9-28 06:40 来自手机 | 显示全部楼层
本帖最后由 vialink 于 2015-9-30 08:32 编辑

这个支持多线多拨吧?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-10-25 21:07 | 显示全部楼层
3QQQQ
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-11-4 19:51 | 显示全部楼层
按你这上改不行,最后自己 改了下 option ifname 'vth2'改eth0.2,但是只能双拨,你上面的3拨不行,一直有个接口连不上,这是怎么回事,都是按你上面的复制的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-11-25 13:21 | 显示全部楼层
marking   学习中
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-12-5 12:55 | 显示全部楼层
正在找这个教程,先学习了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-20 03:24

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表