- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
OpenWrt 单wan口 N 拨教程
使用macvlan+multiwan 单线多拨成功,带宽叠成功Openwrt 路由一台
Open wrt 下载地址
中文版本下载 可能不支持你的路由
/backfire/10.03/ 英文版 下载相对应的软件版本
2 软件 putty 软件 远程 登陆 路由用SecureCRT
下载地址/soft/6838.html
3.刷新路由的固件 从 dd-wrt 或者 tomato 都可以直接升级
Tftp 应该也可以的
升级后 将 电脑的ip地址设置为 192.168.1.X
路由默认ip 用户名 root 密码 admin
安装软件前 先要配置你的路由能上网
在 nerwork 下有wan口的设置 pppoe 拨号上网设置好 ,保证 单wan能上网
4,安装macvlan软件
进入 system ---- software –页面
先 点一下
Update
然后查找 macvlan 点左边的 install
5.安装multiwan
Multiwan软件参考/viewtopic.php?id=23904
有最新版本下载地址
现在的版本
/multiwan_1.0.16.ipk
/luci-app-multiwan_1.0.16.ipk
用SecureCRT软件登陆 路由 端口是 22
登陆后 输入下面的命令
opkg install /multiwan_1.0.16.ipk
等待安装完成,,再安装
opkg install /luci-app-multiwan_1.0.16.ipk
然后对路由进行配置 以下都在SecureCRT登陆下完成的
# 查看你的wan口的端口名称
root@OpenWrt:~# cat /etc/config/network
config switch eth0
option enable 1
config switch_vlan eth0_0
option device eth0
option vlan 0
option ports 1 2 3 4 5 #port1、2、3、4和cpu 5属于vlan 0
config switch_vlan eth0_1 记住 这里的eth0_1 后面有用
option device eth0
option vlan 1
option ports 0 5 #port0和cpu 5属于vlan 1
编辑/etc/rc.local 增加虚拟wankou
root@OpenWrt:~# vi /etc/rc.local
按键盘 I 进入修改模式
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
ip link add link eth0.1 eth2 type macvlan 增加wan2 虚拟网卡 eth0.1 对应前面记下的
ifconfig eth2 hw ether 00:11:22:33:44:5E
ifconfig eth2 up
ip link add link eth0.1 eth3 type macvlan 增加wan3虚拟网卡 eth0.1 对应前面记下的
ifconfig eth3 hw ether 00:11:22:33:44:6E
ifconfig eth3 up
ip link add link eth0.1 eth4 type macvlan 增加wan4虚拟网卡 eth0.1 对应前面记下的
ifconfig eth4 hw ether 00:11:22:33:44:7F
ifconfig eth4 up
ip link add link eth0.1 eth5 type macvlan 增加wan5虚拟网卡 eth0.1 对应前面记下的
ifconfig eth5 hw ether 00:11:22:33:44:8E
ifconfig eth5 up
ip link add link eth0.1 eth6 type macvlan 增加wan6虚拟网卡 eth0.1 对应前面记下的
ifconfig eth6 hw ether 00:11:22:33:44:9E
ifconf
文档评论(0)