RTR-001#conf t
RTR001(config)#interface Loopback100
RTR001(config)# description -=I=- NTP service -=I=-
RTR001(config)# ip address 10.10.10.100 255.255.255.255
RTR001(config)#^Z
RTR001#
RTR-001#conf t
RTR001(config)#ntp update-calendar
RTR-001#conf t
RTR001(config)#ntp update-calendar
— update the calendar from the NTP server.RTR001(config)#ntp server 192.73.48.1 prefer
RTR001(config)#ntp server 192.73.48.2
RTR001(config)#ntp server 192.73.48.6
RTR001(config)#ntp server 192.73.48.1 prefer
RTR001(config)#ntp server 192.73.48.2
RTR001(config)#ntp server 192.73.48.6
- we set the addresses of NTP servers, the first of which is preferred.RTR001#sho clock
14:11:54.530 MSD Thu Oct 1 2009
RTR001#
RTR001#sho ntp status
Clock is synchronized, stratum 3, reference is 192.73.48.1
nominal freq is 250.0000 Hz, actual freq is 249.9948 Hz, precision is 2**24
reference time is CE6EFA48.2E139AA2 (13:52:08.179 MSD Thu Oct 1 2009)
clock offset is -0.0232 msec, root delay is 0.32 msec
root dispersion is 0.08 msec, peer dispersion is 0.01 msec
loopfilter state is 'CTRL' (Normal Controlled Loop), drift is 0.000020656 s/s
system poll interval is 1024, last update was 1199 sec ago.
RTR001#
clock timezone MSK 3
- time zoneclock summer-time MSD recurring last Sun Mar 2:00 last Sun Oct 2:00
- days of daylight saving time and backC2970(config)#ntp server 10.10.10.100
C2970#sho ntp stat
Clock is synchronized, stratum 4, reference is 10.10.10.100
nominal freq is 119.2092 Hz, actual freq is 119.2072 Hz, precision is 2**18
reference time is CE6F0038.2117CCA0 (14:17:28.129 MSD Thu Oct 1 2009)
clock offset is -0.8434 msec, root delay is 329.33 msec
root dispersion is 93.77 msec, peer dispersion is 1.75 msec
C2970#
@echo
net time /setsntp
@echo : 10.10.10.100
w32tm /config /syncfromflags:manual /manualpeerlist:10.10.10.100
@echo
w32tm /config /update
@echo
w32tm /resync
net time /querysntp
pause
Source: https://habr.com/ru/post/71141/
All Articles