lemaitre75
asked on
NTP not updating
Hello all,
I have a cisco router with a public IP and i want it to server as an NTP server on my network
I have configured NTP on my cisco router but it looks like it's not updating so i need some help
//I have the following to tell my router to broadcast NTP on GE0/1 that is connected to my LAN
interface GigabitEthernet0/1
description gate1-Abj-ge-0-2
ip address 192.168.115.101 255.255.255.252
duplex auto
speed auto
media-type rj45
negotiation auto
ntp broadcast
//I have the following for NTP configuration
ntp source GigabitEthernet0/2 --This is the interface connected to internet with a public IP
ntp master
ntp server 128.9.176.30
ntp server 66.102.105.230
ntp server 83.67.145.167
//The clock is not sync
afnet1-Abj#sho ntp associations
address ref clock st when poll reach delay offset disp
*~127.127.7.1 127.127.7.1 7 48 64 377 0.0 0.00 0.0
~128.9.176.30 0.0.0.0 16 2374 1024 0 0.0 0.00 16000.
~66.102.105.230 0.0.0.0 16 426 1024 0 0.0 0.00 16000.
~83.67.145.167 0.0.0.0 16 - 1024 0 0.0 0.00 16000.
* master (synced), # master (unsynced), + selected, - candidate, ~ configured
afnet1-Abj#sho
afnet1-Abj#show ntp st
afnet1-Abj#show ntp status
Clock is synchronized, stratum 8, reference is 127.127.7.1
nominal freq is 250.0000 Hz, actual freq is 249.9871 Hz, precision is 2**18
reference time is BDF6A082.6CC0E28B (05:32:50.424 UTC Fri Dec 29 2000)
clock offset is 0.0000 msec, root delay is 0.00 msec
root dispersion is 0.02 msec, peer dispersion is 0.02 msec
afnet1-Abj#sho clock
05:33:57.896 UTC Fri Dec 29 2000
I don't know what's wrong with my configuration
How can i check that the public NTP server i'm using is correctly broadcasting time ?
Can i force my router to update the clock to see if it's working ?
Thanks
I have a cisco router with a public IP and i want it to server as an NTP server on my network
I have configured NTP on my cisco router but it looks like it's not updating so i need some help
//I have the following to tell my router to broadcast NTP on GE0/1 that is connected to my LAN
interface GigabitEthernet0/1
description gate1-Abj-ge-0-2
ip address 192.168.115.101 255.255.255.252
duplex auto
speed auto
media-type rj45
negotiation auto
ntp broadcast
//I have the following for NTP configuration
ntp source GigabitEthernet0/2 --This is the interface connected to internet with a public IP
ntp master
ntp server 128.9.176.30
ntp server 66.102.105.230
ntp server 83.67.145.167
//The clock is not sync
afnet1-Abj#sho ntp associations
address ref clock st when poll reach delay offset disp
*~127.127.7.1 127.127.7.1 7 48 64 377 0.0 0.00 0.0
~128.9.176.30 0.0.0.0 16 2374 1024 0 0.0 0.00 16000.
~66.102.105.230 0.0.0.0 16 426 1024 0 0.0 0.00 16000.
~83.67.145.167 0.0.0.0 16 - 1024 0 0.0 0.00 16000.
* master (synced), # master (unsynced), + selected, - candidate, ~ configured
afnet1-Abj#sho
afnet1-Abj#show ntp st
afnet1-Abj#show ntp status
Clock is synchronized, stratum 8, reference is 127.127.7.1
nominal freq is 250.0000 Hz, actual freq is 249.9871 Hz, precision is 2**18
reference time is BDF6A082.6CC0E28B (05:32:50.424 UTC Fri Dec 29 2000)
clock offset is 0.0000 msec, root delay is 0.00 msec
root dispersion is 0.02 msec, peer dispersion is 0.02 msec
afnet1-Abj#sho clock
05:33:57.896 UTC Fri Dec 29 2000
I don't know what's wrong with my configuration
How can i check that the public NTP server i'm using is correctly broadcasting time ?
Can i force my router to update the clock to see if it's working ?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>UTC Fri Dec 29 2000
You should try manually setting the current time/date on the router first. If it is too far off of the actual time, it won't sync up.
You should try manually setting the current time/date on the router first. If it is too far off of the actual time, it won't sync up.
ASKER
this is the new configuration and it's working
ntp clock-period 17180766
ntp source GigabitEthernet0/2
ntp access-group peer 22 (as recommended by jesper)
ntp access-group serve-only 21 (i used this to restrict my internal ip that can use the router as an ntp server)
ntp master (i need this bcos it's my network ntp server)
ntp server 128.9.176.30 prefer
ntp server 66.102.105.230
ntp server 83.67.145.167
thanks
ntp clock-period 17180766
ntp source GigabitEthernet0/2
ntp access-group peer 22 (as recommended by jesper)
ntp access-group serve-only 21 (i used this to restrict my internal ip that can use the router as an ntp server)
ntp master (i need this bcos it's my network ntp server)
ntp server 128.9.176.30 prefer
ntp server 66.102.105.230
ntp server 83.67.145.167
thanks
This looks good. I've never used the 'ntp master' when using my router to sync externally and using the other equipment to sync off of that.
From priv prompt (but _not_ config mode):
# clock set HH:MM:SS DD MMM YYYY
i.e.,
# clock set 21:16:30 17 Nov 2007
You need to be within a minute or two of the actual clock for your clock to sync.
From priv prompt (but _not_ config mode):
# clock set HH:MM:SS DD MMM YYYY
i.e.,
# clock set 21:16:30 17 Nov 2007
You need to be within a minute or two of the actual clock for your clock to sync.
no ntp master
ntp server 128.9.176.30 source GigabitEthernet0/2 prefer
ntp server 66.102.105.230 source GigabitEthernet0/2
ntp server 83.67.145.167 source GigabitEthernet0/2