Lecture 47 NTP
Lecture 47 NTP
Lecture 47 NTP
The Network Time Protocol (NTP) is a protocol used for synchronizing the clocks of
network devices over data networks. In Cisco router sometimes obtaining the
correct time is extremely important because a variety of services depend on it.
The logging service shows each log entry with the date and time so for the
accurate data you need the updated time and date at every time. Similarly in
configuring some routing protocol’s authentication you also need to have the
updated and accurate time on the every router on which you want to enable the
authentication. You can sync your router’s time and date with NTP server. You can
use some internet NTP server or own master NTP server from within your internal
network if you have.
Click on NTP Server and Select Services Tab & click on NTP button.
A#show clock
*0:6:50.949 UTC Mon Mar 1 1993
A#show clock
*16:44:26.267 UTC Mon Mar 21 2016
A#
A#show clock
*16:50:52.391 UTC Thu Oct 27 2016
A#
NTP-SERVER(config)#int f 1/0
NTP-SERVER(config-if)#ip add 1.0.0.1 255.0.0.0
NTP-SERVER(config-if)#no shutdown
NTP-SERVER(config-if)#exit
NTP-SERVER(config)#ip route 0.0.0.0 0.0.0.0 1.0.0.2
B(config)#int f 1/0
B(config-if)#ip add 1.0.0.2 255.0.0.0
B(config-if)#no shutdown
B(config-if)#exit
B(config)#int f 1/1
B(config-if)#ip add 2.0.0.1 255.0.0.0
B(config-if)#no shutdown
B(config-if)#end
C(config)#int f 1/0
C(config-if)#ip add 2.0.0.2 255.0.0.0
C(config-if)#no shutdown
C(config-if)#end
C(config)#ip route 0.0.0.0 0.0.0.0 2.0.0.1
Connectivity verification
C#ping 1.0.0.1
!!!!!
C#
B#show clock
11:36:31.478 UTC Mon Mar 15 2010
B#
C#show clock
11:37:08.158 UTC Mon Mar 15 2010
C#
C#show ntp status
Clock is synchronized, stratum 6, reference is 1.0.0.1
nominal freq is 250.0000 Hz, actual freq is 249.9995 Hz, precision is 2**18
reference time is CF489D6B.9ACDE1A1 (11:50:03.604 UTC Mon Mar 15 2010)
clock offset is 15.3929 msec, root delay is 60.06 msec
root dispersion is 28.53 msec, peer dispersion is 13.12 msec
NTP-SERVER#show clock
11:51:56.599 UTC Mon Mar 15 2010
NTP-SERVER(config)#clock timezone KSA 6 0
NTP-SERVER#show clock
18:53:48.151 KSA Mon Mar 15 2010
NTP-SERVER#