newcastlecy / openwrt-hiwifi

Automatically exported from code.google.com/p/openwrt-hiwifi
1 stars 0 forks source link

HiWiFi internal switch unable to forward packets between 2 wired ports #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've written a mach file for running OpenWrt on this router:
https://code.google.com/p/openwrt-hiwifi/source/browse/trunk/mach-tw150v1/mach-a
p83.c

Everything works OK except that communication on the two wired ports through 
the internal switch doesn't work. I've tried many times of changing the 
parameters during the platform initialization, but still cannot get it work...

This is a very well-designed router. Any help on supporting OpenWrt for this 
router is appriciated! 

Original issue reported on code.google.com by rss...@gmail.com on 22 Aug 2013 at 6:29

GoogleCodeExporter commented 9 years ago
RESOLVED!

The problem is not in source code, but missing a "switch" config. Adding the 
following lines to /etc/config/network gets forwarding between LAN ports 
working!

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'

Original comment by rss...@gmail.com on 23 Aug 2013 at 8:44

GoogleCodeExporter commented 9 years ago
The 'switch' configuration can be reduced to the following if you just want to 
enable forwarding between the wired ports:

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

Original comment by rss...@gmail.com on 23 Aug 2013 at 9:38