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

Router Configuration and File Management

Router Management

User Access and Privilege Levels

TACACS+

IP Routing

RIP

EIGRP

OSPF

BGP

Frame Relay

Handling Queuing and Congestion

Tunnels and VPNs

Dial Backup

NTP and Time

DLSw

Router Interfaces and Media

Simple Network Management Protocol

Logging

Access-Lists

DHCP

NAT

First Hop Redundancy Protocols

IP Multicast

IP Mobility

IPv6

MPLS

Security

Appendix 1. External Software Packages

Appendix 2. IP Precedence, TOS, and DSCP Classifications

Index



Cisco IOS Cookbook
Cisco IOS Cookbook (Cookbooks (OReilly))
ISBN: 0596527225
EAN: 2147483647
Year: 2004
Pages: 505

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net