switch 192.168.1.1 has to use the NTP master command but you should sync it with a NTP source for example over the internet.
all other devices will have
ntp server 192.168.1.1
Some old routers like C4700 had an on board calendar and are handy for this
be aware that NTP sync requires time (minutes)
and udp port 123 needs to be permitted
Hope to help
If you configure your core switch to learn NTP time from some external source of NTP then your core switch can function as an NTP server to the other devices in your network. If your core switch does not learn NTP time from an external source then you can configure it to function as an NTP server by configuring it as ntp master. The commands that you would type vary depending on whether your core switch is CatOS or IOS. Which is it?
There is probably nothing in your server/switch environment that will function as a good NTP server, their clocks aren't accruate enough. You need a stratum 2 or stratum 1 source. Here is one of may lists of Public NTP servers.
You allow the port in, and synch to that. then your "inside" server can provide NTP to the rest of your network. See Guiseppes example above (he is never wrong)
Basicly what I did and worked
Go to core switch
-set time and date by "clock" command
-type ntp master command
-Go to edge switches and type
Ä±f you have vlans type vlan default
gateways for the IP address.
Only thing this is manual system make sure your core switch works fine :)
One thing is interesting that I wanted to share ....
I defined my core switch as a ntp master
my 2 dist switches also using coreswitch for getting clock info.VLANs which were defined on dist switches connected to some edge switches.When I type
ntp server vlandefaultgatewway
it works but funny thing is that ;
that VLAN defined on dist switch even dist switch is not ntp master edge switches are getting the time from dist switches or core switch ????
But as I said ;
I did not get how did it happen ?
ntp master is my core
edge switches connected to Dist switch and VLANs are defined on Dist switches and on edge switches I typed
So even the server is Core switch edge switches get the clock from Dist switches ? any idea ?