已阅读5页,还剩2页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
OpenWrt 单wan口双拨和N拨教程PS:双拨不要新建虚拟的wan网卡就行了使用macvlan+multiwan 单线多拨成功,带宽叠成功1 准备 能刷Openwrt 路由一台 Open wrt 下载地址 中文版本下载 可能不支持你的路由 /backfire/10.03/ 英文版 下载相对应的软件版本2 软件 putty 软件 远程 登陆 路由用SecureCRT 下载地址/soft/6838.html3刷新路由的固件 从 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口的端口名称 rootOpenWrt:# cat /etc/config/networkconfig switch eth0 option enable 1config switch_vlan eth0_0 option device eth0 option vlan 0 option ports 1 2 3 4 5 #port1、2、3、4和cpu 5属于vlan 0config switch_vlan eth0_1 记住 这里的eth0_1 后面有用 option device eth0 option vlan 1 option ports 0 5 #port0和cpu 5属于vlan 1编辑/etc/rc.local 增加虚拟wankourootOpenWrt:# 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:5Eifconfig eth2 upip link add link eth0.1 eth3 type macvlan 增加wan3虚拟网卡 eth0.1 对应前面记下的ifconfig eth3 hw ether 00:11:22:33:44:6Eifconfig eth3 upip link add link eth0.1 eth4 type macvlan 增加wan4虚拟网卡 eth0.1 对应前面记下的ifconfig eth4 hw ether 00:11:22:33:44:7Fifconfig eth4 upip link add link eth0.1 eth5 type macvlan 增加wan5虚拟网卡 eth0.1 对应前面记下的ifconfig eth5 hw ether 00:11:22:33:44:8Eifconfig eth5 upip link add link eth0.1 eth6 type macvlan 增加wan6虚拟网卡 eth0.1 对应前面记下的ifconfig eth6 hw ether 00:11:22:33:44:9Eifconfig eth6 up如果需要更多 自行添加 少的话可以少加点修改后保存 退出 按esc 退出 。shift+:看见左下角显示 :输入wq 保存退出修改/etc/config/network输入命令Vi /etc/config/networkconfig switch eth0 option enable 1config switch_vlan eth0_0 option device eth0 option vlan 0 option ports 1 2 3 4 5config switch_vlan eth0_1 option device eth0 option vlan 1 option ports 0 5config interface loopback option ifname lo option proto static option ipaddr option netmask config interface lan option type bridge option proto static option netmask option ipaddr 50 option defaultroute 0 option peerdns 0 option ifname eth0.0config interface wan option ifname eth0.1 option proto pppoe option password 用户名 option username 密码 option defaultroute 1 option peerdns 1config interface wan2 option ifname eth2 option defaultroute 0 option peerdns 0 option proto noneconfig interface wan3 option ifname eth3 option defaultroute 0 option peerdns 0 option proto noneconfig interface wan4 option ifname eth4 option defaultroute 0 option peerdns 0 option proto noneconfig interface wan5 option ifname eth5 option defaultroute 0 option peerdns 0 option proto noneconfig interface wan6 option ifname eth6 option defaultroute 0 option peerdns 0 option proto none红色为增加部分 这里总共加了6 WAN 拨号!根据需要修改!修改保存,重
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025中国教育虚拟现实行业市场现状及未来投资策略报告
- 高清摄像技术在安防系统中的应用
- 2025年酒店企业客房管理制度
- 互联网营销数据分析案例汇编
- 高校教师线上教学方案设计与实施
- 金融风险评估模型构建
- 基坑支护材料选用及性能分析
- 幼儿园科学主题教育活动策划方案
- 预制叠合板施工详细流程说明
- 行政管理流程的标准化执行手册
- 防范化解重大风险 动态清零重大隐患20240(多行业重大事故隐患判定标准解读)
- 2024秋期国家开放大学《法律文书》一平台在线形考(第一至五次考核形考任务)试题及答案
- 《行行重行行》优教课件
- 第四单元测试卷(单元测试)-2024-2025学年六年级上册统编版语文
- 《第6课 成语画谜猜猜猜-图形与文字》参考教案
- 手写订金合同协议书
- 山林清表合同范本
- 报关流程及委托书模板
- 微观经济学分析口罩限价
- MSA-GRR测量系统分析报告
- 电动车日常检查表
评论
0/150
提交评论