Вы находитесь на странице: 1из 15

Cisco Network Time Protocol (NTP) | NetworkLessons.com https://networklessons.com/cisco/ccnp-switch/cisco-network-time-pro...

1 of 15 6/19/2018, 9:20 AM
Cisco Network Time Protocol (NTP) | NetworkLessons.com https://networklessons.com/cisco/ccnp-switch/cisco-network-time-pro...

2 of 15 6/19/2018, 9:20 AM
Cisco Network Time Protocol (NTP) | NetworkLessons.com https://networklessons.com/cisco/ccnp-switch/cisco-network-time-pro...

CoreRouter(config)#ip name-server 8.8.8.8

CoreRouter(config)#ntp server pool.ntp.org

CoreRouter#show ntp associations

address ref clock st when poll reach delay offset disp


~146.185.130.223 .INIT. 16 - 64 0 0.000 0.000 16000.
* sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured

CoreRouter#show ntp status


Clock is unsynchronized, stratum 16, no reference clock
nominal freq is 250.0000 Hz, actual freq is 250.0000 Hz, precision is 2**24
reference time is 00000000.00000000 (00:00:00.000 UTC Mon Jan 1 1900)
clock offset is 0.0000 msec, root delay is 0.00 msec
root dispersion is 0.16 msec, peer dispersion is 0.00 msec
loopfilter state is 'FSET' (Drift set from file), drift is 0.000000000 s/s
system poll interval is 64, never updated.

CoreRouter#show ntp associations

address ref clock st when poll reach delay offset disp


*~146.185.130.223 193.79.237.14 2 26 64 1 10.857 -5.595 7937.5
* sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured

CoreRouter#show ntp status


Clock is synchronized, stratum 3, reference is 146.185.130.22
nominal freq is 250.0000 Hz, actual freq is 250.0000 Hz, precision is 2**24
reference time is D76513B4.66A4CDA6 (12:40:20.400 UTC Mon Jul 7 2014)
clock offset is -5.5952 msec, root delay is 13.58 msec
root dispersion is 7966.62 msec, peer dispersion is 7937.50 msec
loopfilter state is 'CTRL' (Normal Controlled Loop), drift is -0.000000018 s/s
system poll interval is 64, last update was 43 sec ago.

3 of 15 6/19/2018, 9:20 AM
Cisco Network Time Protocol (NTP) | NetworkLessons.com https://networklessons.com/cisco/ccnp-switch/cisco-network-time-pro...

CoreRouter#show clock
12:41:25.197 UTC Mon Jul 7 2014

CoreRouter#show calendar
12:43:24 UTC Mon Jul 7 2014

CoreRouter#(config)ntp update-calendar

CoreRouter#show clock
12:42:31.853 UTC Mon Jul 7 2014

CoreRouter#show calendar
12:42:30 UTC Mon Jul 7 2014

SW1(config)#ntp server 192.168.123.3

SW1#show ntp associations

address ref clock st when poll reach delay offset disp


*~192.168.123.3 146.185.130.223 3 21 64 1 2.5 1.02 15875.
* master (synced), # master (unsynced), + selected, - candidate, ~ configured

4 of 15 6/19/2018, 9:20 AM
Cisco Network Time Protocol (NTP) | NetworkLessons.com https://networklessons.com/cisco/ccnp-switch/cisco-network-time-pro...

SW1#show ntp status


Clock is synchronized, stratum 4, reference is 192.168.123.3
nominal freq is 119.2092 Hz, actual freq is 119.2089 Hz, precision is 2**18
reference time is D765271D.D6021302 (14:03:09.835 UTC Mon Jul 7 2014)
clock offset is 1.0229 msec, root delay is 14.31 msec
root dispersion is 16036.00 msec, peer dispersion is 15875.02 msec

SW2(config)#ntp server 192.168.123.3

SW2#show ntp associations

address ref clock st when poll reach delay offset disp


*~192.168.123.3 146.185.130.223 3 17 64 37 3.4 1.89 875.8
* master (synced), # master (unsynced), + selected, - candidate, ~ configured

