I have an ASUS WL-520GU running KAMIKAZE (bleeding edge, r12857) - no GUI - for some years now with no problems. I was using it as an AP with wired uplink and 3 other wired devices as a switch all in the LAN ports. WAN port was not used. DHCP was running on another machine at the uplink side. No VLANs are needed anywhere whatsoever.
I now need one more wired device (so 4+1=5) but as soon as I plug in anything on the WAN port, the WLAN stops. At least the SSID stops being broadcasted and wirelessly connected devices, get disconnected.
I tried most sensible changes from SSH (remember, no GUI/Web interface) to put/bridge everything together or disable WAN with no success.
A colleague recalled another identical issue with a cheap TP-Link (TL-WR741ND) from the past that had this weird limitation that reached a dead end, so I thought about asking you in case I'm trying to make something impossible.
Here is some of my configuration:
root@OpenWrt:~# cat /etc/config/network
#### VLAN configuration
config switch eth0
option vlan0 "1 2 3 4 5*"
option vlan1 "0 5"
#### Loopback configuration
config interface loopback
option ifname "lo"
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0
#### LAN configuration
config interface lan
option type bridge
option ifname "eth0.0"
option proto static
option ipaddr 10.10.10.200
option netmask 255.255.255.0
option gateway 10.10.10.254
option dns 10.10.10.254
#### WAN configuration
config interface wan
option ifname "eth0.1"
option proto dhcp
Hmm I've been getting intermittent connectivity issues, that is machines on the uplink side couldn't ping 10.10.10.200 and machines on the WiFi of this router couldn't ping machines on the uplink side. Rebooting the main DHCP machine on the uplink side and clearing arp was not affecting anything. WiFi SSID was not disappearing at least.
I changed to (removing VLAN1):
root@OpenWrt:~# cat /etc/config/network
#### VLAN configuration
config switch eth0
option vlan0 "0 1 2 3 4 5*"
#### Loopback configuration
config interface loopback
option ifname "lo"
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0
#### LAN configuration
config interface lan
option type bridge
option ifname "eth0.0"
option proto static
option ipaddr 10.10.10.200
option netmask 255.255.255.0
option gateway 10.10.10.254
option dns 10.10.10.254
#### WAN configuration
#config interface wan
# option ifname "eth0.1"
# option proto dhcp
But I still get the same issues.
I'm not sure if this syntax has a mistake (should 5 be included too?).
I can confirm above configuration is working after all for some days now with no problem.
I suspect something was getting cached (arp, dhcp lease) that was causing some strange behaviour. After changing openWRT config, before rebooting the machine, I reboot first the main router (DHCP server), then a power line adapter (for my basement) and then the openWRT machine and everything was working great (lan inter-connectivity, internet connectivity and correct DCHP range assigned).
I mark above as the solution for simplicity although credits go to mk24.