OpenWrt Forum Archive

Topic: WNDR3700: bridging WAN and LAN ports

The content of this topic has been archived on 2 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I'm using @arokh's latest OpenWRT builds on my WNDR3700. I'm using this box as a wireless access point only; I already have another device acting as gateway/router. With this in mind, I wanted to bridge the WAN and LAN ports. Below is my current /etc/config/network. This does not work; I am unable to ping across the WAN/LAN interfaces... what am I doing wrong?

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 'type' 'bridge'
        option 'proto' 'static'
        option 'netmask' '255.255.255.0'
        option 'ifname' 'eth0.1 eth1'
        option 'ipaddr' '192.168.2.5'
        option 'gateway' '192.168.2.1'
        option 'dns' '192.168.2.1'

config 'switch'
        option 'name' 'rtl8366s'
        option 'reset' '1'
        option 'enable_vlan' '1'
        option 'blinkrate' '2'

config 'switch_vlan'
        option 'device' 'rtl8366s'
        option 'vlan' '1'
        option 'ports' '0 1 2 3 5t'

config 'switch_port'
        option 'device' 'rtl8366s'
        option 'port' '1'
        option 'led' '6'

config 'switch_port'
        option 'device' 'rtl8366s'
        option 'port' '2'
        option 'led' '9'

config 'switch_port'
        option 'device' 'rtl8366s'
        option 'port' '5'
        option 'led' '2'

Hey Juggler!

I'm using the same configuration as you and even the same arokh's build tho not the very latest. I have exactly the same /etc/config/network (except for lan's 'ipaddr', 'gateway' and 'dns') and it's working fine.

I know this is an old thread but I ran into the same problem, so here's what I did to get it working.

Instead of

option 'ifname' 'eth0.1 eth1'

use

option 'ifname' 'eth0.1 eth1.1'

Guess it has to do with vlan tagging, if you don't do that on eth1 as well packets are just ignored. Works for me anyway on backfire 10.03.1 (r29592).

The discussion might have continued from here.