untar this to /usr/src
Go to the kernel source directory which contains the configurations.
cd /usr/src/sys/amd64/confCreate a folder named kernel in the home directory of root user i.e. /root.
config -x /root/kernels/MYKERNEL
The above command generates the current configuration of the kernel
Now you can add the options you want to change.
Create a soft link in the /usr/src/sys/amd64/conf named “MYKERNEL” which links to /root/kernels/MYKERNEL file.
ln -s /root/kernels/MYKERNEL
Goto the folder created above.
To build a file which contains all available options, run the following commands.
cd /usr/src/sys/amd64/conf make LINTGoto the main source folder.
cd /usr/srcBuild and Install the new kernel with reference from the file “MYKERNEL”.
make buildkernel KERNCONF=MYKERNEL make installkernel KERNCONF=MYKERNELNow reboot the machine to boot into the new kernel you just created now.
use "uname -a" and "sysctl -a" to check
Enable multi routing table in the kernel: