Other Need help in configuring dummynet kernel

Hi,

I was told to set pipe to limit bandwidth so I try to configure the dummynet. Currently my desktop is using FreeBSD 10 and from what I searched , it seems FreeBSD 8.2 and above doesn't need to set up kernel. I tried it but failed. So now I try to set up the kernel by using the following command :
Code:
# cd /usr/src/sys/i386/conf
# cp GENERIC DUMMYNET_BRIDGE
# vi DUMMYNET_BRIDGE
added these lines :

Code:
options IPFIREWALL
options DUMMYNET
options HZ=1000

Then try to compile it but then fatal error occurs. But the error source seems from another file and not the dummynet file I created. Should I move the file to other place? :(

Your help is really appreciated :)
 
Hi, there is no need to recompile kernel for dummynet, you need just load modules kldload ipfw, kldload dummynet or in /boot/loader.conf insert
Code:
ipfw_load="YES"
dummynet_load="YES"
and reboot. Sorry for grammar.
 
If you still want to create a custom kernel you need to change the internal name of the kernel with the ident directive. The best way to do is to include GENERIC and then turn on/off the features you want:

Code:
include GENERIC
ident DUMMYNET_BRIDGE
...

options IPFIREWALL
options DUMMYNET
options HZ=1000

...
 
Back
Top