SW2#show ntp status


Clock is synchronized, stratum 4, reference is 192.168.123.3
nominal freq is 119.2092 Hz, actual freq is 119.2084 Hz, precision is 2**18
reference time is D765274D.D51A0546 (14:03:57.832 UTC Mon Jul 7 2014)
clock offset is 1.8875 msec, root delay is 15.18 msec
root dispersion is 1038.39 msec, peer dispersion is 875.84 msec

SW1(config)#ntp peer 192.168.123.2

SW2(config)#ntp peer 192.168.123.1

SW1#show ntp associations

address ref clock st when poll reach delay offset disp


*~192.168.123.3 146.185.130.223 3 59 64 37 3.0 -0.74 877.4
+~192.168.123.2 192.168.123.3 4 50 128 376 2.2 -2.04 1.3
* master (synced), # master (unsynced), + selected, - candidate, ~ configured

SW2#show ntp associations

address ref clock st when poll reach delay offset disp


*~192.168.123.3 146.185.130.223 3 45 128 377 2.9 1.95 1.0
~192.168.123.1 192.168.123.3 4 67 1024 376 1.8 2.40 1.4
* master (synced), # master (unsynced), + selected, - candidate, ~ configured

5 of 15 6/19/2018, 9:20 AM
Cisco Network Time Protocol (NTP) | NetworkLessons.com https://networklessons.com/cisco/ccnp-switch/cisco-network-time-pro...

hostname CoreRouter
!
interface FastEthernet0/0
ip address 192.168.123.3 255.255.255.0
!
ip name-server 8.8.8.8
!
ntp server pool.ntp.org
ntp update-calendar
!
end

hostname SW1
!
interface FastEthernet0/24
ip address 192.168.123.1 255.255.255.0
!
ntp server 192.168.123.3
ntp peer 192.168.123.2
!
end

hostname SW2
!
interface FastEthernet0/24
ip address 192.168.123.2 255.255.255.0
!
ntp server 192.168.123.3
ntp peer 192.168.123.1
!
end

6 of 15 6/19/2018, 9:20 AM
Cisco Network Time Protocol (NTP) | NetworkLessons.com https://networklessons.com/cisco/ccnp-switch/cisco-network-time-pro...

SW1(config)#interface vlan 10
SW1(config-if)#ntp multicast 239.1.1.1

SW2(config-if)#interface vlan 20
SW2(config-if)#ntp broadcast

R5(config)#interface fastEthernet 0/0


R5(config-if)#ntp multicast client 239.1.1.1

R5#show ntp associations

address ref clock st when poll reach delay offset disp


* 192.168.10.1 192.168.123.3 4 14 64 1 1.528 -1.209 0.206
* sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured

R5#show ntp status


Clock is synchronized, stratum 5, reference is 192.168.10.1
nominal freq is 250.0000 Hz, actual freq is 250.0174 Hz, precision is 2**24
reference time is D765447B.DA56D83C (16:08:27.852 UTC Mon Jul 7 2014)
clock offset is -0.0012 msec, root delay is 0.01 msec
root dispersion is 0.16 msec, peer dispersion is 0.00 msec
loopfilter state is 'CTRL' (Normal Controlled Loop), drift is -0.000069583 s/s
system poll interval is 64, last update was 35 sec ago.

7 of 15 6/19/2018, 9:20 AM
Cisco Network Time Protocol (NTP) | NetworkLessons.com https://networklessons.com/cisco/ccnp-switch/cisco-network-time-pro...

R6(config)#interface fastEthernet 0/0


R6(config-if)#ntp broadcast client

R6#show ntp associations

address ref clock st when poll reach delay offset disp


* 192.168.20.2 192.168.123.3 4 29 64 1 1.284 -4.035 0.127
* sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured

R6#show ntp status


