I am trying to enable a Dual-band Guest network using the command mentioned in
uci -q delete network.guest_dev
uci set network.guest_dev="device"
uci set network.guest_dev.type="bridge"
uci set network.guest_dev.name="br-guest"
uci -q delete network.guest
uci set network.guest="interface"
uci set network.guest.proto="static"
uci set network.guest.device="br-guest"
uci set network.guest.ipaddr="192.168.3.1"
uci set network.guest.netmask="255.255.255.0"
uci commit network
/etc/init.d/network restart
WIFI_DEV="$(uci get wireless.@wifi-iface[0].device)"
uci -q delete wireless.guest
uci set wireless.guest="wifi-iface"
uci set wireless.guest.device="${WIFI_DEV}"
uci set wireless.guest.mode="ap"
uci set wireless.guest.network="guest"
uci set wireless.guest.ssid="guest"
uci set wireless.guest.encryption="none"
uci commit wireless
wifi reload
# Configure DHCP
uci -q delete dhcp.guest
uci set dhcp.guest="dhcp"
uci set dhcp.guest.interface="guest"
uci set dhcp.guest.start="100"
uci set dhcp.guest.limit="150"
uci set dhcp.guest.leasetime="1h"
uci commit dhcp
/etc/init.d/dnsmasq restart
# Configure wireless
WIFI_DEV="$(uci get wireless.@wifi-iface[1].device)"
uci -q delete wireless.guest2
uci set wireless.guest2="wifi-iface"
uci set wireless.guest2.device="${WIFI_DEV}"
uci set wireless.guest2.mode="ap"
uci set wireless.guest2.network="guest"
uci set wireless.guest2.ssid="guest2"
uci set wireless.guest2.encryption="none"
uci commit wireless
wifi reload
Both Access points "guest" and "guest2" are enabled. But connecting to these access points is failing
.
I was able to see DHCPDISCOVER request, but there was no response for DHCPDISCOVER on the Router
I was able to connect to Access Point when any one of them is enabled( Enabling 2.4 GHz or Enabling only 5 GHz)
Enabling both 2.4 GHz 5 GHz and connecting to those Access Point is failing.
Please copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
Can you describe the specific symptoms when you try to connect? Does the wireless device have difficulty obtaining a DHCP lease? or is it not able to connect to the SSID at all? Or is it simply unable to connect to the internet, but it can obtain a DHCP lease?
Does the problem still happen if you disable one or the other of the guest SSIDs?
There are a few things you should remove from your firewall file, but these are probably not related to the issue:
Remove this:
And this....
And this doesn't do anything since you already allow guest > wan forwarding.
When both guest wifi(2.4GHz and 5GHz) are enabled, client devices (like mobile, Laptop) were able to connect to SSID, But devices did not get a DHCP lease.
When only one guest wifi(2.4GHz or 5GHz) is enabled, wireless devices were able to connect to Guest SSID and get the DHCP lease. I was able to browse on wireless device.
I am seeing this issue only when both guest wifi is enabled.
I am using Linksys WRT1900ACS running OpenWRT 18.06.08.
The solution is to create a bridge device e.g. br-guest, then create a guest network interface as normal as shown in various guides, but making sure you select the br-guest bridge device as the device, rather than a specific radio interface.
For each wireless SSID, you assign them to the br-guest bridge.
Most of the guides around guest WiFi will just create a guest network interface that links to a single radio, which doesn't allow you to have both bands. Using a bridge means you can have both a 2.4 GHz and 5.0 GHz SSID under the single guest network. For convenience , the SSID can be the same across both if you'd like.