Time Server Sync Help

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
ICUDude
DD-WRT Novice


Joined: 21 Jan 2021
Posts: 27

PostPosted: Tue Mar 30, 2021 20:24    Post subject: Time Server Sync Help Reply with quote
Hi,

I am having a hell of a time getting my 3rd router WRT160N running DD WRT to time sync properly. At boot it defaults to a 1969 date and time. I can set up the ntp. add servers, leave blank, use the IP, power cycle, add default gateway at 192.168.1.1 or leave it all zeros. Nothing seems to help. The weird thing is sometimes while messing around I can get it to sync. It works great until a power outage and I'm back to square one. The last time this worked I removed the default gateway and blanked out the time sever, save, apply, and it synced. This does not work now. I was hoping there was a command line fix or some way to make it sync with the 2nd router. Not sure what I am doing wrong. Thanks if you can help.

I have a setup as follows.

1st router is set to bridge mode and can only be accessed by a pc with a static ip plugged directly in at 192.168.1.1. I can not set the time or ntp on this router. Running factory firmware.

The 2nd router is a ER-X from Ubiquity and is doing the routing. NTP is set up and works properly. Access is 192.168.1.1. Running factory firmware

The third router is a WRT160N set up as a switch or repeater to provide wifi. DHCP is disabled. Internet comes from router number 2 and plugs into a LAN port, output is like a switch for the remaining Lan ports and wifi. access is 192.168.1.3. Running DD-WRT v3.0-r44715 std .

Thanks again
Sponsor
Wildlion
DD-WRT Guru


Joined: 24 May 2016
Posts: 1414

PostPosted: Tue Mar 30, 2021 22:17    Post subject: Reply with quote
You will have to check your routes and what the defaults are.

As a switch, the system probably does not know it has internet access at all, (nor would it need to), as a repeater it might do the same thing.

For most times, the default that is in the DD-wrt code is to use a pool from the ntp.org foundation, this should be good enough, Some people will say that you have to have an ip address specified but that is because it depends on when your dns comes up relative to the router, but eventually it should work.

you should be able to do this via the command line:
Code:

ntpclient pool.ntp.org


it will not give any messages but you can check to see if the date iis updated.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14217
Location: Texas, USA

PostPosted: Wed Mar 31, 2021 2:51    Post subject: Reply with quote
You have two routers with 192.168.1.1 as the IP address?

Do you have the WRT160N in router mode?

https://wiki.dd-wrt.com/wiki/index.php/Linking_Routers

https://wiki.dd-wrt.com/wiki/index.php/Wireless_access_point

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
ICUDude
DD-WRT Novice


Joined: 21 Jan 2021
Posts: 27

PostPosted: Wed Mar 31, 2021 3:27    Post subject: Reply with quote
Thanks

I will try ntpclient pool.ntp.org


and I have the first router in bridge mode. I can only access the web gui by plugging directly into it at 192.168.1.1. the second router is normal and is at 192.168.1.1. The WRT160N is not in routing mode. DHCP is off. It is operating more like a switch but I leave the wifi on because the ER-x does not have wifi.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14217
Location: Texas, USA

PostPosted: Wed Mar 31, 2021 3:37    Post subject: Reply with quote
Re-read Normal setup procedure for same subnet:

https://wiki.dd-wrt.com/wiki/index.php/Wireless_access_point

Quote:
Open the Setup -> Advanced Routing tab
(Recommended) Change operating mode to: Router, then Save


From the Linking Routers page:
Quote:
Wireless Access Point - Extend Wi-Fi & LAN (Requires physical ethernet connection between routers)
Switch - Similar config as WAP, but radio disabled (accepts only wired connections)

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net


Last edited by kernel-panic69 on Wed Mar 31, 2021 3:40; edited 1 time in total
ICUDude
DD-WRT Novice


Joined: 21 Jan 2021
Posts: 27

PostPosted: Wed Mar 31, 2021 3:39    Post subject: Reply with quote
ntpclient pool.ntp.org does not appear to update the time.

I have the default gateway pointing to the ERX at 192.168.1.1 and Local DNS is all 0's. NTP Client enabled. Time Zone Canada/Eastern. ServerIp/Name is left blank.

I do not know what I do to get it to work occasionally but I can't get it to do it again. I wish I could just slave it to the ERX router or something.

Thanks
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14217
Location: Texas, USA

PostPosted: Wed Mar 31, 2021 3:41    Post subject: Reply with quote
Put the thing in router mode like the wiki tells you to, and add the 192.168.1.1 as gateway.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
ICUDude
DD-WRT Novice


Joined: 21 Jan 2021
Posts: 27

PostPosted: Wed Mar 31, 2021 3:45    Post subject: Reply with quote
Thanks kernel-panic69

I will read through that in the morning when I'll be able to understand it better. I set the WRT160N up that way from a you tube video "how to use an old router for a wifi repeater" I also thought I read that having 2 routers operating like routers will cause problems. I'm probably wrong about that.
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14217
Location: Texas, USA

PostPosted: Wed Mar 31, 2021 3:51    Post subject: Reply with quote
Well, unless I am thinking wrong, you are using the WRT160N as a wireless access point, not to repeat your primary router's wireless signal. Repeater mode is a different configuration.

ISP Router-->ER-X-->WRT160N

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
ICUDude
DD-WRT Novice


Joined: 21 Jan 2021
Posts: 27

PostPosted: Wed Mar 31, 2021 15:19    Post subject: Reply with quote
Yes I have the terminology wrong. I am using it as a wireless access point because the ER-X router does not have a wireless radio. I'll post back once I get a chance to change the settings. Thanks again
Circling Overland
DD-WRT Novice


Joined: 20 Dec 2019
Posts: 9

PostPosted: Wed Mar 31, 2021 18:57    Post subject: Reply with quote
I also had some issues configuring my ntp settings.

Make sure the gateway is working and you'll be fine.

Also I'm in the Amsterdam time zone but the time was one hour off, so I tried Paris time (which is the same timezone) and then I got the correct time.

Alternatively you can set the time manually from the command line with the 'time' command.
ICUDude
DD-WRT Novice


Joined: 21 Jan 2021
Posts: 27

PostPosted: Wed Mar 31, 2021 22:37    Post subject: Reply with quote
kernel-panic69

Thanks for the advice and link to the guide. I followed the guide step by step, moved my ethernet cable to the Wan port on the WAP because I checked that box in the setup, enabled ntp and just left the field blank and a minute or two later it synced up!

I really appreciate the assistance.
Wildlion
DD-WRT Guru


Joined: 24 May 2016
Posts: 1414

PostPosted: Fri Apr 02, 2021 1:57    Post subject: Reply with quote
yay! glad it works for you now.
ICUDude
DD-WRT Novice


Joined: 21 Jan 2021
Posts: 27

PostPosted: Fri Apr 02, 2021 2:52    Post subject: Reply with quote
Thanks,

This was all for the Radio Time Restrictions feature on DD-WRT which I think is a really nice add on. It won't work if the time is not synced but it works great now. Thanks again
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum