From: "Morten Kramer" Date: Mon, 22 Mar 2004 20:00:14 +0000 Subject: [LARTC] How to limit the Upload speed for an specific IP? Message-Id: <025801c41048$4a408a90$0100a8c0@rulership> MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0255_01C41050.ABDECCF0" List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0255_01C41050.ABDECCF0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I want to limit the upload speed for the eth0 Interface for an specific = IP. I used the following script, but its only limits the DOWNLOAD speed.But = i want to limit both! DEV=3D'eth0' tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 768kbit tc class add dev $DEV parent 1: classid 1:1 cbq rate 100kbit allot 1500 = prio 5 bounded isolated tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip dst = 192.168.0.2 flowid 1:1 Greetz ------=_NextPart_000_0255_01C41050.ABDECCF0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
I want to limit the upload speed for = the eth0=20 Interface for an specific IP.
 
I used the following script, but its = only limits=20 the DOWNLOAD speed.But i want to limit both!
 
DEV=3D'eth0'
tc qdisc add dev $DEV = root handle 1:=20 cbq avpkt 1000 bandwidth 768kbit
tc class add  dev $DEV parent = 1:=20 classid 1:1 cbq rate 100kbit allot 1500 prio 5 bounded isolated
tc = filter add=20 dev $DEV parent 1: protocol ip prio 16 u32 match ip dst 192.168.0.2 = flowid=20 1:1
 
Greetz
 
 
------=_NextPart_000_0255_01C41050.ABDECCF0-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/