You are on page 1of 3

In cisco IOS

sh clock
coordinated universal time UTC

sh clock detail
hardware built in clock

e.g ospf neig


check time on both routers

Software clock is the time source


clock udate-calendar (Hardware clock)

Hardware clock is the time


clock read-calendar

clock update-calendar to sync the calender to the clock's time


clock read-calendar to sync clock to the calender time

Clock timezone
IST is 5:30 hrs ahead of UTC
clock timezone IST 5 30

daylight saving
clock summer-time EDT recurring 2 sunday march 02:00 1 sunday november 02:00

nslookup time.google.com
ntp server 216.239.35.0
ntp server 216.239.35.4
ntp server 216.239.35.8
ntp server 216.239.35.12

sh ntp ass
ntp update-calender
R1:
int lo 0
ip add 10.1.1.1 255.255.255.0
ntp source lo 0

R2:
ntp server 10.1.1.1
sh ntp ass
sh ntp status

R3:
ntp server 10.1.1.1
ntp server 10.2.2.2
sh ntp ass

R2/R3 symmetric mode


R2
ntp peer 10.0.23.3
R3
ntp peer 10.0.23.2

ntp authenticate'
ntp authentication-key 1 md5
ntp trusted-
====================================
R1:
conf t
int e0/0
Desc conn to primary NTP server
ip add dhcp
no sh
int e0/1
Desc conn to R2
ip add 10.1.12.1 255.255.255.0
no sh
int e0/2
Desc conn to R3
ip add 10.1.13.1 255.255.255.0
no sh
exi
int lo 0
ip add 10.1.1.1 255.255.255.255
exi
router eigrp 1
no au
net 10.1.0.0 0.0.255.255
redistribute static metric 10 10 1 1 1
exi

ip domain lookup
ip name-server 8.8.8.8

ntp server 216.239.35.12


ntp server 216.239.35.8
ntp server 216.239.35.4
ntp server 216.239.35.0

clock timezone IST 5 30

sh ntp ass
sh ntp status
sh clock detial
sh calendar

R2:
conf t
int e0/0
Desc conn to secondary server R1
ip add 10.1.12.2 255.255.255.0
no sh
int e0/2
Desc conn to NTp peer R3
ip add 10.1.23.2 255.255.255.0
no sh
int e0/1
ip add 10.1.24.2 255.255.255.0
no sh
router eigrp 1
no Au
net 10.1.0.0 255.255.0.0
ntp server 10.1.1.1
ntp peer 10.1.23.3

R3:
conf t
int e0/0
ip add 10.1.13.3 255.255.255.0
no sh
int e0/2
ip add 10.1.23.3 255.255.255.0
no sh
int e0/1
ip add 10.1.34.3 255.255.255.0
no sh
exi

router eigrp 1
no Au
net 10.1.0.0 255.255.0.0

ntp server 10.1.1.1


ntp peer 10.1.23.2

R4: NTP client

conf t
int e0/0
ip add 10.1.24.4 255.255.255.0
no sh
int e0/1
ip add 10.1.34.4 255.255.255.0
no sh
router eigrp 1
no Au
net 10.1.0.0 255.255.0.0

ntp server 10.1.24.2 prefer


ntp server 10.1.34.3

ntp update-calendar
ntp authentication-key 1 md5 cisco123
ntp authenticate
ntp trusted-key 1
end

==========================================

You might also like