* [LARTC] no default leaf on HTB
@ 2003-03-24 9:06 Paul P. Pongco
0 siblings, 0 replies; only message in thread
From: Paul P. Pongco @ 2003-03-24 9:06 UTC (permalink / raw)
To: lartc
Hello,
I have a linux bridge setup and am using HTB to bandwidth manage traffic
passing through the bridge.
I want to manage "some" of the traffic passing through the bridge. I
figured I can do this if I dont define a "default" class on the qdisc.
I will only config classes for traffic I want to manage.
Assume that i Have traffic for network 10.0.0.0/24 passing through the
bridge.
I only want to manage traffic for network 10.0.0.0/29 and 10.0.0.8/29 and
not manage the rest of the traffic for the /24
Here is my script:
###START OF SCRIPT###
#create the qdisc
tc qdisc add dev eth1 root handle 1: htb default 30
tc class add dev eth1 parent 1: classid 1:1 htb rate 608kbit ceil 608kbit prio 1
#create class for 10.0.0.0/29
tc class add dev eth1 parent 1:1 classid 1:10 htb rate 256kbit ceil \
608kbit prio 3
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip \
dst 10.0.0.0/29 flowid 1:10
tc qdisc add dev eth1 parent 1:10 handle 10: sfq perturb 10
#create class for 10.0.0.8/29
tc class add dev eth1 parent 1:1 classid 1:20 htb rate 352kbit ceil \
608kbit prio 3
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip \
dst 10.0.0.8/29 flowid 1:20
tc qdisc add dev eth1 parent 1:20 handle 20: sfq perturb 10
##Default class is commented
#Create default class
#$CLASS 1:30 htb rate 300kbit ceil 300kbit prio 1
#$QUEUE 1:30 handle 30: sfq perturb 10
##END of SCRIPT##
Ran the script with no errors. Will i be able to achieve setup that I
want? How will htb traffic no being classified since there is no default
class?
Thanks.
Paul P.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-24 9:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-24 9:06 [LARTC] no default leaf on HTB Paul P. Pongco
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.