From: "Esteban" <listas@dejawu.com.ar>
To: lartc@vger.kernel.org
Subject: [LARTC] prio + htb?
Date: Sun, 13 Jul 2003 20:18:34 +0000 [thread overview]
Message-ID: <marc-lartc-105812758613755@msgid-missing> (raw)
Stef, Lartc people,
Hello, im using the above script for my network It works okay, the htb
assigns the BW i want for outgoing traffic. But now, im looking foward
giving priority to the packets on the first class under the second, i mean
the first class packets leave the interface first than the second class. How
do i apply that without loosing my conf?
Well, thank you all for the help!
Esteban
tc qdisc add dev $DEV root handle 1: htb default 20
tc class add dev $DEV parent 1: classid 1:1 htb rate 1024kbit burst 6k
tc class add dev $DEV parent 1:1 classid 1:10 htb rate 600kbit ceil 600kbit
prio 1
tc class add dev $DEV parent 1:1 classid 1:20 htb rate 400kbit ceil 400kbit
prio 2
tc class add dev $DEV parent 1:1 classid 1:30 htb rate 74kbit ceil 110kbit
prio 3
tc qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev $DEV parent 1:20 handle 20: sfq perturb 10
tc qdisc add dev $DEV parent 1:30 handle 30: sfq perturb 10
# TOS Minimum Delay (ssh, NOT scp) in 1:10:
tc filter add dev $DEV parent 1:0 protocol ip prio 2 u32 match ip tos 0x10
0xff flowid 1:10
tc filter add dev $DEV parent 1:0 protocol ip prio 2 u32 match ip protocol 1
0xff flowid 1:10
tc filter add dev $DEV parent 1: protocol ip prio 2 u32 match ip protocol 6
0xff match u8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 2 match u8 0x10 0xff
at 33 flowid 1:10
# icmp
tc filter add dev $DEV parent 1:0 protocol ip prio 2 u32 match ip protocol 1
0xff flowid 1:10
# IMPORTANT AND FAST! ALWAYS! (all related to web browsing)
tc filter add dev $DEV parent 1:0 protocol ip prio 2 u32 match ip dport 80
0xffff flowid 1:10
tc filter add dev $DEV parent 1:0 protocol ip prio 2 u32 match ip sport 80
0xffff flowid 1:10
tc filter add dev $DEV parent 1:0 protocol ip prio 2 u32 match ip dport 8080
0xffff flowid 1:10
tc filter add dev $DEV parent 1:0 protocol ip prio 2 u32 match ip sport 8080
0xffff flowid 1:10
tc filter add dev $DEV parent 1:0 protocol ip prio 2 u32 match ip dport 443
0xffff flowid 1:10
tc filter add dev $DEV parent 1:0 protocol ip prio 2 u32 match ip sport 443
0xffff flowid 1:10
tc filter add dev $DEV parent 1:0 protocol ip prio 2 u32 match ip dport 1863
0xffff flowid 1:10
tc filter add dev $DEV parent 1:0 protocol ip prio 2 u32 match ip sport 22
0xffff flowid 1:10
tc filter add dev $DEV parent 1:0 protocol ip prio 2 u32 match ip dport 22
0xffff flowid 1:10
tc filter add dev $DEV parent 1:0 protocol ip prio 2 u32 match ip dport 53
0xffff flowid 1:10
tc filter add dev $DEV parent 1:0 protocol ip prio 2 u32 match ip sport 53
0xffff flowid 1:10
tc filter add dev $DEV parent 1:0 protocol ip prio 2 u32 match ip sport 259
0xffff flowid 1:10
tc filter add dev $DEV parent 1:0 protocol ip prio 2 u32 match ip dport 259
0xffff flowid 1:10
# el pop a la clase 20
tc filter add dev $DEV parent 1:0 protocol ip prio 2 u32 match ip sport 110
0xffff flowid 1:20
tc filter add dev $DEV parent 1:0 protocol ip prio 2 u32 match ip dport 110
0xffff flowid 1:20
tc filter add dev $DEV parent 1: protocol ip prio 18 u32 match ip dst
0.0.0.0/0 flowid 1:20
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next reply other threads:[~2003-07-13 20:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-13 20:18 Esteban [this message]
2003-07-17 20:12 ` [LARTC] prio + htb? Stef Coene
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-105812758613755@msgid-missing \
--to=listas@dejawu.com.ar \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox