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

Setting SNMP Packet Size

Problem

You want to change the default SNMP packet size.

Solution

The following configuration command adjusts the default packet size for all SNMP packets leaving the router:

Router#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#snmp-server packetsize 1480
Router(config)#end
Router#

Discussion

By default, Cisco routers limit their SNMP packet size to 1,500 bytes. It is usually not necessary to change this parameter. However, it may be useful to reduce it if your network has an MTU of less than 1,500 bytes to prevent unnecessary fragmentation.

Conversely, if your network media can accepts a larger MTU than 1,500 bytes, then increasing your SNMP packet size can improve performance, particularly when transferring large MIB tables.

Note that adjusting the maximum SNMP packet size will affect all types of SNMP packets, including responses to SNMP get or set requests, as well as SNMP traps and SNMP informs. You can set the SNMP packet size to any integer between 484 and 8,192 bytes.

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