Tuning Router Buffers
Problem
You want to change your default buffer allocations to improve router efficiency.
Solution
The router maintains two different sets of buffers: public buffers and interface buffers. The router uses these as temporary storage while processing packet data. You can tune the public buffer pools as follows:
Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router1(config)#buffers big initial
Router1(config)#
100
buffers big max-free
Router1(config)#
200
buffers big min-free
Router1(config)#
50
buffers big permanent
Router1(config)#
50
end
Router1#
And you can adjust the interface buffer pools by using a similar set of commands:
Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router1(config)#buffers
Ethernet0
initial
Router1(config)#
200
buffers
Ethernet0
max-free
Router1(config)#
300
buffers
Ethernet0
min-free
Router1(config)#
50
buffers
Ethernet0
permanent
Router1(config)#
50
end
Router1#
Discussion
Before we start this discussion, we need to offer three notes of caution on tuning buffers. First, adjusting your router’s buffers is usually not necessary. Second, a poor set of buffer parameters can cause serious performance problems on your router and for traffic passing through the router. Third, if you do find that you need to adjust these parameters, the necessary adjustments will be unique to your network, and perhaps even to each router, so we unfortunately can only offer general guidance, but ...
Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.