WHR-G300N v2 openwrt 多拨
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口还是不能生效、求解、
这个很危险...:lol tommyli-27 发表于 2012-3-18 23:50 static/image/common/back.gif
这个很危险...
:L啥很危险、
去研究一下技嘉主板的双BIOS技术...:lol 期待你成功,我好跟上 网海神鹰 发表于 2012-3-19 14:56 static/image/common/back.gif
期待你成功,我好跟上
估计要等openwrt正式支持才行了、等openwrt官方发布whr-g300n的固件应该就没问题、
翘首以待,翘首以待,等待正式版本 好东西,学习了 好东西,学习里
页:
[1]