I have Asus RT-AC66U as main router connected to ISP modem-router in bridge mode, and currently is the active AP in the house. It's running Tomato for the time being (I know it's not considered secure, but I need the bandwidth monitoring for now. My future plans involve either swapping it for an OpenWrt router or trying to build an image for it using new kernel).
Anyway, as the phone socket is inconveniently placed, I get some devices that are often unhappy with 2.4 Ghz not to mention the 5 GHz--namely a TV and an iPhone.
The TV mainly runs offline content, so I currency have it wired to Archer C7 V2 running OpenWrt serving a HDD by miniDLNA. The router isn't on the "main" network and has no internet source, so when I want to manage it or add files to the HDD, I hook a USB WiFi dongle to m PC and connect to Archer WiFi. This works though not very convenient of course.
And then there is the iPhone that seems to be unhappy with the range to the Asus router. So I was thinking of setting the Archer as a client of the Asus, then it can be wired to the TV and also giving internet to the iPhone.
With the two routers have different chips and different firmwares, I imagine the WDS is a no. I previously tried the relay configuration https://openwrt.org/docs/guide-user/network/wifi/relay_configuration but experienced intermittent connection between the two routers. (I was doing it on the 5 GHz band to be honest, so maybe I should have tried 2.4 GHz as well), but anyway I came across the AP+Sta configuration https://openwrt.org/docs/guide-user/network/wifi/relay_configuration and was thinking I should give it a try (or re-visit the Relay configuration, on 2.4 GHz this time). Though, before starting missing around with a working system(s) in different directions, I have couple of questions:
Given the difference in hardware and firmware between the two routers, is any of the two configurations (relay vs AP+Sta) has better chances of working smoothly? I imagine that they both connect to the other router the same way, but thought of checking.
I am aware of the issue with the no AP when WWAN AP isn't available (and that there is a work around). But does the AP go off only for that band, or will APs on all bands? I mean if I use the 5 GHz for the WWAN and the router loses connection to the other router, will the 2.4 GHz AP go off as well? I am also aware of travelmate, but if I can do without that's better.
Are there any other configuration that could work for me? I don't care if the router will create it's subnet or not, as long as it will be feasible for me to access one from my PC while connected to the other's AP.
Power-line modem perhaps, if you can't run Ethernet.
While the four-address packets are part of the 802.11 standard, how they are used, as far as I know, isn't. If WDS doesn't work and Tomato supports advanced networking, such as GRE or VPN bridging, that might be another option.
The Asus RT-AC66U uses Broadcom softmac wireless cards (BCM4360 and BCM4331), neither are (sufficiently) supported by free drivers (or OpenWrt), which means Tomato uses the proprietary Broadcom drivers for them. WDS/ 4addr as used by mainline mac80211 based drivers is not compatible with Broadcom's proprietary equivalent, leaving the routed client scenario with relayd as the only (sub-optimal) solution.
Sorry, a question that might reveal some of my ignorance: how different is the AP+Sta configuration from the relayd? Don't they handle the connection between the two routers similarly?
"AP+Sta" just means that the router is a client of another AP, as well as offering an AP to other clients. How one chooses to use those two connections is the heart of the matter.
One of the "problems" many people face is that they want the clients to be on the same subnet that the main AP is offering for on-link services such as mDNS, or Windows browsing. Something like relayd "fakes it", at least for IPv4, by "spoofing" those on-link requests and responses from one subnet to another.
With L2 bridging, it just works, but the options for L2 bridging are limited for routers without the flexibility, sophistication, and configurability of OpenWrt.
OK so I tried relayd, and now I remember what happened when I tried it couple of weeks ago. The OpenWrt (client) router has internet connection, I can access it via the WWAN address (192.168.1.2) when i am connected to the main AP, and the LAN address (192.168.2.1) when I'm connected to its AP.
I seem to have issues with DHCP and DNS, though for some devices I was able to have internet connections via the OpenWrt AP when settings a static DHCP and DNS. I tried setting the LAN IP to static and also putting the IP of the main router as the DHCP gateway and DNS at the WWAN interface, but still it doesn't seem to "relay" that to the the clients of OpenWrt AP.
Anyway, I know I was warned, so I guess it's what it's.
But what was disappinting is that I couldn't have SSH or SCP access via the WWAN IP when connected to main AP, and I couldn't access SMB share either. WWAN is on the same firewall zone as LAN, and I can access the GUI via WWAN IP, so why not SSH or SMB?
As for the wireless clients of OpenWrt AP and that they don't get IPs for main router DHCP server, I thought of using trelay, but without documentations I don't even know what names to put for config in \etc\config\trelay (should it be the physical device name or the interface name or what.
root@C7:~# service trelay start
sh: write error: Resource busy
Meanwhile, these are my config files. Do they make sense (particularly regarding the name of the devices I am bridging. Basically I want OpenWrt LAN clients and hopefully clients of AP "T" to have access.
/etc/config/network (WAN_IP, WAN6_IP and WAN_PPPoE interfaces are disabled)
Edit: found out that DHCP was left on on LAN, so turned that off.
Also in /etc/config/trelay I turned enabled to 0 and now it seems like it doesn't mind service trelay start, though it doesn't give any errors if I start it more than once, so I don't know if it's actually running or not. service trelay status isn't working.
As for the system, I can now access the router form the LAN side only (via its AP of course not the main router's AP), it has internet. But other than this it's client get no internet and I can't access it form the WAN side via the main router's AP.