-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Static IP Address #71
Comments
Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown): Hi Harry Yeah I can confirm the behaviour on 1.6.4, static is ignored if your dhcp server responds fast enough, this was with 1 Wifi network configure Not sure if I saw this on 1.6.0. Later Ferdie |
1.6.4? You are in the future!
Can any of you reproduce these steps? |
Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown): lol .. my bad too many number in one place - my head, yes 1.6.2 Sure let me go find find the basic and fire it up. |
Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown): Done step 3 ... no issues - get the pop-up that config saved.
Confirmed after reconnect to old dhcp IP that configuration was saved - new incognito with re-auth on web interface. reset from terminal
read WIFI
Static config is being ignored on Basic Sonoff. Later Ferdie BTW
returns the static IP that I set .. so that is save to device. same for dns gw mask ... all saved correctly |
Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown): OK found the bug ... You must not use the DNS server 8.8.8.8 you have to change that. Yes google's DNS server is reachable from my network. But changing it to my local DNS forward cause the device to
and on reset / reconnect I now get the correct static IP address. This is only true for the initial web config ... after the initial Auto connect is set it stays at 0 even if you manually in the web interface change it back to 8.8.8.8 |
Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown): Did even more testing ... - actually like the terminal never used it till now. Using DNS 8.8.8.8 as the initial config is only an issue when you first configure the static IP via the web interface. Setting it to anything other than the 8.8.8.8 seems cause auto connect to be set to 0 and then the static works as expected. You can change it back to 8.8.8.8 and static is still configured but now with 8.8.8.8 as the DNS server. Setting the configuration via the terminal does not show the same issue. If you remove all the network settings - reset you will see the device boot into AP mode.
and you reconnect you all good on static. Later Ferdie |
OK, is it possible that you are not actually typing the DNS in the web interface? I mean, the "8.8.8.8" is a place holder, not an actual value. |
Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown): I think you are correct .. I was at some point leaving the DNS as the default "value" since it looks like it is captured even if it is greyed out. 8.8.8.8 is an actual google DNS server so it does not look like a place holder nor does the netmask 255.255.255.0 but for some reason I tend to retype that. Ok so leaving the default values and not setting DNS and MASK if the real issue, from a UI view both can be seen as configured but clearly from the terminal it was not. So doing a reconnect or reset would mean that because you do not have all the information the device goes and gets dhcp information. Maybe an improvement of sorts to make it clear that the info for mask and DNS should be replaced? Of a check that detect that if an static IP is typed clear the "default" values from the UI to indicate that it needs to be captured? Later Ferdie |
Original comment by J.D. (Bitbucket: Harry_Reutter, GitHub: Unknown): Hi, you are right, this solved it for me..although the DNS wasn't the problem, the subnet mask was the issue..it looked like it was pre-occupied, but it was just a placeholder..so that was my bad i guess :) Thanks |
Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown): Yeah - had a look at my two POW's that I saw the issue on first ... here I did assume - my bad, that the default mask and dns was not needed to be set when configuring the static IP - since workable values are being displayed. Overwrote both mask and dns and static is working as expected. Later Ferdie |
OK |
Fixed in 1.6.3 |
Removing milestone: 1.7.0 (automated comment) |
Originally reported by: J.D. (Bitbucket: Harry_Reutter, GitHub: Unknown)
Hi,
i am not able to use a static IP Address..i entered everything , but after each reboot the webserver comes up with the DHCP Address assigned from my router..
The settings are still in the WiFi configuration, they just are not being used.
Best regards,
Harry
The text was updated successfully, but these errors were encountered: