Hi there people of knowledge,
I constantly fail at the configuration of a guest WLAN. My setup:
- TP-Link TL-WR1043N/ND v1
- OpenWrt 18.06.2 r7676-cddd7b4c77 / LuCI openwrt-18.06 branch (git-19.079.57770-b99e77d)
The TP-Link is hooked up to a cable modem -> the cable modem is connected to the WAN port of the router and the router receives it's WAN IP address from the cable modem.
So, there are a few tutorials online, for example this from the openwrt documentation: https://openwrt.org/docs/guide-user/network/wifi/guestwifi/guest-wlan-webinterface or this one by a german guy: https://blog.doenselmann.com/gaeste-wlan-auf-openwrt-access-point/ . So, both of them work - but not for me...
What did I do? The following steps:
Network -> Wireless -> Add a new WLAN with the name abc_guest and a WPA2-PSK passphrase. Works! Remember: I did not set up a Network in the Interface Configuration -> General Setup (I did it a few times and then the internet-connection was broken at this moment).
Next: Network -> Interfaces -> Add a new Interface with the name guest, Static Address, not bridged and covering the >>wlan0-1: Wireless Network: Master "abc_guest" (guest)<<. Then set up the IP address different from my other IP address and gateway and also the DHCP server. When i hit Apply & Save, my internetconnection is gone. In the Overview -> Network the IPv4 downstream looks like this before (left) and after (right):
The settings of the new "guest"-interface tooks over and finally there is no internet-connection from both the originally WLAN and the new guest WLAN.
I've red something about setting up a new route like:
option interface 'xxx'
option target '0.0.0.0'
option netmask '0.0.0.0'
option gateway 'xxx.xxx.xxx.xxx'
But for which interface and which gateway (as for my understanding I red to set up the gateway with the cable modem IP, but this IP changes more often)?
Maybe there is an easy solution for this, but right now I don't know how to go further.
Thany you all in advance.