Sunday, February 16, 2014

NTP with Authentication !!!

Lab : NTP with Authentication !!!

Lab Topology !!!



For theory link on the below link

--------------------------------------------------------------------------------------------------------------------------
Configuration on R1 as Client, Here Router R1 is acting as NTP Client
--------------------------------------------------------------------------------------------------------------------------

enable
! shows date and time
show clock
config t
! assigning name to the Router
host R1
! assigning ip address on the interface FastEthernet 0/1
int fa0/0
no sh
ip add 7.7.7.1 255.0.0.0
! pointing default route towards Router R2
ip route 0.0.0.0 0.0.0.0 7.7.7.2
! shows ip address on the interfaces
do sh ip int br
! locating ntp server
ntp server 7.7.7.2
! providing servers credentials to get associated as ntp client
ntp trusted-key 9000529
ntp authentication-key 9000529 md5 arshnetworks
exit
!

--------------------------------------------------------------------------------------------------------------------------
Configuration on Router R2, Here Router R2 is acting as NTP Server
--------------------------------------------------------------------------------------------------------------------------

enable
! displays date and time
show clock
! lets set date as 13 feb 2014 and time as 2pm 
clock set 14:00:00 13 Feb 2014 ! syntax clock set hours:minutes:seconds date month year 
config t
! assigning name to the Router
host R2
! assigning ip address on the interface FastEthernet 0/0
int fa0/0
no sh
ip add 7.7.7.2 255.0.0.0
! assigning ip address on the interface FastEthernet 0/1
int fa0/1
no sh
ip add 8.8.8.1 255.0.0.0
! shows ip address on the interfaces
do sh ip int br
! lets make R2 as NTP server
ntp master
! lets enable authentication on NTP server
ntp authenticate
! lets set credentials for authentication
ntp trusted-key 9000529
ntp authentication-key 9000529 md5 arshnetworks
!

-------------------------------------------------------------------------------------------------------------------------------
Configuration on Router R3, Here Router R3 is acting as NTP Client
-------------------------------------------------------------------------------------------------------------------------------

enable
config t
! assigning name to the Router
host R3
! assigning ip address on the interface FastEthernet 0/0
int fa0/0
no sh
ip add 8.8.8.2 255.0.0.0
! pointing default route towards Router R2
ip route 0.0.0.0 0.0.0.0 8.8.8.1
! shows ip address on the interfaces
do sh ip int br
!
! locating ntp server
ntp server 7.7.7.2
! providing servers credentials to get associated as ntp client
ntp trusted-key 9000529
ntp authentication-key 9000529 md5 arshnetworks
exit
!

-------------------------------------------------------------------------------------------------------------------------------
Verification Commands
-------------------------------------------------------------------------------------------------------------------------------

! Displays the status of NTP associations, including the status of the GPS reference clock, likely to be used on client side
show ntp associations

! Displays the status of NTP.
show ntp status

! Allows advanced monitoring of reference clock activities for the purposes of debugging.
debug ntp refclock

0 comments:

Post a Comment