1. Sysctl
sysctl is used to modify kernel parameters at runtime. The parameters available are those listed under /proc/sys/. Procfs is required for
sysctl support in Linux. You can use sysctl to both read and write sysctl data.
2.Manually
Setting values manually in
/proc/sys/
. e.g.
# echo "128" > /proc/sys/net/ipv4/ip_default_ttl
sets the default TTL value from 64 to 128.
3.Keep values on reboot
Hard coding of values which will be set at each system start can be done in
/etc/sysctl.conf