SNTP does not work in bridged mode

scuttleclun
Posts: 6
Joined: Wed Aug 12, 2015 2:21 pm

SNTP does not work in bridged mode

Post by scuttleclun »

I use my Billion 7800 as a PPPOE to PPPOA bridge. The billion 7800 has an IP of 192.168.0.1/29. My PPPOE client has IP of 192.168.0.2/29. The PPPOE client (linux box) also runs a NTP server, so the NTP server is available on 192.168.0.2. The billion 7800 boots up with a time set to Sat Jan 1 2000, but does not query the NTP server. The web interface is configured correctly for SNTP, but on inspection of the exported config, the settings in the web panel are not in the config. If I manually edit the config <SNTPCfg> section to be correct and restore the config, it still doesn't work and the setting do not show in the web panel. Other stuff works on this mini LAN such as DHCP and I even have the 7800 logging to the linux box on 192.168.0.2 via syslog however of course the date/time is always wrong in the log! If I telnet into the router and type:
sntp -s 192.168.0.2 -t "Greenwich Mean Time: Dublin, Edinburgh, Lisbon, London" then it thinks about it for a while but no query is generated on the LAN and the time is not updated.

Device Information
Model Name BiPAC 7800
Host Name 810720.hengwm.ateb
System Up-Time 19 min(s)
Current Time Sat Jan 1 00:19:38 2000
Hardware Version Annex A
Software Version 1.06h.dt2
MAC Address 60:03:47:0c:f7:60
LAN IPv6 Address fe80::6203:47ff:fe0c:f760/64
billion_fan
Posts: 5383
Joined: Tue Jul 19, 2011 4:30 pm

Re: SNTP does not work in bridged mode

Post by billion_fan »

scuttleclun wrote:I use my Billion 7800 as a PPPOE to PPPOA bridge. The billion 7800 has an IP of 192.168.0.1/29. My PPPOE client has IP of 192.168.0.2/29. The PPPOE client (linux box) also runs a NTP server, so the NTP server is available on 192.168.0.2. The billion 7800 boots up with a time set to Sat Jan 1 2000, but does not query the NTP server. The web interface is configured correctly for SNTP, but on inspection of the exported config, the settings in the web panel are not in the config. If I manually edit the config <SNTPCfg> section to be correct and restore the config, it still doesn't work and the setting do not show in the web panel. Other stuff works on this mini LAN such as DHCP and I even have the 7800 logging to the linux box on 192.168.0.2 via syslog however of course the date/time is always wrong in the log! If I telnet into the router and type:
sntp -s 192.168.0.2 -t "Greenwich Mean Time: Dublin, Edinburgh, Lisbon, London" then it thinks about it for a while but no query is generated on the LAN and the time is not updated.

Device Information
Model Name BiPAC 7800
Host Name 810720.hengwm.ateb
System Up-Time 19 min(s)
Current Time Sat Jan 1 00:19:38 2000
Hardware Version Annex A
Software Version 1.06h.dt2
MAC Address 60:03:47:0c:f7:60
LAN IPv6 Address fe80::6203:47ff:fe0c:f760/64
It won't work as the 7800 is not connecting to the internet to obtain a WAN IP, it needs to obtain a WAN IP to update the via SNTP
scuttleclun
Posts: 6
Joined: Wed Aug 12, 2015 2:21 pm

Re: SNTP does not work in bridged mode

Post by scuttleclun »

Hi, thanks for the reply.
Why couldn't it use SNTP over the LAN? If in bridged mode then it ought to assume that there could be something else on the LAN that has access to 'Internet Time'? It just accepts IP addresses in the SNTP fields, so why do SNTP queries not just use the internal routes to be directed out of the right interface? :)
billion_fan
Posts: 5383
Joined: Tue Jul 19, 2011 4:30 pm

Re: SNTP does not work in bridged mode

Post by billion_fan »

scuttleclun wrote:Hi, thanks for the reply.
Why couldn't it use SNTP over the LAN? If in bridged mode then it ought to assume that there could be something else on the LAN that has access to 'Internet Time'? It just accepts IP addresses in the SNTP fields, so why do SNTP queries not just use the internal routes to be directed out of the right interface? :)
It's programed to use SNTP servers once a WAN IP is obtained on the device it self, to update the time, either by ADSL or EWAN connection only. (if you are using the device in Bridge mode, the device doesn't obtain a WAN IP)
scuttleclun
Posts: 6
Joined: Wed Aug 12, 2015 2:21 pm

Re: SNTP does not work in bridged mode

Post by scuttleclun »

So... is there any way *at all* to set the time on these devices when in bridged mode so that the logs are accurate? A command via telnet perhaps?

thanks
billion_fan
Posts: 5383
Joined: Tue Jul 19, 2011 4:30 pm

Re: SNTP does not work in bridged mode

Post by billion_fan »

scuttleclun wrote:So... is there any way *at all* to set the time on these devices when in bridged mode so that the logs are accurate? A command via telnet perhaps?

thanks
Telnet in, then follow the commands below to set the date time and year for this example I used 14/08/2015 11:55am

Adjust using the follow format month/date/time/year

1. Type 'sh' and press 'enter'
2. Type 'date 081411552015'
3. Press 'enter'
4. The time should be adjusted
scuttleclun
Posts: 6
Joined: Wed Aug 12, 2015 2:21 pm

Re: SNTP does not work in bridged mode

Post by scuttleclun »

Excellent, thank you!
Gerry123
Posts: 5
Joined: Sun Jan 17, 2016 9:21 pm

Re: SNTP does not work in bridged mode (8800NL)

Post by Gerry123 »

Hello,
I have a 8800NL in bridge mode. I understand that it does not get a WAN IP & therefore does not auto sync date & time.
However, I use the timed auto restart function to resync my SNR setting, as my SNR improves in early morning.
Is their any way for it to auto update the date & time after restart ? (even querying the router which it is bridged with)
Incidentally - 1. Type 'sh' and press 'enter' - Works.
2. Type 'date 081411552015' - gives "date: invalid date '081411552015'"
Thanks in Hope,
G
billion_fan
Posts: 5383
Joined: Tue Jul 19, 2011 4:30 pm

Re: SNTP does not work in bridged mode (8800NL)

Post by billion_fan »

Gerry123 wrote:Hello,
I have a 8800NL in bridge mode. I understand that it does not get a WAN IP & therefore does not auto sync date & time.
However, I use the timed auto restart function to resync my SNR setting, as my SNR improves in early morning.
Is their any way for it to auto update the date & time after restart ? (even querying the router which it is bridged with)
Incidentally - 1. Type 'sh' and press 'enter' - Works.
2. Type 'date 081411552015' - gives "date: invalid date '081411552015'"
Thanks in Hope,
G

Try the following command

1. Telnet in
2. Type 'sh' and press enter
3. Type 'date -R 2016.02.29-09:39
4. Press enter
Gerry123
Posts: 5
Joined: Sun Jan 17, 2016 9:21 pm

Re: SNTP does not work in bridged mode

Post by Gerry123 »

Great Thanks, Now how can I automate this, so it corrects the time or "resyncs" after a restart ?
Post Reply