OpenWrt Forum Archive

Topic: Dumb AP with WAN port

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

Hey guys,
I would like add an AP in my bedroom. I have a WNR2000 with Chaos Calmer on it.
First I "unbridged" the LAN interface with the WAN interface and gave it a static ip (main router: 192.168.178.1, bedroom: 192.168.178.10). Then I connected the main router to one of the switch ports in order to keep an active internet connection. So far so good.
Now the wan port is kind of out of order, but I want to use it as a wan port again to have a spare lan port.
Every attempt to bridge the wan and the lan port(s) back together ended in not able to access the webif of the router anymore.
I assume it has something to do with the firewall.
I followed this tut, but no success whatsoever:
"Dumb AP / Access Point Only"

Thanks in advance
Daniel

(Last edited by dhegemann on 19 Feb 2017, 16:05)

Ok, there are some variants on the page, please, bring /etc/config/network of your router.

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fda3:9793:c8f5::/48'

config interface 'lan'
        option ifname 'eth1'
        option force_link '1'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option ipaddr '192.168.178.10'
        option gateway '192.168.178.1'
        option broadcast '192.168.178.1'

config interface 'wan'
        option ifname 'eth0'
        option proto 'dhcp'

config interface 'wan6'
        option ifname 'eth0'
        option proto 'dhcpv6'

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

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '0 1 2 3 4'

On a dumb AP, there is no WAN network everything is in the LAN.  So delete the 'wan' and 'wan6' sections from /etc/config/wireless.  There is also no need to configure any firewall.  All the firewalling and routing is being done by the main router.  Your WNR2000 functions only as a wifi to wired bridge, and an ethernet switch.

To put both physical interfaces (and all 5 ethernet ports) into the same LAN, add eth0 to the ifname:
    option ifname 'eth1 eth0'

(Last edited by mk24 on 19 Feb 2017, 16:10)

Thank you for your reply, but that didn't do the trick. I had to reset the whole router, because I couldn't get a connection again.
I've made the following changes:
config interface 'lan'
        option ifname 'eth1 eth0' #change
        option force_link '1'
        option proto 'static'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option ipaddr '192.168.178.10'
        option gateway '192.168.178.1'
        option broadcast '192.168.178.1'

And I commented out the whole WAN(6) section.

(Last edited by dhegemann on 19 Feb 2017, 16:22)

Put option type bridge back in. LAN needs to be a bridge, since it is connecting three things: your wifi, and the two Ethernet interfaces.

So I add "option type 'bridge'" under "config interface 'lan'" and I should be good to go?

(Last edited by dhegemann on 19 Feb 2017, 17:20)

What can I say, it works now!!! Thank you guys for your help.
Such a simple thing big_smile

The discussion might have continued from here.