From mboxrd@z Thu Jan 1 00:00:00 1970 From: Date: Thu, 23 Jan 2003 22:21:58 +0000 Subject: Re: [LARTC] HTB classifying Message-Id: <001001c2c32d$d8abd640$0200a8c0@monster> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Maybe it's my oversight but shoudn't you have "tc qdisc add dev eth0 root handle 1:0 htb" before rest of your instructions ?? > I am trying to shape a client (somewhat advanced). > > This is my target: > Client is 192.168.2.224. I would like to allow him to download with > 500000 bits/sec in general. But, for a specific port(say 22), i would > like him to download with 300000 bit/sec only. The problem is that my > configuration (maybe wrong) allows him to download with 800000 bit/sec. > (500000 generally + 300000 on port 22) > I thought that having classes 1:11 and 1:12 being children of a class > with rate 500000, 500000 would be the maximum... > Can htb to this? Can another queue do this? > > /sbin/tc class add dev eth0 parent 1: classid 1:10 htb rate 500000 > > /sbin/tc class add dev eth0 parent 1:10 classid 1:11 htb rate 300000 > /sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip src 192.168.2.224/32 \ > match ip sport 80 0xffff classid 1:11 > > /sbin/tc class add dev eth0 parent 1:10 classid 1:12 htb rate 500000 > /sbin/tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip src 192.168.2.224/32 classid 1:12 > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/