Skip to contentSkip to conversation

dont get prios

LARTC Esteban Ribicic 2 participants 2 messages Jan 3, 2003

lore
Share & tools
lore
#0 lore raw

im trying to understan qdisc && classes..i founded this example in docum.org..

some things i dont get..how do i say wich kind of traffic goes to classid 1:10/1:11/1:12 ? based on what? ip? tos? what?

tc qdisc add $DEV root handle 1: htb default 10
tc class add dev eth0 parent 1: classid 1:1 htb rate 100kbps ceil 100kbps burst 2k
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 30kbps ceil 100kbps burst 2k prio 0
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 10kbps ceil 100kbps burst 2k prio 1
tc class add dev eth0 parent 1:1 classid 1:12 htb rate 60kbps ceil 100kbps burst 2k

thanks in advance
Esteban.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

Esteban,

You will want to learn about "tc filter". This is the method you use to classify traffic.

Read about "tc filter" at lartc.org.

http://lartc.org/howto/lartc.qdisc.filters.html

Try this first:

http://lartc.org/howto/lartc.qdisc.filters.html#LARTC.FILTERING.SIMPLE

And if you want to try something fancy:

http://lartc.org/howto/lartc.adv-filter.html

-Martin

: im trying to understan qdisc && classes..i founded this example in : docum.org..
:
: some things i dont get..how do i say wich kind of traffic goes to : classid 1:10/1:11/1:12 ? based on what? ip? tos? what?
:
: tc qdisc add $DEV root handle 1: htb default 10
: tc class add dev eth0 parent 1: classid 1:1 htb rate 100kbps ceil : 100kbps burst 2k
: tc class add dev eth0 parent 1:1 classid 1:10 htb rate 30kbps ceil : 100kbps burst 2k prio 0
: tc class add dev eth0 parent 1:1 classid 1:11 htb rate 10kbps ceil : 100kbps burst 2k prio 1
: tc class add dev eth0 parent 1:1 classid 1:12 htb rate 60kbps ceil : 100kbps burst 2k
:
: thanks in advance
: Esteban.
:
: _______________________________________________
: LARTC mailing list / [email protected]
: http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
:

Signature · 5 lines
Martin A. Brown --- SecurePipe, Inc. --- [email protected]

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/