How to update ipfrag parameter values in sysctl
Environment
- Red Hat Enterprise Linux (RHEL) 8
- Red Hat Enterprise Linux (RHEL) 9
Issue
- Getting an error
sysctl: setting key "net.ipv4.ipfrag_low_thresh": Invalid argumentwhen updating the ipfrag value in sysctl.conf
Resolution
- Set the high_thresh parameter first, followed by the low_thresh parameter. Here is the example:
vi /etc/sysctl.conf
net.ipv4.ipfrag_high_thresh = 4194304
net.ipv4.ipfrag_low_thresh = 1572864
- To apply the changes:
sysctl -p
The sysctl values are loaded early in boot, to have this pick up on boot, the initramfs needs to be rebuilt:
dracut -vf
Root Cause
- Setting low_thresh before high_thresh will receive this error in
sysctl.conf
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments