From mboxrd@z Thu Jan 1 00:00:00 1970 From: Borut Mrak borut.mrak@ijs.si Date: Tue, 06 Feb 2001 15:41:25 +0000 Subject: [LARTC] cbq ip range? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org
On Wed, Feb 07, 2001 at 12:10:53PM -0300, billy wrote:
> What do you meen for "same flowid"?
> and is there a cbq-howto? if it is, where can I find it?

That's my setup:

tc qdisc add dev eth0 root handle 10: cbq bandwidth 100Mbit avpkt 1000

tc class add dev eth0 parent 10:0 classid 10:10 cbq bandwidth 100Mbit \
  rate 512kbit allot 1514 weight 100kbit prio 5 maxburst 1 avpkt 1000 bounded
tc qdisc add dev eth0 parent 10:10 sfq quantum 1514b perturb 15
tc filter add dev eth0 parent 10:0 protocol ip prio 100 u32 match \
  ip src xxx.xxx.2.0/28 flowid 10:10
tc filter add dev eth0 parent 10:0 protocol ip prio 100 u32 match \
  ip src xxx.xxx.1.3 flowid 10:10

here xxx.xxx.1.3 is customers linux router/squid proxy, which also
generates traffic, as do their other addresses (.2.0/28).

flowid = classid, AFAIK.

This works for me. I don't know the correct wording for all this stuff, so
please bare with me ;-]

bye,

-- 
Borut
borut.mrak@ijs.si
-----------------
Booze is the answer.  I don't remember the question.