How do I temporarily change a redhat kernel parameter/tunable via /proc/sys?
-
Refer to the readme important notes first. README.
Also see:
sysctl(8) - configure kernel parameters at runtime
sysctl.conf(5) - sysctl preload/configuration file
sysctl.d - Configure kernel parameters at bootThe example parameter being changed is net.ipv6.conf.eth0.disable_ipv6
Determine which kernel parameter you want to change in /proc/sys/*
Change the kernel parameter value. Echo the value into the kernel parameter file in
/proc/sys
.# echo 1 > /proc/sys/net/ipv6/conf/eth0/disable_ipv6
Verify the change.
$ cat /proc/sys/net/ipv6/conf/eth0/disable_ipv6 1
© Lightnetics 2024