From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?QXJ0xatyYXMgxaBsYWp1cw==?= Date: Tue, 09 Dec 2003 16:15:13 +0000 Subject: Re: [LARTC] Newbie HTB shaping question Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: lartc@vger.kernel.org rajkumars@asianetindia.com wrote: > tc qdisc add dev eth0 root handle 1: htb default 12 > tc class add dev eth0 parent 1: classid 1:1 htb rate 100kbps ceil 100kbps > tc class add dev eth0 parent 1:1 classid 1:10 htb rate 30kbps ceil 100kbps > tc class add dev eth0 parent 1:1 classid 1:11 htb rate 10kbps ceil 100kbps > tc class add dev eth0 parent 1:1 classid 1:12 htb rate 60kbps ceil 100kbps OK > tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.3.90 match ip dport 8080 0xffff flowid 1:10 tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 192.168.3.90 match ip sport 8080 0xffff flowid 1:10 you aren't wgeting file from 8080 port of other machine, do you? look from you pc perspective, not client. > tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src 192.168.3.92 flowid 1:11 > tc qdisc add dev eth0 parent 1:10 handle 20: pfifo limit 5 > tc qdisc add dev eth0 parent 1:11 handle 30: pfifo limit 5 > tc qdisc add dev eth0 parent 1:12 handle 40: sfq perturb 10 OK -- Sincerely, Artūras 'arturaz' Šlajus You can find me at: irc.freenode.org: nick arturaz irc.data.lt: nick arturaz ICQ: 157929934 Jabber: arturaz@akl.lt _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/