Displaying 2 results from an estimated 2 matches for "limitdown".
2004 Aug 13
1
Shaping weirdness
...sier to configure, but I thought i''d get
what the HOWTO says working first, and then investigate alternatives.
I''ve got a machine that sits in front of the network, has the internet
plugged into eth0 and the other side plugged into eth1, and I am doing
the following:
#!/bin/bash
LIMITDOWN=256
LIMITUP=256
DEV=eth0
DEV2=eth1
# clean up qdiscs
tc qdisc del dev $DEV root 2> /dev/null > /dev/null
tc qdisc del dev $DEV2 root 2> /dev/null > /dev/null
# limit up- and downlink
tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc qdisc add dev $DEV2 root hand...
2004 Jul 10
3
limiting doesn''t work
...a download, and
watched the rate. The rate was always about 2000 kbit/s, though I
defined (well, at least I thought so) 768 kbit/s as maximum rate.
Can anyone please look at the script and tell me, what must be corrected
in order for it to work ?
Thanks in advance.
This is the script:
#!/bin/bash
LIMITDOWN=768
LIMITUP=96
DEV=ppp0
# clean up qdiscs
tc qdisc del dev $DEV root 2> /dev/null > /dev/null
# limit up- and downlink for benni
tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 2mbit
tc class add dev $DEV parent 1: classid 1:1 cbq rate ${LIMITDOWN}kbit
allot 1500 prio 5 bounde...