Setting SNMP Packet Size


You want to change the default SNMP packet size.


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



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.

Cisco IOS Cookbook
Cisco IOS Cookbook (Cookbooks (OReilly))
ISBN: 0596527225
EAN: 2147483647
Year: 2004
Pages: 505
Simiral book on Amazon © 2008-2017.
If you may any questions please contact us: