I configured OpenWrt on an Archer C50 to be a wifi repeater. It connects to a primary router and emits one wireless network connected to the standard lan interface and another one with a Gust configuration.
The issue is that when I connect a device to the wireles guest network it losses that connection shortly afterwards (I am talking up to 10 seconds here) even thou I have been able to ping a website (google.com) for that short connection period.
What confuses me is that the lan network works perfectly fine. Probably I am just missing some small configuration. Please help.
I have a working Guest network so I compared your configs to mine and you have a few entries I don't and missing one, so you might try removing/adding these entries and see if it works, if it does you can put them back one by one to see what breaks it -
Network -
config interface guest - remove -
option type
option dns
You have not posted your wireless configuration file.
Have you seen any message I'm the logs when the issue happens?
What is happening exactly on the client? Does it lose wireless connection? Does all the traffic stop? Just external traffic?
@mike
Thanks for your config. Unfortunately it does not work for me. I Updated the configuration in my first post. Could you please double check if I understood you correctly?
@eduperez
I have added the wirless configuration in the first post as well.
Have you seen any message I'm the logs when the issue happens?
I had a look at what happens when the devices connects via logread -f. (All messages regarding same device and same network interface:
info: authenticated
info: associated (aid 1)
notice: AP-STA-CONNECTED
info: WPA: pairwise key handshake completed (RSN)
info: DHCPREQUEST(wlan0-2) (with ip address)
info: DHCPACK(wlan0-2) (with ip address)
notice: AP-STA-DISCONNECTED
The last entry has a time stamp of +9 seconds compared to the previous ones.
What is happening exactly on the client? Does it lose wireless connection? Does all the traffic stop? Just external traffic?
The device connects and everything looks good (pinging and so on). After those somewhat 10 seconds the device simply looses the wireles connection as if I had chosen a different wifi network. Therefore the still running ping command says "network not reachable" and all the traffic stops.
What exactly do you mean by "just external traffic"?
You LAN wifi is on the 5GHz band and operating with a bandwidth of 80MHz, but your GUEST wifi is on the 2.4GHz band and restricted to 20 MHz. Perhaps the client is considering that the GUEST network is too slow, and disconnecting on purpose?
I woud try to move the APs around, and see what happens.
@eduperez
I can try moving around the AP tomorrow.
Where did you got the information from that the GUEST wifi was still running at 2.4GHz? I was hoping I had abounded that frequency entirely... To enforce that I added option disabled to the radio1 device:
@mike
I have changed the options as you recomanded. unfortunately even with the channel set to 36 (I went to LUCI and configured it in the menu for the connetion to my primary router - the one with the wwan interface) for both my emitted networks I find " Locked to channel 52 used by Client" in the LUCI UI.
But what heavily confuses me is that my client devices do not show the SSIDs any more. Also I am not able to connect to the router via "connecting to a hidden network". Maybe that is related to my forcefully switch to 5GHz? Simply reactivating radio1 device does not help...
Sorry, I should have mentioned that the channel, distance and txpower should be changed on both the repeater and primary router, if that still doesn't work, here's my configs that I know work so you can check yours against them in case I may have missed something -
My mistake: I did not notice that the GUEST network was attached to radio0, I was confused because it is defined after radio1, but now I see it is on radio0.
So, if both LAN and RADIO are on the same hardware, the issue should not be here. Perhaps the client cannot connect to the internet and drops the connection?
@mike
Thanks again. I double checked and everything looks good.
@eduperez
Happends to me all the time . What you are saying makes perfect sense since my phone sayed "no internet connection" when it stopped trying to connect to the guest network.
Anyway since I had trouble to even see my 5GHz networks I went back to 2.4GHz.
Actually I have been here before and only changed because my "all 2.4GHz setup" (main router connection + home and guest network) reliable broke down as soon as a started some heavier download. I discussed it in a different thread and market it as solved since the issue seemed not to appear with all 5GHz setup. But then I encountered the issue described here.
What I am currently doing is having my AP connected to the primary router via 5GHz and the 2 wifi networks emitted via 2.4GHz. That is not really what I wanted but may work for now. At this point I do think the problems are related to driver compatibility since all the configurations are looking good.
I will fiddle around some more and if nothing else comes up I will close this thread next weekend.