Set a sysctl parameter
Turn on IP forwarding right now. To keep it after a reboot, also add it to /etc/sysctl.d/.
sysctl -w net.ipv4.ip_forward=1
- tool
- linux133 commands
More linux commands
-
cat /proc/cmdlineShow the parameters passed to the kernel at boot.
-
cat /proc/sys/fs/file-nrShow allocated FDs, free FDs and the system-wide maximum (file-max).
-
iostat -xz 2 5Show extended disk IO stats every 2 seconds, 5 times. Look at %iowait and await.
-
vmstat 1 5Show CPU, memory, swap and IO stats every second, 5 times. The first line is the average since boot.
-
iotop -aoShow total disk reads and writes per process since start (needs root).