How do I temporarily change a kernel parameter/tunable on redhat?
-
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 bootCheck the current value of the kernel parameter you want to change.
$ sudo sysctl -a | grep net.ipv6.conf.eth0.disable_ipv6 net.ipv6.conf.eth0.disable_ipv6 = 0
Make the temporary change.
$ sudo sysctl net.ipv6.conf.eth0.disable_ipv6=1 net.ipv6.conf.eth0.disable_ipv6 = 1
© Lightnetics 2024