Итак, настраиваем время на одном из маршрутизаторов, который будет NTP-сервером:
!clock set hh:mm:cc день месяц год R1#clock set 00:47:00 16 Feb 2010 R1# *Feb 16 00:47:00.000: %SYS-6-CLOCKUPDATE: System clock has been updated from 00:02:32 UTC Fri Mar 1 2002 to 00:47:00 UTC Tue Feb 16 2010, configured from console by console. R1#show clock 00:47:07.083 UTC Tue Feb 16 2010R1#conf tEnter configuration commands, one per line. End with CNTL/Z. !clock timezone (имя временной зоны или часовой пояс) [смещение]R1(config)#clock timezone MSK +3R1(config)#Feb 16 00:49:46.827: %SYS-6-CLOCKUPDATE: System clock has been updated from 00:49:46 UTC Tue Feb 16 2010 to 03:49:46 MSK Tue Feb 16 2010, configured from console by console. !clock summer-time (имя временной зоны или часовой пояс) recurring (дата и время начала, дата и время конца перехода на летнее время)R1(config)#clock summer-time MSK recurring last Sun Mar 3:00 lasR1(config)#$r-time MSK recurring last Sun Mar 3:00 last Sun Oct 3:00R1(config)#Feb 16 00:50:39.127: %SYS-6-CLOCKUPDATE: System clock has been updated from 03:50:39 MSK Tue Feb 16 2010 to 03:50:39 MSK Tue Feb 16 2010, configured from console by console.!роутер выступает в качестве ntp-сервераR1(config)#ntp master
Настройка клиента:
R2(config)#ntp server 192.168.0.1R2#conf tEnter configuration commands, one per line. End with CNTL/Z.R2(config)#clock timezone MSK +3R2(config)#R2#Feb 16 00:54:14.131: %SYS-6-CLOCKUPDATE: System clock has been updated from 00:54:14 UTC Tue Feb 16 2010 to 03:54:14 MSK Tue Feb 16 2010, configured from console by console.shFeb 16 00:54:15.227: %SYS-5-CONFIG_I: Configured from console by consoleR2#sh clock03:54:23.163 MSK Tue Feb 16 2010
Проверка
R2#sh ntp statusClock is synchronized, stratum 9, reference is 192.168.0.1 nominal freq is 250.0000 Hz, actual freq is 250.0000 Hz, precision is 2**18 reference time is CF246AFF.DBA44B8F (00:53:19.857 UTC Tue Feb 16 2010) clock offset is 7.9988 msec, root delay is 3.95 msec root dispersion is 10.96 msec, peer dispersion is 2.93 msec R2#sh ntp associations address ref clock st when poll reach delay offset disp *~192.168.0.1 127.127.7.1 8 15 64 377 4.0 8.00 2.9 * master (synced), # master (unsynced), + selected, - candidate, ~ configured
Комментариев нет:
Отправить комментарий