Clock is synchronized, stratum 5, reference is 192.168.20.2
nominal freq is 250.0000 Hz, actual freq is 250.0132 Hz, precision is 2**24
reference time is D7654496.15979782 (16:08:54.084 UTC Mon Jul 7 2014)
clock offset is -0.0040 msec, root delay is 0.01 msec
root dispersion is 0.59 msec, peer dispersion is 0.00 msec
loopfilter state is 'CTRL' (Normal Controlled Loop), drift is -0.000052939 s/s
system poll interval is 64, last update was 29 sec ago.

hostname R5
!
interface FastEthernet0/0
ntp multicast client 239.1.1.1
!
end

hostname R6
!
interface FastEthernet0/0
ntp broadcast client
!
end

hostname SW1
!
interface FastEthernet0/24
ip address 192.168.123.1 255.255.255.0
!
interface vlan 10
ntp multicast 239.1.1.1
!
end

8 of 15 6/19/2018, 9:20 AM
Cisco Network Time Protocol (NTP) | NetworkLessons.com https://networklessons.com/cisco/ccnp-switch/cisco-network-time-pro...

hostname SW2
!
interface FastEthernet0/24
ip address 192.168.123.2 255.255.255.0
!
interface vlan 20
ntp broadcast
!
end

CoreRouter(config)#ntp authenticate
CoreRouter(config)#ntp trusted-key 1
CoreRouter(config)#ntp trusted-key 2
CoreRouter(config)#ntp authentication-key 1 md5 NETWORKLESSONS1
CoreRouter(config)#ntp authentication-key 2 md5 NETWORKLESSONS2

SW1(config)#ntp authenticate
SW1(config)#ntp authentication-key 1 md5 NETWORKLESSONS1
SW1(config)#ntp trusted-key 1
SW1(config)#ntp server 192.168.123.3 key 1

SW2(config)#ntp authenticate
SW2(config)#ntp authentication-key 2 md5 NETWORKLESSONS2
SW2(config)#ntp trusted-key 2
SW2(config)#ntp server 192.168.123.3 key 2

9 of 15 6/19/2018, 9:20 AM
Cisco Network Time Protocol (NTP) | NetworkLessons.com https://networklessons.com/cisco/ccnp-switch/cisco-network-time-pro...

SW1(config)#ntp authentication-key 12 md5 NETWORKLESSONS12


SW1(config)#ntp trusted-key 12
SW1(config)#ntp peer 192.168.123.2 key 12

SW2(config)#ntp authentication-key 12 md5 NETWORKLESSONS12


SW2(config)#ntp trusted-key 12
SW2(config)#ntp peer 192.168.123.1 key 12

CoreRouter(config)#access-list 1 permit 146.185.130.223


CoreRouter(config)#ntp access-group peer 1

CoreRouter(config)#ntp access-group serve-only 12


CoreRouter(config)#access-list 12 permit 192.168.123.1
CoreRouter(config)#access-list 12 permit 192.168.123.2

SW1(config)#access-list 3 permit 192.168.123.2


SW1(config)#access-list 3 permit 192.168.123.3
SW1(config)#ntp access-group peer 3

SW2(config)#access-list 3 permit 192.168.123.1


SW2(config)#access-list 3 permit 192.168.123.3
SW2(config)#ntp access-group peer 3

10 of 15 6/19/2018, 9:20 AM
Cisco Network Time Protocol (NTP) | NetworkLessons.com https://networklessons.com/cisco/ccnp-switch/cisco-network-time-pro...

SW1#show ntp associations detail


192.168.123.3 configured, authenticated, our_master, sane, valid, stratum 3
ref ID 146.185.130.223, time D7656103.9F50193C (18:10:11.622 UTC Mon Jul 7 2014)
our mode client, peer mode server, our poll intvl 1024, peer poll intvl 1024
root delay 12.28 msec, root disp 144.93, reach 377, sync dist 162.231
delay 1.43 msec, offset -0.7465 msec, dispersion 1.48
precision 2**24, version 3
org time D76562BA.DE84436E (18:17:30.869 UTC Mon Jul 7 2014)
rcv time D76562BA.DEE4A769 (18:17:30.870 UTC Mon Jul 7 2014)
xmt time D76562BA.DE7AA858 (18:17:30.869 UTC Mon Jul 7 2014)
filtdelay = 1.43 1.39 1.37 1.40 1.51 2.43 1.50 1.63
filtoffset = -0.75 -0.79 -3.92 -4.03 -3.95 -1.69 -1.23 -1.70
filterror = 0.02 15.64 31.27 46.89 62.52 78.14 79.12 79.74

