Consistent DHCP failures between Tasmota 6.1.1 flashed 8 x Sonoff Basics and Unifi AC-Lite wifi AP

811 views
Skip to first unread message

kiat....@gmail.com

unread,
Aug 11, 2018, 4:28:54 AM8/11/18
to SonoffUsers

Hi,


I'm having persistent and consistent DHCP issues with all 8 x 6.1.1 flashed Sonoff Basics not getting an IP address via DHCP over WiFi from an AC-Lite.  When I disable the AC-Lite, all 8 x Sonoffs get IP addresses perfectly and operate correctly from my AC-Pro.  When the AC-Lite is enabled other devices, such as phone, laptop get IP addreses from it and function just fine, so DHCP is working. But all the Sonoff devices refuse to get DHCP from the AC-Lite which has 2.4GHz and 5GHz radios, just like the AC-Pro.


It does not seem like the Sonoffs are faulty as they get DHCP from the AC-Pro and function perfectly fine when they do.  The AC-Lite doesn't seem faulty as it works fine with all our devices that are not Sonoffs.  The Sonoffs were all working fine with an Advanced Tomato flashed Asus RT-N16 but that developed problems with its WAN port, so I've taken that out of the network.  The AC-Lite is physically close to the Sonoffs, the AC-Pro is further away in the house (about 5x the distance)


Any ideas?


I can supply further details if needed.


As the Sonoffs are all hard-wired into a box in the loft, I'd really prefer not to have to flash them over serial again.


I have tried the following and have run out of fresh ideas :-/

* changed SSIDs (all were alpha, no punctuation) and updated via each Sonoff's WiFi manager

* set default settings (channel selection, power) on the AC-Lite

* reboot the AC-Lite

* forget (factory reset) then adopt the AC-Lite

* revert the AC-Lite to an older firmware version

* update the AC-Lite to the latest firmware version

* lower the power on the AC-Pro

* changed the internal routing over shared switch fabric to AC-Lite direct to LAN2 on the Security GW


I'm new to Ubiquity products and recently bought this system for my 180m2 4 bed house

* Security GW 

* AC-Pro

* AC-Lite

* Cloud Key

Switches are new 8 port POE, one a Netgear (ground floor), the other TP-Link (first floor), linked via patch panels.  All cabling is Cat6A. 


IMG_20180719_182118 (1).jpg

Colin Law

unread,
Aug 11, 2018, 4:57:57 AM8/11/18
to SonoffUsers
Have you specified *exactly* the same security settings on the two AC devices?  (WPA type etc).
Try temporarily removing the security from the SSID and see if they connect then.  If they do then it is an issue with that.

Colin

--
You received this message because you are subscribed to the Google Groups "SonoffUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Philip Knowles

unread,
Aug 11, 2018, 5:22:38 AM8/11/18
to kiat....@gmail.com, SonoffUsers

Don't know those devices but a few things to think about
Is there a limit to the number of devices that can connect to an AC-Lite? My router was set to 32 devices.
Are they connecting but with a different IP address? I have a TP-Link extender which ends up with the devices having a different IP than if it connects direct - even with a 'static' IP set. Worth logging in to the AP and/or router and seeing what's connected.
Is the AC-Lite using the same channel and is it 'busy'? I've had to change my router channel because Sonoffs couldn't find bandwidth after my neighbours changed ISP and it 'stole' my channel.
If you have a relatively 'clean' 2.4 GHz channel space it's worth considering putting the Sonoffs on their own channel. WiFi works on the speed of the slowest device on the channel. A Sonoff with a poor signal may be working on 2Mbps. If your other device work in 5GHz it's worth forcing them onto 5GHz and leaving the 2.4GHz just for the Sonoffs.
None of this may help.
Regards
Phil K


--
You received this message because you are subscribed to the Google Groups "SonoffUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers+unsubscribe@googlegroups.com.

kiat....@gmail.com

unread,
Aug 11, 2018, 6:12:10 AM8/11/18
to SonoffUsers
On Saturday, 11 August 2018 09:57:57 UTC+1, Colin Law wrote:
Have you specified *exactly* the same security settings on the two AC devices?  (WPA type etc).

Yep, checked they do.  These security settings are per WiFi network in the Unifi system from a central controller and are not specified per AP.

Try temporarily removing the security from the SSID and see if they connect then.  If they do then it is an issue with that.

Just tried the network set to open and no difference for the Sonoffs, they didn't get IP addresses.

Running tcpdump on AC-Lite shows the Sonoffs are making DHCP broadcasts for IPs but offers are not been seen on the network, suggesting a networking/server issue rather than the Sonoffs.

