OpenWrt单wan口双拨和N拨教程_第1页
OpenWrt单wan口双拨和N拨教程_第2页
OpenWrt单wan口双拨和N拨教程_第3页
OpenWrt单wan口双拨和N拨教程_第4页
OpenWrt单wan口双拨和N拨教程_第5页
已阅读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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论