HTB and metro+int. limits part2
I forgot to say that I have put my script on
http://retea.hostingcenter.ro/htb.txt
Maybe someone could lead to to the correct sintax if there's something wrong.
Alex
----- Original Message -----
From: "Stef Coene" <[email protected]>
To: "Alex" <[email protected]>; "Lartc" <[email protected]>; <[email protected]>
Sent: Wednesday, October 01, 2003 12:59 PM
Subject: Re: [LARTC] Re: HTB and metro+int. limits
Quoted 2 lines · Alex
Quoted 1 line
Thanks for your replay, it really helps, but to take the question
further,
Quoted 1 line
Quoted 1 line
from what you have seen in my sample script, how should I classify
packets
Quoted 1 line
Quoted 1 line
with "tc" ? I don't know how to put them in separate classes,. What I
have
Quoted 1 line
Quoted 1 line
in my script will only shape metro traffic, but for international how
would
Quoted 5 lines
Quoted 5 lines
the "tc" command be?
Something like:/sbin/tcclass add dev eth2 parent 1:2 classid 2:11 htb rate 50kbit ceil 100kbit prio 5/sbin/tcfilter add dev eth2 parent 1:0 protocol ip prio 5 u32 match ip
dst
Quoted 3 lines
Quoted 2 lines
192.168.254.10 flowid 1:11
Would this be the correct commands?No. You create a class with a wrong number. If the parent class is 1:x,
the
Quoted 11 lines
class name has to be 1:y.
Quoted 9 lines
Thanks again.
Alex
---begin my script----
sbin/tc qdisc add dev eth2 root handle 1: htb default 10/sbin/tcclass add dev eth2 parent 1: classid 1:1 htb rate 10M #metro/sbin/tcclass add dev eth2 parent 1:1 classid 1:10 htb rate 10M/sbin/tcfilter add dev eth2 protocol ip parent 1:10 prio 3 handle 6
flowid
Quoted 2 lines
Quoted 1 line
1:10
This filter will not do much (typo?). You attach it to class 1:10 (the
parent
Quoted 4 lines
parameter). This should be 1: so all packets leaving eth2 will be checked against this filter.
And is 10M working? Normally 10mbit is used.
Quoted 11 lines
Stef
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/