-
Notifications
You must be signed in to change notification settings - Fork 15
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
Remove hardcoded IP address 172.20.0.1 #22
Comments
Yes. Handing computers on your normal office network an IP-address without gateway that will not give them Internet connectivity is not so nice.
Don't think it is listening to your router's DHCP server. If it is working, it is likely that you have cmprovision's DHCP server running as well...
I am missing the problem you are trying to solve. And letting users bring their own DHCP server also introduces a lot of problems, we prefer not to give technical support on. |
It works if you disable DHCP or set the network's DHCP relay to the CMprovision server ip (in Unifi). Also make sure the gateway ip (in unifi) is not X.X.X.1 but 2 for example Example in unifi's network config Gateway IP : 192.168.200.2(/24) Reserve 192.168.200.1 for your cmprovision server ip. dnsmasq.conf In the example above you will also have to change the subnetmask to 255.255.255.0 instead of 255.255.0.0 Also remember to change cmdline.txt to the correct ip. See, It's not as simple but it works. It's probably not cmprovision not answering... it's the switch refusing :) |
I noticed in the guide that you set 172.20.0.1 as the IP address for the provisioner. Is there any specific reason for this?
At least with my UniFi router it was quite easy to use another IP.
Here's the configuration I did on the router:
Now all I needed to do on the CM4 device was to change the hardcoded IP address in
/var/lib/cmprovision/scriptexecute/cmdline.txt
to the provisioner's IP. Then voila, provisioning works smoothly!To avoid hardcoding - Perhaps you could add a setting in the Webui for the provisioner server IP? Defaulted to 172.20.0.1 for backwards compatibility.
The text was updated successfully, but these errors were encountered: