Hi Stef, this is the output of tc # tc -s -d class show dev eth1 class htb 1:2 root rate 512Kbit ceil 512Kbit burst 2254b/8 mpu 0b cburst 2254b/8 mpu 0b level 7 Sent 6232181694 bytes 13132747 pkts (dropped 0, overlimits 0) rate 24621bps 60pps lended: 592516 borrowed: 0 giants: 0 tokens: 17264 ctokens: 17264 class htb 1:57 parent 1:2 leaf 57: prio 0 quantum 3276 rate 128Kbit ceil 128Kbit burst 1762b/8 mpu 0b cburst 1762b/8 mpu 0b level 0 Sent 0 bytes 0 pkts (dropped 0, overlimits 0) lended: 0 borrowed: 0 giants: 0 tokens: 88149 ctokens: 88149 class htb 1:30 parent 1:2 leaf 30: prio 0 quantum 11468 rate 448Kbit ceil 512Kbit burst 2172b/8 mpu 0b cburst 2254b/8 mpu 0b level 0 Sent 6232147503 bytes 13132747 pkts (dropped 783, overlimits 0) rate 24405bps 60pps lended: 12540231 borrowed: 592516 giants: 0 tokens: 13875 ctokens: 17264 # tc -s -d filter show dev eth1 filter parent 1: protocol ip pref 100 u32 filter parent 1: protocol ip pref 100 u32 fh 800: ht divisor 1 filter parent 1: protocol ip pref 100 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:30 match c850da00/ffffff00 at 16 filter parent 1: protocol ip pref 100 u32 fh 800::801 order 2049 key ht 800 bkt 0 flowid 1:57 match c850da1a/ffffffff at 16 # tc -s -d qdisc show dev eth1 qdisc sfq 57: quantum 1514b limit 128p flows 128/1024 perturb 10sec Sent 0 bytes 0 pkts (dropped 0, overlimits 0) qdisc sfq 30: quantum 1514b limit 128p flows 128/1024 perturb 10sec Sent 6235399235 bytes 13141249 pkts (dropped 783, overlimits 0) qdisc htb 1: r2q 5 default 30 direct_packets_stat 1 ver 3.12 Sent 6235399289 bytes 13141250 pkts (dropped 783, overlimits 2438143) -----Original Message----- From: Stef Coene <stef.coene@xxxxxxxxx> To: lartc@xxxxxxxxxxxxxxx Date: Sat, 6 Mar 2004 13:15:41 +0100 Subject: Re: Limiting bandwidth to entire LAN > On Thursday 04 March 2004 15:55, Gastón wrote: > > Hi, first of all thanks for all your help. I`m using a bridge and I > want to > > assign the lan (with public routable ips) only 512Kbits (The internet > link > > is 1Mbit). What i thought was creating a class with a ceil of > 512Kbit an > > applying a filter to it with the entire net (1.2.3.0/24). This > approach > > didn´t work for me(the ceil was bypassed). Should I use policing > instead? > Can you check the counters with tc -s -d class dev eth1 to see if the > filters > are working ? > > Stef > > -- > stef.coene@xxxxxxxxx > "Using Linux as bandwidth manager" > http://www.docum.org/ > #lartc @ irc.openprojects.net > _______________________________________________ > LARTC mailing list / LARTC@xxxxxxxxxxxxxxx > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ _______________________________________________ LARTC mailing list / LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/