UpstairsAP-BZ.v3.9.42# tcpdump -i ath1 '(udp and (port 67 or port 68))'
tcpdump: WARNING: ath1: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ath1, link-type EN10MB (Ethernet), capture size 65535 bytes
11:07:29.974020 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:21:6a:32:92:b8 (oui Unknown), le
ngth 300
11:07:34.894408 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from ec:fa:bc:86:2a:12 (oui Unknown), le
ngth 308
11:07:34.894553 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from ec:fa:bc:86:2a:12 (oui Unknown), le
ngth 308
11:07:36.669862 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from ec:fa:bc:86:2a:12 (oui Unknown), le
ngth 308
</snip>

kiat....@gmail.com

unread,
Aug 11, 2018, 6:21:58 AM8/11/18
to SonoffUsers
Hey Phil


On Saturday, 11 August 2018 10:22:38 UTC+1, Philip Knowles wrote:

Don't know those devices but a few things to think about
Is there a limit to the number of devices that can connect to an AC-Lite? My router was set to 32 devices.

Only limited by the number of IP address per network and each AP supports 4 WiFi (SSID) networks, I have 3, each bound to a full /24.
 

Are they connecting but with a different IP address? I have a TP-Link extender which ends up with the devices having a different IP than if it connects direct - even with a 'static' IP set. Worth logging in to the AP and/or router and seeing what's connected.


Funnily enough I also have a TP-Link extender but its powered off (use for testing with only wired clients) when I replaced my conventional setup with the Unifi "one device per function" system.  I checked that the Sonoffs don't receive any IP addresses over WiFi but looking at the packet level (see above reply) it seems that the Sonoffs are not getting DHCP replies on that particular network.  It looks to be an issue with the Unifi gear on this AP (the other one, as I mentioned the AC-LR) is fine.
 

Is the AC-Lite using the same channel and is it 'busy'? I've had to change my router channel because Sonoffs couldn't find bandwidth after my neighbours changed ISP and it 'stole' my channel.


I've tried the same channel as the AC-LR and also different channels and I've kept well away from the neighbouring networks. I've also set the AC-Lite, then the AC-LR then both to Auto for channel and power, to see if that helps, but no.
 

If you have a relatively 'clean' 2.4 GHz channel space it's worth considering putting the Sonoffs on their own channel. WiFi works on the speed of the slowest device on the channel. A Sonoff with a poor signal may be working on 2Mbps. If your other device work in 5GHz it's worth forcing them onto 5GHz and leaving the 2.4GHz just for the Sonoffs.


I tried that too, turning just 2.4GHz on the AC-Lite and turning it off on the AC-LR - same result, no Sonoffs getting IP addresses.
 

None of this may help.


It has, at least getting me to do more testing and getting my brain into gear about it!

Thanks,

Kiat

Philip Knowles

unread,
Aug 11, 2018, 9:49:59 AM8/11/18
to kiat....@gmail.com, SonoffUsers

What happens if you send

Backlog IPAddress1  192.168.x.xxx ; Restart 1

 

And bypass DCHP?

 

Regards

Phil K

 

Sent from Mail for Windows 10

--

You received this message because you are subscribed to the Google Groups "SonoffUsers" group.

To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.

Philip Knowles

unread,
Aug 11, 2018, 9:53:46 AM8/11/18
to kiat....@gmail.com, SonoffUsers

Maybe misreading this but it looks like the AC-Lite hasn’t got an IP address.

 

Sent from Mail for Windows 10

 

From: kiat....@gmail.com
Sent: 11 August 2018 11:12
To: SonoffUsers
Subject: Re: Consistent DHCP failures between Tasmota 6.1.1 flashed 8 x SonoffBasics and Unifi AC-Lite wifi AP

 

On Saturday, 11 August 2018 09:57:57 UTC+1, Colin Law wrote:

--

Kiat Huang

unread,
Aug 12, 2018, 7:33:12 AM8/12/18
to Philip Knowles, SonoffUsers
> On Sat, 11 Aug 2018, 14:49 Philip Knowles, <knowles...@gmail.com> wrote:
> What happens if you send

> Backlog IPAddress1 192.168.x.xxx ; Restart 1

> And bypass DCHP?

But that wouldn't be enough to join a secure or open WiFi network would it? Nevertheless I'll give it a go!

The Sonoffs are all in WiFi manager mode so I can connect to each Sonoff's AP and access the WiFi configuration screen as normal, but no further config screen.  Then, on my android phone, I select to use the network as is and go to 192.168.4.1/cn and can get to every configuration screen, but can see no way to issue a command on any of them.

