Hi again I am making all the test and probes i cann´t imagine but i begin to think it´s imposible to limit bandwidth by port. Anybody could put me a code example that makes this please? Thanks and regards David Coello _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
DOWNLINK=220 UPLINK=125 DEV=ppp0 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 borrow up to 9/10) andrea David Coello wrote:> Hi again > > I am making all the test and probes i cann´t imagine but i begin to > think it´s imposible to limit bandwidth by port. Anybody could put me a > code example that makes this please? > > Thanks and regards > David Coello > > > > _______________________________________________ > 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/
On Sat, 2002-12-14 at 03:57, Andrea Rossato wrote:> DOWNLINK=220 > UPLINK=125 > DEV=ppp0 > > 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 > borrow up to 9/10) > andreaAndrea, I have another script (attached) Im just wondering how i could implement the above script into it. Im not the most knowledgable on shaping in general :) thanks -mdew (resent-again)