NTPv4

You might also like

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

9/8/2020 NTPv4

Search … 

You are here: Home » Cisco » CCNP ENCOR 350-401

NTPv4 Course Contents


CCNP ENCOR 350-401

Lesson Contents
 Unit 1: Switching
1. Con guration  Unit 2: Routing
1.1. Clients  Unit 3: Wireless
1.1.1. Unicast  Unit 4: Multicast
1.1.2. Multicast
 Unit 5: Network Architecture
2. Veri cation
 Unit 6: Services
3. Conclusion
 6.1 NTP

Network Time Protocol (NTP)


NTPv4 is an extension of NTPv3 that supports IPv4 and IPv6. It is backward compatible
NTPv4
with NTPv3, o ers some new features, and time synchronization is faster and more
Troubleshooting NTP
precise.
 6.2 NAT/PAT

 6.3 First Hop Redundancy Protocols


Security has improved, NTPv4 supports public key cryptography and standard X509
 6.4 Quality of Service (QoS)
certi cates.
 Unit 7: Network Assurance

 Unit 8: Security
When using NTP for IPv4, broadcast is a popular option as it allows you to send NTP
 Unit 9: Automation
packets in the broadcast domain to everyone. We can’t do this with IPv6, but NTPv4 does
 Unit 10: Virtualization
support site-local multicast.
 Unit 11: Practice Exam

DNS support is also improved. With NTPv3, if you con gure a hostname to sync with,
your device does a lookup for the hostname and stores the IP address in the
con guration, the hostname is then lost. With NTPv4, the hostname is stored in the
con guration.

In this lesson, I’ll show you how to con gure NTPv4 with a unicast and multicast client.

1. Configuration
This is the topology we’ll use:

https://networklessons.com/cisco/ccnp-encor-350-401/ntpv4 1/5
9/8/2020 NTPv4

Con guration-wise, NTPv4 is pretty much the same thing.

To help speed things up, let’s set the same time and date on all routers before we
con gure NTP:

R1, R2 & R3
#clock set 10:37:00 2 July 2018

I will con gure R1 as an NTP master so that I don’t need an external server:

R1(config)#ntp master 1

1.1. Clients
Let’s con gure our clients. R2 will be an NTP unicast client and for R3 we will use
multicast.

1.1.1. Unicast
We can con gure the IPv6 address of R1 but instead, we’ll use a hostname to test if R2
stores the hostname in its con guration. I’ll create a manual host record for this:

R2(config)#ipv6 host R1 2001:DB8:0:12::1

Now we con gure R1 as the NTP server. The version 4 parameter sets the correct
version:

R2(config)#ntp server R1 version 4

1.1.2. Multicast
To make multicast work, we need to con gure R1 to send NTP multicast packet and R3 to
receive them.

This is the multicast address we will use:

FF05::101

FF05 is the multicast address for the site-local scope.


::101 is the address that IANA has assigned to NTP for IPv6.

Let’s con gure R1 to send NTP multicast packets with this address:

R1(config)#interface FastEthernet 0/1


R1(config-if)#ntp multicast FF05::101 version 4

and R3 to receive multicast NTP packets:

R3(config)#interface FastEthernet 0/0


R3(config-if)#ntp multicast client FF05::101

2. Verification
Let’s verify our work. R1 is synchronized:

https://networklessons.com/cisco/ccnp-encor-350-401/ntpv4 2/5
9/8/2020 NTPv4

R1#show ntp status | include synchronized


Clock is synchronized, stratum 1, reference is .LOCL.

R1 has a stratum of 1 because that’s how I con gured it as a master. Let’s check R2:

R2#show ntp status | include synchronized


Clock is synchronized, stratum 2, reference is 48.49.82.9

R2 is synchronized. So is R3:

R3#show ntp status | include synchronized


Clock is synchronized, stratum 2, reference is 191.117.190.88

All our clocks are synchronized. Let’s take a closer look at the NTP associations:

R1#show ntp associations

address ref clock st when poll reach delay offset


disp
*~127.127.1.1 .LOCL. 0 6 16 377 0.000 0.000
0.245
* sys.peer, # selected, + candidate, - outlyer, x falseticker, ~
configured

Above, we see that R1 uses its own address to synchronize with. Here’s R2:

R2#show ntp associations

address ref clock st when poll reach delay offset


disp
*~2001:DB8:0:12::1
.LOCL. 1 21 64 1 2.573 5.507
7937.5
* sys.peer, # selected, + candidate, - outlyer, x falseticker, ~
configured

R2 uses the IPV6 address of R1 as its NTP server. If you look in the running con guration,
you will see the hostname:

R2#show running-config | include ntp


ntp server R1

Here is R3:

R3#show ntp associations

address ref clock st when poll reach delay offset


disp
* 2001:DB8:0:13::1
.LOCL. 1 22 64 1 0.000 -5.888
7937.5
* sys.peer, # selected, + candidate, - outlyer, x falseticker, ~
configured

https://networklessons.com/cisco/ccnp-encor-350-401/ntpv4 3/5
9/8/2020 NTPv4

R3 doesn’t show the ~ symbol since it receives the NTP packets through multicast. It does
show the IPv6 address of R1 though.

Con gurations

Want to take a look for yourself? Here you will nd the nal con guration of each device.

R1
hostname R1
!
ipv6 cef
!
interface FastEthernet0/0
ipv6 address 2001:DB8:0:12::1/64
!
interface FastEthernet0/1
ipv6 address 2001:DB8:0:13::1/64
ntp multicast FF05::101
!
ntp master 1
!
end

R2
hostname R2
!
ip host R1 2001:DB8:0:12::1
ipv6 cef
!
interface FastEthernet0/0
ipv6 address 2001:DB8:0:12::2/64
!
ntp server R1
!
end

R3
hostname R3
!
ipv6 cef
!
interface FastEthernet0/0
ipv6 address 2001:DB8:0:13::3/64
ntp multicast client FF05::101
!
end

3. Conclusion
You have now learned how to con gure NTPv4 using IPv6 unicast and multicast.

https://networklessons.com/cisco/ccnp-encor-350-401/ntpv4 4/5
9/8/2020 NTPv4

If you want to learn more details about NTPv4, take a look at RFC5905.

I hope you enjoyed this lesson. If you have any questions feel free to leave a comment!

« Previous Lesson
Network Time Protocol (NTP)
Next Lesson
Troubleshooting NTP »
 Tags: NTP

Forum Replies

arindom.nag

Great job Rene…thanks for add this topic in our lesson we will enjoy with this…

Thanks & Regards,


Arindom

wellerk.scott

Cant wait to dive into this lesson once I put my daughter to bed tonight!

arindom.nag

Hi Scott,
Sorry didn’t reply you last day i went to bed at same time Hope you are doing good…

Thanks & Regards,


Arindom

 Ask a question or join the discussion by visiting our Community Forum

© 2013 - 2020 NetworkLessons.com 32729 Disclaimer Privacy Policy Support About

https://networklessons.com/cisco/ccnp-encor-350-401/ntpv4 5/5

You might also like