Hi Ismail, Try something like: # Setup the root HTB qdisc and it's child class. Traffic defaults to child number 4 (1:4) tc qdisc add dev eth0 root handle 1:0 htb default 4 tc class add dev eth0 parent 1:0 classid 1:1 htb rate 100kbit ceil 100kbit # Create the first queue (HTTP), limited to 30kbit/sec tc class add dev eth0 parent 1:1 classid 1:2 htb rate 30kbit ceil 30kbit tc qdisc add dev eth0 parent 1:2 handle 12:0 pfifo # Create the second queue (FTP), limited to 60kbit/sec tc class add dev eth0 parent 1:1 classid 1:3 htb rate 60kbit ceil 60kbit tc qdisc add dev eth0 parent 1:3 handle 13:0 pfifo # Create the third (default) queue, limited to 10kbit/sec tc class add dev eth0 parent 1:1 classid 1:4 htb rate 10kbit ceil 10kbit tc qdisc add dev eth0 parent 1:4 handle 14:0 pfifo # Create rules at the root to put HTTP and FTP traffic into the # correct queue tc filter add dev eth0 parent 1:0 u32 match tcp sport 80 0xffff flowid 1:2 tc filter add dev eth0 parent 1:0 u32 match tcp sport 443 0xffff flowid 1:2 tc filter add dev eth0 parent 1:0 u32 match tcp sport 21 0xffff flowid 1:3 tc filter add dev eth0 parent 1:0 u32 match tcp sport 20 0xffff flowid 1:3 If I've done something wrong here, please can someone point it out? I hope this helps, Mark Lidstone IT and Network Support Administrator BMT SeaTech Ltd Grove House, Meridians Cross, 7 Ocean Way Ocean Village, Southampton. SO14 3TJ. UK Tel: +44 (0)23 8063 5122 Fax: +44 (0)23 8063 5144 E-Mail: mailto:mark.lidstone@xxxxxxxxxxxxxxxx Website: www.bmtseatech.co.uk ======================================================================== == Confidentiality Notice and Disclaimer: The contents of this e-mail and any attachments are intended only for the use of the e-mail addressee(s) shown. If you are not that person, or one of those persons, you are not allowed to take any action based upon it or to copy it, forward, distribute or disclose the contents of it and you should please delete it from your system. BMT SeaTech Limited does not accept liability for any errors or omissions in the context of this e-mail or its attachments which arise as a result of Internet transmission, nor accept liability for statements which are those of the author and not clearly made on behalf of BMT SeaTech Limited. ======================================================================== == -----Original Message----- From: lartc-bounces@xxxxxxxxxxxxxxx [mailto:lartc-bounces@xxxxxxxxxxxxxxx] On Behalf Of Ismail Fahmi Sent: 07 December 2005 18:50 To: lartc@xxxxxxxxxxxxxxx Subject: can the htb applied to http/ftp server not in the router??? can someone help me?? ------------------------- | server (http & ftp) | ------> 1.2.3.4 ------------------------- | | | -----> 10/100 MB LAN | | | ---------- | client | -----> 1.2.3.5 ---------- i want the client download file from http server with maximum rate is 30 kbps and download from ftp server with max rate is 60 kbps other use 10 kbps (total is 100 kbps), qos is set in the server... i want use htb tools that i have installed (linux kernel 2.4.20-8) i had read htb manual, but when i tried to download from client, the rate always 7mbps ( whereas i put ceil 100kbps at the root class ), i want to ask, can htb/lartc applied in the server not in the router??? if can, please someone post a tc command for a problem above!! thank you regards -fals- _______________________________________________ LARTC mailing list LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc _______________________________________________ LARTC mailing list LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc