ā06-08-2021 05:46 AM
Hello Community,
How to set up ntp time synchronization with a specific server (time pattern in my LAN) on a Catalyst C1000 switch (web gui or cli) ?
Regards.
Solved! Go to Solution.
ā06-09-2021 02:38 AM
The command starting with "set" is aimed at CatOS which the Catalyst 1000 is not compatible with.
To set an NTP peer, use the command "ntp server <IP ADDRESS>".
ā06-08-2021 05:51 AM
Hi,
Here is an example using the CLI.
https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst4000/8-2glx/configuration/guide/ntp.html
Console> (enable) set ntp server 172.20.52.65
NTP server 172.20.52.65 added.
Console> (enable) set ntp client enable
NTP Client mode enabled
Console> (enable) show ntp
Current time: Tue Jun 23 1998, 20:29:25
Timezone: '', offset from UTC is 0 hours
Summertime: '', disabled
Last NTP update: Tue Jun 23 1998, 20:29:07
Broadcast client mode: disabled
Broadcast delay: 3000 microseconds
Client mode: enabled
NTP-Server
----------------------------------------
172.16.52.65
Console> (enable)
ā06-08-2021 06:01 AM
Thanks, but in this model these commands don't work - options:
access-group Control NTP access
allow Allow processing of packets
authenticate Authenticate time sources
authentication-key Authentication key for trusted time sources
broadcastdelay Estimated round-trip delay
clock-period Length of hardware clock tick
leap-handle To handle the leap seconds
logging Enable NTP message logging
master Act as NTP master clock
max-associations Set maximum number of associations
maxdistance Maximum Distance for synchronization
mindistance Minimum distance to consider for clockhop
orphan Threshold Stratum for orphan mode
panic Reject time updates > panic threshold (default 1000Sec)
passive NTP passive mode
peer Configure NTP peer
server Configure NTP server
source Configure interface for source address
trusted-key Key numbers for trusted time sources
update-calendar Periodically update calendar with NTP time
ā06-08-2021 12:13 PM
Am I understanding correctly that you attempted this:
set ntp server <ip_of_server>
and it did not work? You indicate that server is an option, so perhaps post the output you get from
set ntp server ?
ā06-08-2021 11:11 PM
I have little experience with cisco, but:
Switch#set ?
memory set memory parameters
trace Set trace options
This command does't work (that's work: Switch(config)#ntp server ....). Time settings still shows: Time source: Local - unsynchronized (on web gui). On HP Procurve switches it was easy to set up, on cisco i don't know
ā06-09-2021 12:11 AM
I do not have experience with the C1000 switch but it seems to me that the syntax of set ntp server is more like older Catalyst syntax. I would expect it to be more like ntp server <ip>. Am I correct in understanding that this is what you did configure? If so please post the output of show ntp status.
Do you have IP connectivity to the IP address that you configured for the ntp server? (can you ping it from your C1000)?
Is it possible that some device (firewall etc) along the path from your C1000 to the server has a security policy that is preventing ntp from working?
ā06-10-2021 01:59 AM
Thanks Richard Burts !, command: ntp server ip.... works properly, traffic from my subnet was blocked on the firewall on the master node (ntp protocol). Everything works fine, thanks very much for all your help !
ā06-10-2021 11:13 AM
Thanks for the update. Glad to know that it is now working and interesting that it did turn out to be an issue with firewall policy as I had suggested it might be.
ā06-09-2021 02:38 AM
The command starting with "set" is aimed at CatOS which the Catalyst 1000 is not compatible with.
To set an NTP peer, use the command "ntp server <IP ADDRESS>".
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide