Subject: Re: altq
To: Jeff Spies <>
From: Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: current-users
Date: 05/03/2001 20:03:20
On Thu, May 03 2001 at 13:32:55 -0400, Jeff Spies wrote:
> I have been trying to get altq up and running, unforunately with no luck.  I 
> am just trying to use a simple red configuration to limit throughput on 1 
> interface, but altq seems to be unable to link to the altq device.   I did run 
> MAKEDEV all and reboot the machine but I keep getting this when I try to run 
> altqd:
> bash-2.04# altqd -dv   
> ALTQ config file is /etc/altq.conf
> altqd: can't open altq device: Device not configured
> If anyone can point out what I'm doing wrong, I'd appreciate it.
Do you have the neccessary ALTQ options enabled in your kernel?

For your setup you need *at least* the following:

# a pseudo device needed for ALTQ
pseudo-device   altq                    # altq pseudo-device

options         ALTQ            #alternate queueing
options         ALTQ_RED        #random early detection

# And at least one of:
options         ALTQ_CBQ        #class based queueing
options         ALTQ_HFSC       #hierarchical fair service curve
# (depending what you want to use...)

AFAIK ALTQ works only with i386 and (partly) alpha and maybe only with a
subset of the available network interfaces.

This is with 1.5-RELEASE and ALTQ3.0. I don't know of the state of ALTQ in
-current. All I can say is, it doesn't work on NetBSD/sparc.

The complete set of options for ALTQ3.0:

# ALTQ options
options         ALTQ            #alternate queueing
options         ALTQ_CBQ        #class based queueing
options         ALTQ_WFQ        #weighted fair queueing
options         ALTQ_FIFOQ      #fifo queueing
options         ALTQ_RED        #random early detection
#options        ALTQ_FLOWVALVE  #flowvalve for RED (needs RED)
options         ALTQ_RIO        #triple red for diffserv (needs RED)
#options        ALTQ_LOCALQ     #local use
options         ALTQ_HFSC       #hierarchical fair service curve
#options        ALTQ_ECN        #ecn extention to tcp (needs RED)
#options        ALTQ_IPSEC      #check ipsec in IPv4
options         ALTQ_CDNR       #diffserv traffic conditioner
#options        ALTQ_BLUE       #blue by wu-chang feng
options         ALTQ_PRIQ       #priority queue
#options        ALTQ_NOPCC      #don't use processor cycle counter
#options        ALTQ_DEBUG      #for debugging

 (the usually unneeded options commented out)

Dies ist Thilos Unix Signature! Viel Spass damit.