Using NTP to Send Periodic Multicast Time Updates
Problem
You want to set up your router to use the NTP multicast mode so that devices do not need to query periodically for the time.
Solution
Use the ntp multicast interface command to enable server-side NTP multicast packets:
Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router1(config)#clock timezone
Router1(config)#
EST -5
clock summer-time
EDT
recurring
Router1(config)#ntp server
Router1(config)#
172.25.1.1
ntp server
Router1(config)#
172.25.1.3
interface
Router1(config-if)#
FastEthernet 0/0
ntp multicast
224.0.1.1
ttl
Router1(config-if)#
1
end
Router1#
To enable NTP multicast client functionality on the router, use the following commands:
Router2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router2(config)#clock timezone
Router2(config)#
EST -5
clock summer-time
EDT
recurring
Router2(config)#interface
Router2(config-if)#
Ethernet0
ntp multicast client
Router2(config-if)#
224.0.1.1
ntp multicast version
3
Router2(config-if)#end
Router2#
NTP multicast support is available starting in IOS Version 12.1.
Discussion
On the surface, the ability to forward NTP broadcast packets and
NTP Multicast packets on a LAN interface appear similar. However,
there are some important differences. First, NTP sends broadcast
packets to the 255.255.255.255
local broadcast address. This means that every device on the network must examine the NTP packet. If there are devices on the network ...
Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.