How to reboot automatically after kernel panic

There are cases where you encounter kernel panic. Kernel panic may occur while you are playing with some experimental kernel module that someone else wrote, or developing a custom kernel module yourself. Kernel panic can happen due to hardware failure as well. If you would like to reboot your system automatically after kernel panic has […]
Continue reading…

 

How to reload sysctl.conf

Linux provides a sysctl interface for checking and modifying kernel parameters which are listed under /proc/sys directory. You can persistently set or change those kernel parameters via /etc/sysctl.conf. If you have modified /etc/sysctl.conf, and want to activate the change in the kernel without rebooting, you need to do the following. On FreeBSD: $ sudo /etc/rc.d/sysctl […]
Continue reading…

 

How to enable IP forwarding in Linux

To check whether IP forwarding is enabled or not, you can run the following command. The output “1” means that IP forwarding is enabled, and “0” means that it’s not. $ cat /proc/sys/net/ipv4/ip_forward If you want to enable IP forwarding on the fly, you can use sysctl command as follows. IP forwarding will be activated […]
Continue reading…