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
 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
ntp server
ntp server

//The clock is not sync
afnet1-Abj#sho ntp associations

      address         ref clock     st  when  poll reach  delay  offset    disp
*~       7    48    64  377     0.0    0.00     0.0
 ~          16  2374  1024    0     0.0    0.00  16000.
 ~          16   426  1024    0     0.0    0.00  16000.
 ~          16     -  1024    0     0.0    0.00  16000.
 * master (synced), # master (unsynced), + selected, - candidate, ~ configured
afnet1-Abj#show ntp st
afnet1-Abj#show ntp status
Clock is synchronized, stratum 8, reference is
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 ?

Who is Participating?
Jan SpringerConnect With a Mentor Commented:
The first thing I'd do is prevent it from using localhost net:

access-list 10 permit
access-list 10 permit
access-list 10

ntp access-group peer 10
ntp server prefer
ntp server
ntp server

And look for access lists on the equipment blocking ntp port 123 incoming and outgoing.
It looks like the router is synchronised to itself as an ntp server. First, I would remove the ntp master command, as this is making the router its own primary ntp server. In addition, it tends to help to put the source interface in the ntp server command. i.e.:-

no ntp master
ntp server source GigabitEthernet0/2 prefer
ntp server source GigabitEthernet0/2
ntp server source GigabitEthernet0/2
>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.

lemaitre75Author Commented:
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 prefer
ntp server
ntp server

Jan SpringerCommented:
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


# 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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.