Cisco – Time synchronization on cisco switches

ciscontp

I have LAN that must not be on Internet. I have a lot of switches. How to make core switch 4500 series to be some kind of NTP server, and all other switches to adjust their time with this core? Goal would be to set manual time only on core, and all other switches to adjust time with the core.
Does anyone know syntax for core and access switches?

Best Answer

The following is an example of how to configure your devices to point to your 4500 for NTP.

There are a few things that you have to ensure you have on hand:

  1. Know what time-zone the devices are operating in.
  2. Know the local time (or whatever time your equipment is set to according to policy).
  3. A refreshing beverage (in a non-spillable container of course.)

Configs:

4500# config t
4500(config)#ntp master
4500(config)#ntp authenticate 4500(config)#ntp authentication-keys 1 md5 password 4500(config)#int lo0
4500(config-int)#ip address 10.0.0.1 255.255.255.255
4500(config-int)#no shut
4500(config-int)#description Loopback_for_NTP
4500(config-int)#end
4500#clock set hh:mm:ss day name of month year
4500#clock timezone number of hours you are offset from UTC
4500# copy run start

Client#clock set hh:mm:ss day name of month year
Client#clock timezone number of hours you are offset from UTC
Client#config t
Client(config)#ntp authenticate
Client(config)#ntp authentication-key 1 md5 password
Client(config)#ntp server 10.0.0.1 key 1
Client(config)#end Client#copy run start

If I missed anything or someone sees and issue with my configuration, please let me know.