From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?Jos=E9?= Carlos =?iso-8859-1?Q?Ram=EDrez=20P=E9rez?= List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org You're missing queue disciplines for leaf classes. You should add: tc qdisc add dev eth0 parent 10:100 tbf rate 1100Kbit \ buffer 10Kb/8 limit 15Kb tc qdisc add dev eth0 parent 10:10 tbf rate 900Kbit \ buffer 10Kb/8 limit 15Kb And you should set weight values to rate/10 approx. on all classes. Maybe you should try cbq.init script from Pavel Golubev (you'll find the ftp site address in the HOWTO). --=20 Jos=E9 Carlos Ram=EDrez P=E9rez =C1rea de Internet y Telecomunicaciones mailto:JoseCarlos.Ramirez@isotrol.com ___________________________________________________ ISOTROL S.A. Avda. de la innovaci=F3n n=BA 1, 3=AA plta, 41020 Sevilla Tel.: 955 036 800 - Fax: 955 036 849 web: http://www.isotrol.com/ Antonio Paulo Salgado Forster wrote: >=20 > Hello, >=20 > Could someone help me on this? I have the following configuration on > on gateway: >=20 > 900Kbit/s for fw mark 2 (all traffic, except...) bounded > 1100Kbit/s for fw mark 1 (mail and dns) bounded >=20 > But I can see the I have almost no traffic on fw mark 2, even though > the traffic on the output wan link is getting almost to 2Mbit/s. >=20 > This is the configuration: >=20 > /usr/local/sbin/tc qdisc add dev eth0 root handle 10: cbq bandwidth 2Mbit > avpkt 1000 > /usr/local/sbin/tc class add dev eth0 parent 10:0 classid 10:1 cbq > bandwidth 2Mbit rate 2Mbit allot 1518 weight 50Kbit prio 8 maxburst 20 > avpkt 1000 > /usr/local/sbin/tc class add dev eth0 parent 10:1 classid 10:100 cbq > bandwidth 2Mbit rate 1100Kbit allot 1518 weight 50Kbit prio 5 maxburst 20 > avpkt 1000 bounded > /usr/local/sbin/tc class add dev eth0 parent 10:1 classid 10:10 cbq > bandwidth 2Mbit rate 900Kbit allot 1518 weight 50Kbit prio 5 maxburst 20 > avpkt 1000 bounded > /usr/local/sbin/tc filter add dev eth0 protocol ip parent 10:0 prio 100 > handle 1 fw flowid 10:100 > /usr/local/sbin/tc filter add dev eth0 protocol ip parent 10:0 prio 10 > handle 2 fw flowid 10:10 >=20 > Am I missing something here? >=20 > I would appreciate any help. Thanks! >=20 > Forster >=20 > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Ro= uting/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Rout= ing/