From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrea Rossato Date: Fri, 13 Dec 2002 14:57:29 +0000 Subject: Re: [LARTC] How to limit bandwidth by port? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org DOWNLINK"0 UPLINK=125 DEV=3Dppp0 tc qdisc add dev $DEV root handle 1: htb default 10 tc class add dev $DEV parent 1: classid 1:1 htb rate ${UPLINK}kbit burst 6 tc class add dev $DEV parent 1:1 classid 1:10 htb rate ${UPLINK}kbit \ ceil $[UPLINK}kbit burst 6k prio 1 tc class add dev $DEV parent 1:1 classid 1:20 htb rate $[3*$UPLINK/10]kbit\ ceil $[9*$UPLINK/10]kbit burst 6k prio 2 tc qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10 tc qdisc add dev $DEV parent 1:20 handle 20: sfq perturb 10 tc filter add dev $DEV parent 1:0 protocol ip prio 10 u32 \ match ip dport 8080 0xffff flowid 1:20 traffic to dport 80 will get 3/10 of bandwith (with possibility to=20 borrow up to 9/10) andrea David Coello wrote: > Hi again >=20 > I am making all the test and probes i cann=B4t imagine but i begin to=20 > think it=B4s imposible to limit bandwidth by port. Anybody could put me a= =20 > code example that makes this please? >=20 > Thanks and regards > David Coello >=20 >=20 >=20 > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >=20 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/