06-18-2024 03:37 AM
Hi All,
Firstly, how would I default NTP to factory settings? To remove any previous NTP servers from the switch with one command instead of removing them manually one by one?
Then how do set my NTP server on my Cisco 2960-X?
I can set the server, which I have, however, I need to set the clock timezone, I'm unsure what this is.
Videos on YouTube are putting in 'clock timezone BR -3 0'
I'm unsure if I should put this as I'm sure my timezone is not 'BR'. I am from the United Kingdom, what should I put?
06-18-2024 05:54 AM
....>To remove any previous NTP servers from the switch with one command
- Not possible because the NTP directives are part of the running configuration (configuring elements) ; they always need to be handled one by one ,either when creating or removing in the running configuration
>...Then how do set my NTP server on my Cisco 2960-X?
ntp server ip_addr (in configuration mode)
>... I am from the United Kingdom, what should I put?
Try something like : clock timezone BST ,
M.
06-18-2024 06:12 AM
What would I put for offset?
Also, would I need to change this when the clocks go forward? I want this to be fully automatic you see as I have 30 switches.
06-18-2024 08:34 AM
Hello,
You might be able to remove NTP with a single command of:
config t
no ntp
-Be careful as some virtualized environments reboot the device when that command is entered. Haven't tried it in production.
-David
06-20-2024 04:13 AM
Thanks.
Will try on a test switch.
06-20-2024 04:14 AM
What would I put for offset after defining BST or GMT?
Also, would I need to change this when the clocks go forward? I want this to be fully automatic you see as I have 30 switches.
06-20-2024 04:35 AM
>....I want this to be fully automatic you see as I have 30 switches.
- Use : clock timezone BST 0
clock summer-time BST recurring last Sun Mar 0:00 last Sun Oct 0:00
M.
06-20-2024 05:03 AM
Hello @tmourelle
To reset the NTP configuration on a C2960-X switch to factory settings, you need to remove each NTP server manually as Cisco IOS does not provide a single command to clear all NTP servers at once. Enter global configuration mode and use the no ntp server <ip-address> command for each configured server. To set your NTP server, enter global configuration mode and use the ntp server <ip-address> command. For setting the clock timezone for the United Kingdom, configure the timezone to GMT by using the clock timezone GMT 0 command.
Additionally, to account for British Summer Time (BST), configure the daylight saving time adjustment with clock summer-time BST recurring last Sun Mar 1:00 last Sun Oct 2:00. This configuration will set your timezone to GMT and automatically adjust for BST.
configure terminal
no ntp server <ip-address-1>
no ntp server <ip-address-2>
...
ntp server <ip-address>
clock timezone GMT 0
clock summer-time BST recurring last Sun Mar 1:00 last Sun Oct 2:00
06-20-2024 05:44 AM
Hi,
Thanks, however this has only kind of worked:
06-20-2024 06:57 AM
Please do #show ntp associations and #show ntp status
and share here these outputs.
Thanks.
06-20-2024 07:03 AM
Hi,
It's not associated with anything, which is odd as the command ran and came back with no errors.
Could this be a DNS issue as its a domain name and not an 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