No ALTQ support in kernel

ftp# pfctl -d

No ALTQ support in kernel
ALTQ related functions disabled
pf disabled

ftp# pfctl -e -f /etc/pf.conf

No ALTQ support in kernel
ALTQ related functions disabled
altq not defined on rl0
altq not defined on rl0
/etc/pf.conf:34: errors in queue definition
pfctl: Syntax error in config file: pf rules not loaded

what happen?

No support for ALTQ in kernel 🙂

How to enable that?

Hmm…. in FreeBSD FAQ 🙂

I’ve set that in previous version, is it because of recent upgrade that I’ve done?

Yes, you can start from examining your kernel :

ftp# uname -v

FreeBSD 6.3-PRERELEASE #0: Wed Jan  2 13:54:29 WIT 2008

[email protected]:/usr/obj/usr/src/sys/GENERIC

ups, GENERIC . latest cvsup to RELENG_6 make that happen 🙂

Ok, time to see the kernel archives :

ftp# cd /usr/src/sys/i386/conf/

ftp# ls

.cvsignore      GENERIC         Makefile        PAE             TITAN
DEFAULTS        GENERIC.hints   NOTES           SMP             XBOX

ftp# tail -f TITAN

#If you Want ALTQ you will also need these

#ALTQ Support
options         ALTQ
options ALTQ_CBQ        # Class Bases Queueing
options ALTQ_RED        # Random Early Drop
options ALTQ_RIO        # RED In/Out
options ALTQ_HFSC       # Hierarchical Packet Scheduler
options ALTQ_CDNR       # Traffic conditioner
options ALTQ_PRIQ       # Priority Queueing

my bad, I have to reconfigure kernel to use TITAN 🙂

ftp# cd /usr/src
ftp# make buildkernel KERNCONF=TITAN
ftp# make installkernel KERNCONF=TITAN

ftp# reboot

sighh….. my bad…my bad.

By the way to enable ALTQ support in kernel add these lines :

#ALTQ Support
options         ALTQ
options ALTQ_CBQ        # Class Bases Queueing
options ALTQ_RED        # Random Early Drop
options ALTQ_RIO        # RED In/Out
options ALTQ_HFSC       # Hierarchical Packet Scheduler
options ALTQ_CDNR       # Traffic conditioner
options ALTQ_PRIQ       # Priority Queueing