OpenWrt Forum Archive

Topic: Add WAN ports to switch on Asus WL500w

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

Hi,

The routers uplink is connected to a local subnet and I want this network available on (at least some) switch ports. The wifi devices should stay on their seperate OpenWRT LAN.

I found the following thread  https://forum.openwrt.org/viewtopic.php?id=19540 - but the WAN interface here in /etc/config/network is not eth0.1 but eth1 (Kamikaze r16206 / Asus WL500w). Now I tried to use the config from the last post in that thread, which as expected, did not work. I then tried different combinations of eth1.0, eth1.1, eth2 etc - but to no avail.

The switch config part is as follows:
config 'switch' 'eth0'
        option 'vlan1' '0 2 3 4 5'
        option 'vlan0' '1 5u'

I think this should give me on this device 3 WAN ports and 1 LAN port.

Can anyone give me a hint how this should be setup?

thanks,
otwin

as far as I know VLANs unfortunately don't work with the 500w switch (but they do in 500gp v1)

You can add the eth1 to the lan network/bridge, then all ports will be bridged by software.

example(!) in /etc/config/network

config interface lan
        option ifname   "eth0 eth1"
        option type     bridge

You will have to remove the "config interface wan" section, if you do this.

IIRC, the 500w does not have a switch at all.

MMCM wrote:

example(!) in /etc/config/network

config interface lan
        option ifname   "eth0 eth1"
        option type     bridge

You will have to remove the "config interface wan" section, if you do this.

uci set network.lan.ifname='eth0 eth1'
uci set network.lan.type=bridge
uci del network.wan
uci commit network

/etc/init.d/network resart

(Last edited by Dogge on 3 Sep 2009, 09:43)

ok, had to try this now from remote, but I can't access the router now anymore. Must have missed something. I'll be back at that location on monday, will try again and report.

I probably have a spare WL500gP if it shouldn't be possible with the WL500w.

Thanks for the replies.

MMCM wrote:

You can add the eth1 to the lan network/bridge, then all ports will be bridged by software.

example(!) in /etc/config/network

config interface lan
        option ifname   "eth0 eth1"
        option type     bridge

You will have to remove the "config interface wan" section, if you do this.

That did not work. It gives a Nat interface on the initial WAN port and the others don't seem to have any network configured.

But the good news is that it's very easy to configure on the WL500gP. Modifying the vlans in the switch section of /etc/config/network is all you have to do. So for anybody else who wants to configure this, the following example gives you 2 NAT and 2 WAN ports on the switch of a WL500gP.

config switch eth0
        option vlan0    "1 2 5*"
        option vlan1    "0 3 4 5"

The discussion might have continued from here.