ubnt解决方案
查看: 10456|回复: 9

[下载] WHR-G300N v2 openwrt 多拨

[复制链接]

81

回帖

510

积分

208 小时

在线时间

中尉

注册时间
2012-3-16
金币
376 个
威望
2 个
荣誉
0 个

尚未签到

发表于 2012-3-18 22:34 |显示全部楼层
WHR-G300N v2 成功在DD-Wrt下升级到 openwrt、刷的G301N的OP固件、openwrt-ar71xx-generic-whr-g301n-squashfs-sysupgrade.bin 、
固件版本
        OpenWrt Firmware Attitude Adjustment (r30463) /
        LuCI Trunk (trunk+svn8222)
        
内核版本
        3.2.5
我用的kmod-macvlan + multiwan多拨、
装了 ip 、kmod-macvlan 、 multiwan 、 luci-app-multiwan  、

我的配置如下:
我  /etc/rc.local 配置:
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

ip link add link eth1 eth2 type macvlan
ifconfig eth2 hw ether 00:11:22:33:44:5E
ifconfig eth2 up

ip link add link eth1 eth3 type macvlan          \\这里的eth1、到底应该配置为多少?我配置为eth1、eth1.0、eth0.1、eth0、虚拟wan口上都不能连接(即使把原wan口停止拨号、虚拟wan口也不能拨号、物理接口eth2和eth3也都显示未连接状态)、原wan口连接正常、
ifconfig eth3 hw ether 00:11:22:33:44:5F
ifconfig eth3 up

exit 0



我的  \etc\config\network  配置:


config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'ifname' 'eth0'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'netmask' '255.255.255.0'
        option 'ipaddr' '192.168.36.1'
        option 'gateway' '192.168.36.1'

config 'interface' 'wan'
        option 'ifname' 'eth1'
        option '_orig_ifname' 'eth1'
        option '_orig_bridge' 'false'
        option 'proto' 'pppoe'
        option 'username' 'ABCDEFG'
        option 'password' '819128'

config 'interface' 'wan2'
        option 'ifname' 'eth2'
        option '_orig_ifname' 'eth2'
        option '_orig_bridge' 'false'
        option 'macaddr' '00:90:4C:C0:04:52'
        option 'proto' 'pppoe'
        option 'username' 'ABCDEFG'
        option 'password' '819128'

config 'interface' 'wan3'
        option 'ifname' 'eth3'
        option '_orig_ifname' 'eth3'
        option '_orig_bridge' 'false'
        option 'macaddr' '00:90:4C:C0:04:53'
        option 'proto' 'pppoe'
        option 'username' 'ABCDEFG'
        option 'password' '819128'

config 'switch'
        option 'name' 'eth0'
        option 'reset' '1'
        option 'enable_vlan' '1'

config 'switch_vlan'
        option 'device' 'eth0'
        option 'vlan' '1'
        option 'ports' '0 1 2 3 4'






我的  /etc/config/multiwan  配置:
config 'multiwan' 'config'
        # REMOVE THIS LINE OR PUT TO 1 TO ENABLE MULTIWAN
        option 'enabled' '1'

        option 'default_route' 'balancer'
        # health_monitor below is defaulted to parallel, and can be set to
        # serial to save system resources.
        # option 'health_monitor' 'serial'
        # option 'debug' '1'

config 'interface' 'wan'
        option 'weight' '10'
        option 'health_interval' '10'
        option 'icmp_hosts' 'dns'
        # icmp_count is defaulted to 1, and can be increased to reduce
        # false positives.
        # option 'icmp_count' '3'
        option 'timeout' '3'
        option 'health_fail_retries' '3'
        option 'health_recovery_retries' '5'
        option 'failover_to' 'balancer'
        option 'dns' 'auto'

config 'interface' 'wan2'
        option 'weight' '10'
        option 'health_interval' '10'
        option 'icmp_hosts' 'dns'
        option 'timeout' '3'
        option 'health_fail_retries' '3'
        option 'health_recovery_retries' '5'
        option 'failover_to' 'balancer'
        option 'dns' 'auto'

config 'interface' 'wan3'
        option 'weight' '10'
        option 'health_interval' '10'
        option 'icmp_hosts' 'dns'
        option 'timeout' '3'
        option 'health_fail_retries' '3'
        option 'health_recovery_retries' '5'
        option 'failover_to' 'balancer'
        option 'dns' 'auto'