Using the info from this page

    https://github.com/arendst/Sonoff-Tasmota/wiki/Commands

http://192.168.4.1/cm?cmnd=Backlog%20IPAddress1%20192.168.10.1.107%20;%20Restart%201

I issue this command, but it seems to do nothing to the Sonoff's network, but I get this response.

I tried this command on a few of the Sonoffs. Is there something I'm missing? 


On Sat, 11 Aug 2018, 14:53 Philip Knowles, <knowles...@gmail.com> wrote:

Maybe misreading this but it looks like the AC-Lite hasn’t got an IP address.


It has an IP address Phil as I can SSH into it (this Unifi gear all run Linux) and also manage it via the cloud key controller.


As the Sonoffs work perfectly with the AC-LR (long range) when the AC-Lite is disabled, is looking like more of a problem with the AC-Lite 2.4GHz band DHCP rather than the Sonoffs.

Cheers,

Kiat

Christian Lyra

unread,
Aug 12, 2018, 9:23:10 AM8/12/18
to Kiat Huang, SonoffUsers
Hi,

My setup is kind similar, as I have a AC-PRO and a AC-Lite. Since I bought the AC-Lite to cover a part of the house where I don't have wired network, the AC-Lite connects wireless to AC-Pro. Last week i flashed a sonoff ch4-pro with 6.1.1c and everything just works. I see that your AC-Lite is connecting thru a cat5 or to a 100mbps switch port. Maybe you want to try the wireless connection and see if it changes something.

To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers+unsubscribe@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

 

--
You received this message because you are subscribed to the Google Groups "SonoffUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Christian Lyra
PoP-PR/RNP
(41) 3208-6391

Philip Knowles

unread,
Aug 12, 2018, 9:49:39 AM8/12/18
to Kiat Huang, SonoffUsers

The backlog command would be sent after they have connected to wifi. If you connect to them without the AC-Lite on. Log into the webui and select console and type the backlog commands in there. They will then have a static IP. When the AC-Lite comes back on it will just tell it here is my IP rather than doing a DHCP request.

As Christian Lyra has said, you’re connecting the AC-Lite via ethernet. Is it in the same subnet? Sometimes the wired and wifi networks use different subnets to prevent confusion - 192.168.0.xxx and 192.168.1.xxx. If it is change the subnet mask to 255.255.0.0.

 

With my TP-Link I turned the DHCP off on it and set static IPs as one device would switch from the router to the extender if someone walked by it and it would change the IP. Really annoying when you’re trying to configure something.

 

Regards

 

Phil K

 

 

 

Sent from Mail for Windows 10

 

From: Kiat Huang
Sent: 12 August 2018 12:33
To: Philip Knowles
Cc: SonoffUsers
Subject: Re: Consistent DHCP failures between Tasmota 6.1.1 flashed 8 xSonoffBasics and Unifi AC-Lite wifi AP

 

> On Sat, 11 Aug 2018, 14:49 Philip Knowles, <knowles...@gmail.com> wrote:
> What happens if you send

> Backlog IPAddress1 192.168.x.xxx ; Restart 1

> And bypass DCHP?

 

But that wouldn't be enough to join a secure or open WiFi network would it? Nevertheless I'll give it a go!

The Sonoffs are all in WiFi manager mode so I can connect to each Sonoff's AP and access the WiFi configuration screen as normal, but no further config screen.  Then, on my android phone, I select to use the network as is and go to 192.168.4.1/cn and can get to every configuration screen, but can see no way to issue a command on any of them.

Using the info from this page

    https://github.com/arendst/Sonoff-Tasmota/wiki/Commands

 

http://192.168.4.1/cm?cmnd=Backlog%20IPAddress1%20192.168.10.1.107%20;%20Restart%201

I issue this command, but it seems to do nothing to the Sonoff's network, but I get this response.

 

cid:1652d6905e4746f04752

I tried this command on a few of the Sonoffs. Is there something I'm missing? 

 

 

On Sat, 11 Aug 2018, 14:53 Philip Knowles, <knowles...@gmail.com> wrote:

Maybe misreading this but it looks like the AC-Lite hasn’t got an IP address.

 

It has an IP address Phil as I can SSH into it (this Unifi gear all run Linux) and also manage it via the cloud key controller.

 

cid:1652d704a90fbb498763

Screenshot_20180812-100023~2.png
Screenshot_20180812-102026~2.png
Reply all
Reply to author
Forward
0 new messages