Skip to contentSkip to conversation

newbie problem

LARTC Daniel Wittenberg 2 participants 2 messages Jan 13, 2002

lore
Share & tools
lore
#0 lore raw

Ok, I've got htb + iproute compiled and going, and tried to run this script, but doesn't seem to work. I've got a 768k DSL that I was going to try and cut ssh (scp) down to 8k for testing, but doesn't seem to do any good...ideas?

#### begin script ####

# Does this flush it?
tc qdisc del dev eth0 root handle 1:0

tc qdisc add dev eth0 root handle 1:0 htb default 99
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 768kbps ceil 768kbps burst 2k
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 8kbps ceil 8kbps burst 2k
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match tcp dst 22 0xffff flowid 1:1

#### end script ####

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

#1 lore raw

Please, kbps = k Bytes per second. You want to use kbit instead probably.

Quoted 18 lines · Daniel Wittenberg

Ok, I've got htb + iproute compiled and going, and tried to run this script, but doesn't seem to work. I've got a 768k DSL that I was going to try and cut ssh (scp) down to 8k for testing, but doesn't seem to do any good...ideas?

#### begin script ####

# Does this flush it?
tc qdisc del dev eth0 root handle 1:0

tc qdisc add dev eth0 root handle 1:0 htb default 99
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 768kbps ceil 768kbps burst 2k
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 8kbps ceil 8kbps burst 2k
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match tcp dst 22 0xffff flowid 1:1

Quoted 8 lines

#### end script ####

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/