config 'mwanfw'
        option 'src' '192.168.36.0/24'
        option 'dst' 'ftp.netlab7.com'
        option 'proto' 'tcp'
        option 'ports' '443'
        option 'wanrule' 'wan'

# VoIP traffic goes through wan
# config 'mwanfw'
        # option 'src' '192.168.1.0/24'
        # option 'proto' 'udp'
        # option 'port_type' 'source-ports'
        # option 'ports' '5060,16384:16482'
        # option 'wanrule' 'wan'

config 'mwanfw'
        option 'src' '192.168.0.3'
        option 'proto' 'icmp'
        option 'wanrule' 'balancer'

config 'mwanfw'
        option 'dst' 'www.whatismyip.com'
        option 'wanrule' 'fastbalancer'



设置后、原wan可以pppoe拨号、wan2和wan3无法拨号、停止原wan口的连接后仍然不能、物理接口配置页面显示eth2和eth3是灰色的(未连接)、
nwan下创建wan口还是不能生效、求解、

2918

回帖

1万

积分

677 小时

在线时间

上校

注册时间
2012-2-13
金币
16087 个
威望
8 个
荣誉
0 个
累计签到:1584 天
连续签到:0 天
[LV.1825]无线元老
发表于 2012-3-18 23:50 |显示全部楼层
这个很危险...
回复

使用道具 举报

81

回帖

510

积分

208 小时

在线时间

中尉

注册时间
2012-3-16
金币
376 个
威望
2 个
荣誉
0 个

尚未签到

发表于 2012-3-19 10:53 |显示全部楼层
tommyli-27 发表于 2012-3-18 23:50
这个很危险...

啥很危险、
回复

使用道具 举报

2918

回帖

1万

积分

677 小时

在线时间

上校

注册时间
2012-2-13
金币
16087 个
威望
8 个
荣誉
0 个
累计签到:1584 天
连续签到:0 天
[LV.1825]无线元老
发表于 2012-3-19 10:57 |显示全部楼层
去研究一下技嘉主板的双BIOS技术...
回复

使用道具 举报

347

回帖

3781

积分

709 小时

在线时间

少校

注册时间
2010-3-4
金币
3329 个
威望
6 个
荣誉
0 个
累计签到:204 天
连续签到:0 天
[LV.365]无线熟人
发表于 2012-3-19 14:56 |显示全部楼层
期待你成功,我好跟上
回复

使用道具 举报

81

回帖

510

积分

208 小时

在线时间

中尉

注册时间
2012-3-16
金币
376 个
威望
2 个
荣誉
0 个

尚未签到

发表于 2012-3-19 17:06 |显示全部楼层
网海神鹰 发表于 2012-3-19 14:56
期待你成功,我好跟上

估计要等openwrt正式支持才行了、等openwrt官方发布whr-g300n的固件应该就没问题、
回复

使用道具 举报

347

回帖

3781

积分

709 小时

在线时间

少校

注册时间
2010-3-4
金币
3329 个
威望
6 个
荣誉
0 个
累计签到:204 天
连续签到:0 天
[LV.365]无线熟人
发表于 2012-3-19 17:38 |显示全部楼层
翘首以待,翘首以待,等待正式版本
回复

使用道具 举报

李长春个噢噢】 该用户已被删除
发表于 2012-4-7 14:51 |显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

1

回帖

20

积分

3 小时

在线时间

新兵上阵

注册时间
2012-9-25
金币
19 个
威望
0 个
荣誉
0 个

尚未签到

发表于 2012-9-26 09:56 |显示全部楼层
好东西,学习了
回复

使用道具 举报

4

回帖

6

积分

0 小时

在线时间

预备兵

注册时间
2022-9-14
金币
2 个
威望
0 个
荣誉
0 个

尚未签到

发表于 2022-9-14 23:56 |显示全部楼层
好东西,学习里
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册 微信登录

本版积分规则

Archiver | 手机版 | 无线门户 ( 粤ICP备11076993号|粤公网安备44010602008359号 ) |网站地图

GMT+8, 2026-5-20 05:54

返回顶部 返回列表