192.168.123.2 configured, authenticated, selected, sane, valid, stratum 4


ref ID 192.168.123.3, time D76561FF.17C145F3 (18:14:23.092 UTC Mon Jul 7 2014)
our mode active, peer mode active, our poll intvl 1024, peer poll intvl 1024
root delay 14.97 msec, root disp 149.15, reach 377, sync dist 164.719
delay 4.21 msec, offset -7.8822 msec, dispersion 5.98
precision 2**18, version 3
org time D7656506.196F1052 (18:27:18.099 UTC Mon Jul 7 2014)
rcv time D7656506.1BFDEA18 (18:27:18.109 UTC Mon Jul 7 2014)
xmt time D7656486.DED15803 (18:25:10.870 UTC Mon Jul 7 2014)
filtdelay = 4.21 1.63 2.76 4.39 4.73 1.27 1.14 1.17
filtoffset = -7.88 -4.20 -4.28 -3.79 -2.31 -0.20 0.03 0.29
filterror = 1.97 17.59 18.57 19.55 35.17 50.80 66.42 82.05

11 of 15 6/19/2018, 9:20 AM
Cisco Network Time Protocol (NTP) | NetworkLessons.com https://networklessons.com/cisco/ccnp-switch/cisco-network-time-pro...

hostname CoreRouter
!
interface FastEthernet0/0
ip address 192.168.123.3 255.255.255.0
!
ip name-server 8.8.8.8
ntp server pool.ntp.org
ntp update-calendar
ntp authenticate
ntp trusted-key 1
ntp trusted-key 2
ntp authentication-key 1 md5 NETWORKLESSONS1
ntp authentication-key 2 md5 NETWORKLESSONS2
!
access-list 1 permit 146.185.130.223
ntp access-group peer 1
ntp access-group serve-only 12
access-list 12 permit 192.168.123.1
access-list 12 permit 192.168.123.2
!
end

hostname SW1
!
interface FastEthernet0/24
ip address 192.168.123.1 255.255.255.0
!
ntp authenticate
ntp authentication-key 1 md5 NETWORKLESSONS1
ntp trusted-key 1
ntp server 192.168.123.3 key 1
!
ntp authentication-key 12 md5 NETWORKLESSONS12
ntp trusted-key 12
ntp peer 192.168.123.2 key 12
!
access-list 3 permit 192.168.123.2
access-list 3 permit 192.168.123.3
ntp access-group peer 3
!
end

12 of 15 6/19/2018, 9:20 AM
Cisco Network Time Protocol (NTP) | NetworkLessons.com https://networklessons.com/cisco/ccnp-switch/cisco-network-time-pro...

hostname SW2
!
interface FastEthernet0/24
ip address 192.168.123.2 255.255.255.0
!
ntp authenticate
ntp authentication-key 2 md5 NETWORKLESSONS2
ntp trusted-key 2
ntp server 192.168.123.3 key 2
!
ntp authentication-key 12 md5 NETWORKLESSONS12
ntp trusted-key 12
ntp peer 192.168.123.1 key 12
!
access-list 3 permit 192.168.123.1
access-list 3 permit 192.168.123.3
ntp access-group peer 3
!
end

« »

13 of 15 6/19/2018, 9:20 AM
Cisco Network Time Protocol (NTP) | NetworkLessons.com https://networklessons.com/cisco/ccnp-switch/cisco-network-time-pro...

clock set

ntp server

Client(config)#ntp server 192.168.1.1 key 1

14 of 15 6/19/2018, 9:20 AM
Cisco Network Time Protocol (NTP) | NetworkLessons.com https://networklessons.com/cisco/ccnp-switch/cisco-network-time-pro...

15 of 15 6/19/2018, 9:20 AM

Вам также может понравиться