Configuration manuel de l’heure
R1#clock set 21:53:00 09 May 2012
R1#show clock
21:53:29.699 UTC Wed May 9 2012
Configuration du router en master NTP sratum 2
R1#conf t R1(config)#ntp master 2 R1#show ntp status Clock is synchronized, stratum 2, reference is 127.127.7.1 nominal freq is 250.0000 Hz, actual freq is 250.0000 Hz, precision is 2**18 reference time is D3556619.04297E52 (21:54:33.016 UTC Wed May 9 2012) clock offset is 0.0000 msec, root delay is 0.00 msec root dispersion is 0.02 msec, peer dispersion is 0.02 msec
Configuration de R2 en client NTP
R2#show clock *01:55:39.631 UTC Sat Mar 16 2002 R2#conf t R2(config)#ntp server 10.10.10.1 R2(config)#^Z R2#show clock 22:01:02.805 UTC Wed May 9 2012 R2#show ntp status Clock is synchronized, stratum 3, reference is 10.10.10.1 nominal freq is 250.0000 Hz, actual freq is 250.0000 Hz, precision is 2**18 reference time is D355678E.A2E9C3B8 (22:00:46.636 UTC Wed May 9 2012) clock offset is -0.2264 msec, root delay is 2.85 msec root dispersion is 0.29 msec, peer dispersion is 0.03 msec
Authentification NTP
R1(config)#ntp authentication-key 1 md5 CISCO123 R1(config)#ntp authenticate R1(config)#ntp trusted-key 1 R3(config)#ntp authentication-key 1 md5 CISCO123 R3(config)#ntp authenticate R3(config)#ntp trusted-key 1 R3(config)#ntp server 10.10.10.1
Configuration de R3 en peer NTP
R3#conf t R3(config)#ntp peer 10.10.10.1 R3#show ntp status Clock is synchronized, stratum 3, reference is 10.10.10.1 nominal freq is 250.0000 Hz, actual freq is 250.0002 Hz, precision is 2**18 reference time is D3556B58.9B9D5A1C (22:16:56.607 UTC Wed May 9 2012) clock offset is -9.5878 msec, root delay is 2.61 msec root dispersion is 9.72 msec, peer dispersion is 0.09 msec
Configuration de R1 en NTP master
R1(config)#ntp master
par défaut le NTP master est stratum 8
R1#show ntp status
Clock is synchronized, stratum 8, reference is 127.127.7.1
nominal freq is 250.0000 Hz, actual freq is 250.0000 Hz, precision is 2**18
reference time is D3556CB1.041A3DAB (22:22:41.016 UTC Wed May 9 2012)
clock offset is 0.0000 msec, root delay is 0.00 msec
root dispersion is 0.02 msec, peer dispersion is 0.02 msec
NTP broadcast
Le serveur :
R1(config)#int fa0/0
R1(config-if)#ntp broadcast
Le client :
R2(config)#int fa0/0
R2(config-if)#ntp broadcast client