Skip to Main Content
Cisco IOS Cookbook, 2nd Edition
book

Cisco IOS Cookbook, 2nd Edition

by Kevin Dooley, Ian Brown
December 2006
Intermediate to advanced content levelIntermediate to advanced
1188 pages
72h 8m
English
O'Reilly Media, Inc.
Content preview from Cisco IOS Cookbook, 2nd Edition

Limiting the Number of Peers

Problem

You want to limit the number of NTP peers the router will accept.

Solution

Use the ntp max-associations configuration command to limit the number of NTP associations the router will accept:

Router#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#ntp max-associations 30
Router(config)#end
Router#

Discussion

To prevent oversubscribing valuable router resources by NTP associations, Cisco provides the ability to limit the number of associations that a router will accept. While the ntp max-associations command limits the number of inbound NTP associations, it does so without prejudice. The first 30 NTP associations, using the example above, will be permitted regardless of whom they are.

Other methods of controlling NTP associations mentioned in this chapter provide greater control and granularity than just limiting the number.

See Also

Recipe 14.14

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning the Cisco Application-Centric Infrastructure (ACI)

Learning the Cisco Application-Centric Infrastructure (ACI)

Rene Cardona

Publisher Resources

ISBN: 0596527225Supplemental ContentErrata Page