Previous section   Next section

Recipe 14.13 Limiting the Number of Peers

14.13.1 Problem

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

14.13.2 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# 

14.13.3 Discussion

To prevent NTP associations from using too many valuable resources, 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 recipe example permits the first 30 NTP associations, regardless of where they came from.

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

14.13.4 See Also

Recipe 14.14


  Previous section   Next section
Top