Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Lecture 47 NTP

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Network time Protocol

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.

NTP Server LAB (Network Time Protocol) Packet Tracer

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(config)#ntp server 200.100.50.50

A#show clock
*16:44:26.267 UTC Mon Mar 21 2016
A#

PMYDSP Training under NAVTTC


Corvit Systems Faisalabad
How to Set Authentication on NTP Server

A(config)#ntp server 200.100.50.50


A(config)#ntp server 200.100.50.50 key 0
A(config)#ntp authentication-key 1 md5 kamran

A#show clock
*16:50:52.391 UTC Thu Oct 27 2016
A#

PMYDSP Training under NAVTTC


Corvit Systems Faisalabad
NTP LAB in GNS3

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#

Clock Set on Router NTP-SERVER with Data & TIME


NTP-SERVER#clock set 11:33:00 15 March 2010
NTP-SERVER#show clock
11:33:08.719 UTC Mon Mar 15 2010

Check Current Time on Router B before connecting NTP Server


B#show clock
08:00:20.139 UTC Sun Jun 11 2000

Check Current Time on Router C also before connecting NTP Server


C#show clock
08:00:02.131 UTC Sun Jun 11 2000

Configure Router as NTP Server


NTP-SERVER (config)#ntp master 5

PMYDSP Training under NAVTTC


Corvit Systems Faisalabad
Configure Router B as NTP Clint
B(config)#ntp server 1.0.0.1

B#show ntp associations


address ref clock st when poll reach delay offset disp
*~1.0.0.1 127.127.7.1 5 1 64 376 44.1 31.67 24.6
* master (synced), # master (unsynced), + selected, - candidate, ~ configured

B#show clock
11:36:31.478 UTC Mon Mar 15 2010
B#

C(config)#ntp server 1.0.0.1


C#show ntp associations
address ref clock st when poll reach delay offset disp
*~1.0.0.1 127.127.7.1 5 0 64 17 40.1 2.02 1888.6
* master (synced), # master (unsynced), + selected, - candidate, ~ configured

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#

PMYDSP Training under NAVTTC


Corvit Systems Faisalabad
PMYDSP Training under NAVTTC
Corvit Systems Faisalabad

You might also like