OpenWrt Forum Archive

Topic: question about setting up LAN for asys wl-500gp v2

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

I searched on internet and most of the examples for this router in /etc/config/network are

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

.......
#### LAN configuration
config interface lan
        option type     bridge
        option ifname   "eth0.0"
        option proto    static
        option ipaddr   192.168.1.1
        option netmask  255.255.255.0
.........

My question is about the LAN, why the bridge includes only eth0.0? Shouldn't it include wl0(the wireless) as part of the bridge? Thanks

This is done in /etc/config/wireless, IIRC. The wireless.@wifi-iface[0].network=lan option bridges the wireless nic to the lan network defined in /etc/config/network.

(Last edited by Dogge on 15 Feb 2010, 12:50)

I see smile So it actually doesn't matter if one writes

option ifname   "eth0.0"

or

option ifname   "eth0.0 wl0"

Because I saw wiki article for wl-500w uses the later one.
Thanks.

shallpion wrote:

option ifname   "eth0.0 wl0"

Because I saw wiki article for wl-500w uses the later one.

No idea what side effects this has. I just know that using /etc/config/wireless is the correct way of doing this.

Dogge wrote:
shallpion wrote:

option ifname   "eth0.0 wl0"

Because I saw wiki article for wl-500w uses the later one.

No idea what side effects this has. I just know that using /etc/config/wireless is the correct way of doing this.

I read this article
http://wiki.openwrt.org/oldwiki/openwrt … sus/wl500w
and you can see it uses the later configuration. I have been using it for a while on my wl-500w(already dead for some other reason) and it looks working well.


Thanks

The discussion might have continued from here.