1752781 Members
6669 Online
108789 Solutions
New Discussion

Re: NTP

 
SOLVED
Go to solution
johnnym57
Occasional Advisor

NTP

Hello. A simple query I hope but I cant get it to work. I want to synchronise the time on HP 5130 switch to a time source elsewhere in our University. On the switch I have tried the following commands but the clock stays stubbornly at 2013.

ntp-service enable
ntp-service unicast-server ip-address-of server

I'm sure this must be really simple but it doesn't work for me. Any advice please?
Thank you.

6 REPLIES 6
johnk3r
Respected Contributor

Re: NTP

Hello!

Please post the output of the commands below:

display ntp-service status
display ntp-service sessions
**************************************
ATP FLEXNETWORK V3 | ACSA
johnnym57
Occasional Advisor

Re: NTP

Hello

display ntp-service status shows...

 Clock status: unsynchronized

 Clock stratum: 16

 Reference clock ID: none

 Clock jitter: 0.000000 s

 Stability: 0.000 pps

 Clock precision: 2^-20

 Root delay: 0.00000 ms

 Root dispersion: 3579.94080 ms

 Reference time: 00000000.00000000  Thu, Feb  7 2036  6:28:16.000

-------------------

display ntp-service sessions shows...

 

      source          reference       stra reach poll  now offset  delay disper

********************************************************************************

    [5]ip-address-of time-source     INIT              16     0   64    - 0.0000 0.0000 0.0000

Notes: 1 source(master), 2 source(peer), 3 selected, 4 candidate, 5 configured.

 Total sessions: 1

 

Interestingly, I can ping the ip address of the timesource from my own PC on VLAN 1  but not from the console of this switch. Maybe I have to tell the switch where to find the timesource?

Thank you.

HP-Browniee
Respected Contributor

Re: NTP

Hi

Try to add a default route on your switch to your core switch/router, if that is not yet the case.

Kind regards

johnnym57
Occasional Advisor
Solution

Re: NTP

so would that command be ...

ip route-static 0.0.0.0 0 vlan-interface1 <ip-of-router-address> description default-route  ?

The router to the rest of the world is connected to VLAN 1.

Thanks.

darrowooi
Occasional Contributor

Re: NTP

Hi Jonny,

You need to set a default route first to get the connection success, it's better you configure DNS to the switch as well.

ip route-static 0.0.0.0 0.0.0.0 Next Hop (Probably your L3 switch or Router)

dns server 8.8.8.8

then try to ping again, if it does reach and resolve then try check is the NTP able to syncronised or not.

Cheers.

VoIP-Buddy
HPE Pro

Re: NTP

It also depends on your network firewall.  Ensure that Port 123 can get through the firewall.

David

I work for HPE in Aruba Technical Support