Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


tyronne

33 posts

Geek


#249508 14-May-2019 13:34
Send private message

Hi All,

 

Having some issues with a new-ish USG Pro 4. Changes made in the controller for DHCP and Default gateway is not being saved to router. I've contacted Unifi and they've simply told me they cannot reproduce the issue and closed my case, even though people are experiencing the same issue on their forums.

 


I did a quick check through ssh:

admin@ubnt:~$ show configuration commands | grep dhcp-server
set service dhcp-server disabled false
set service dhcp-server hostfile-update disable
set service dhcp-server shared-network-name LAN_192.168.1.0-24 authoritative disable
set service dhcp-server shared-network-name LAN_192.168.1.0-24 subnet 192.168.1.0/24 lease 86400
set service dhcp-server shared-network-name LAN_192.168.1.0-24 subnet 192.168.1.0/24 start 192.168.1.100 stop 192.168.1.253
set service dhcp-server static-arp disable
set service dhcp-server use-dnsmasq disable



So gateway and DNS server are not being advertised even though the details are in the controller under networks-> Lan-> Edit. I tried both manual and automatic configuration of dns and gateway, both will not update the USG settings. Also tried to re-adopt and nothing.

Using the following:

configure
set service dhcp-server shared-network-name LAN_192.168.1.0-24 authoritative enable
set service dhcp-server shared-network-name LAN_192.168.1.0-24 subnet 192.168.1.0/24 default-router 192.168.1.1
set service dhcp-server shared-network-name LAN_192.168.1.0-24 subnet 192.168.1.0/24 dns-server 192.168.1.1
commit
save
exit


Now the USG works as intended and shows the following:

admin@ubnt:~$ show configuration commands | grep dhcp-server
set service dhcp-server disabled false
set service dhcp-server hostfile-update disable
set service dhcp-server shared-network-name LAN_192.168.1.0-24 authoritative enable
set service dhcp-server shared-network-name LAN_192.168.1.0-24 subnet 192.168.1.0/24 default-router 192.168.1.1
set service dhcp-server shared-network-name LAN_192.168.1.0-24 subnet 192.168.1.0/24 dns-server 192.168.1.1
set service dhcp-server shared-network-name LAN_192.168.1.0-24 subnet 192.168.1.0/24 lease 86400
set service dhcp-server shared-network-name LAN_192.168.1.0-24 subnet 192.168.1.0/24 start 192.168.1.100 stop 192.168.1.253
set service dhcp-server static-arp disable
set service dhcp-server use-dnsmasq disable


 

So issue with this is that every time I make an update to something in the controller, the USG loses its settings and have to re-ssh and configure again. As Ubiquiti is being extremely unhelpful in the matter, is there anyway to make the changes persistent, without the possibility of having any issues later on when upgrading firmware and software?


Filter this topic showing only the reply marked as answer Create new topic
richms
28172 posts

Uber Geek

Trusted
Lifetime subscriber

  #2237067 14-May-2019 23:43
Send private message

lookup the config.gateway.json file, its where you put extra stuff to get provisioend to the USG ontop of the settings the controller lets you choose.

 

 

 

Its in the sites/Default folder (or sites/some random string on my other install)

 

I have many static DNS overrides in mine for internal servers, but you can basically do any of the config from there.

 

Im not sure of the exact syntax but I have copied variuos parts from forum posts etc into it, and it seems that you can do a

 

configure

 

and then

 

show

 

to see if it took them or not. When it hasn't I have messed up the { and } - some posts said about a json validator but I have so little in there that counting them was good enough.

 

 

 

edit:

 

 

 

Just checked mine and

 

Click to see full size

 

leads to

 

Click to see full size

 

so the google dnss are working for me to go in there from the controller, but its the current or before current beta versions.





Richard rich.ms



michaelmurfy
meow
13242 posts

Uber Geek

Moderator
ID Verified
Trusted
Lifetime subscriber

  #2237069 15-May-2019 00:01
Send private message

I can't replicate this either.

 

What is your controller version?





Michael Murphy | https://murfy.nz
Referral Links: Quic Broadband (use R122101E7CV7Q for free setup)

Are you happy with what you get from Geekzone? Please consider supporting us by subscribing.
Opinions are my own and not the views of my employer.


tyronne

33 posts

Geek


  #2238126 15-May-2019 08:51
Send private message

Yeah, manually imputed data saves, but is overwritten when a change is made in the controller..

Current version is 5.10.23 (Build: atag_5.10.23_11668)

Have had this problem with the previous version I was on, hoping it would fix the issue. Unfortunately not.




michaelmurfy
meow
13242 posts

Uber Geek

Moderator
ID Verified
Trusted
Lifetime subscriber

  #2238152 15-May-2019 09:15
Send private message

You may be best to create a new site with the settings you want in the controller and migrate your UniFi gear over to it.





Michael Murphy | https://murfy.nz
Referral Links: Quic Broadband (use R122101E7CV7Q for free setup)

Are you happy with what you get from Geekzone? Please consider supporting us by subscribing.
Opinions are my own and not the views of my employer.


tyronne

33 posts

Geek


  #2238229 15-May-2019 10:29
Send private message

Thanks Michael, switching sites seems to have fixed my issues! Crazy that a factory reset couldn't fix it but switching sites could. Either way, happy to have a stable environment now. Appreciate the help.


Filter this topic showing only the reply marked as answer Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.