* [LARTC] htb+tc. traffic shape problem. i am shaping to 128kbps but i can
@ 2002-03-22 12:56 George Tsuladze
2002-03-22 13:59 ` [LARTC] htb+tc. traffic shape problem. i am shaping to 128kbps Martin Devera
0 siblings, 1 reply; 2+ messages in thread
From: George Tsuladze @ 2002-03-22 12:56 UTC (permalink / raw)
To: lartc
I have 2 net cards in my router. eth1 and eth0. eth0 is internal eth1 is
external (connected to internet).
tc qdisc del dev eth0 root
tc qdisc del dev eth1 root
#eht0
tc qdisc add dev eth0 root handle 1: htb default 10
tc class add dev eth0 parent 1: classid 1:1 htb rate 128kbps ceil
128kbps burst 2k
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 128kbps ceil
128kbps burst 2k
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 1kbps ceil
128kbps burst 2k
tc filter add dev eth0 parent 1: protocol ip prio 3 handle 2 fw classid 1:10
tc filter add dev eth0 parent 1: protocol ip prio 3 handle 1 fw classid 1:11
#eth1
tc qdisc add dev eth1 root handle 1: htb default 10
tc class add dev eth1 parent 1: classid 1:1 htb rate 128kbps ceil
128kbps burst 2k
tc class add dev eth1 parent 1:1 classid 1:10 htb rate 128kbps ceil
128kbps burst 2k
tc class add dev eth1 parent 1:1 classid 1:11 htb rate 1kbps ceil
128kbps burst 2k
tc filter add dev eth1 parent 1: protocol ip prio 3 handle 4 fw classid 1:10
tc filter add dev eth1 parent 1: protocol ip prio 3 handle 3 fw classid 1:11
#iptables output
iptables -F -t mangle
#staff ips
iptables -A OUTPUT -t mangle -p tcp -d 200.200.200.1 -j MARK --set-mark 1
#priorized ip-s
iptables -A OUTPUT -t mangle -p tcp -d 200.200.200.2 -j MARK --set-mark 2
#iptables prerouting
#staff ip-s
iptables -A PREROUTING -t mangle -s 200.200.200.1 -j MARK --set-mark 3
#priorized ip-s
iptables -A PREROUTING -t mangle -s 200.200.200.2 -j MARK --set-mark 4
this is my skript.
in 128 kbps i can download maxiimum with 15-1, but i am download with
100 and more. why?
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] htb+tc. traffic shape problem. i am shaping to 128kbps
2002-03-22 12:56 [LARTC] htb+tc. traffic shape problem. i am shaping to 128kbps but i can George Tsuladze
@ 2002-03-22 13:59 ` Martin Devera
0 siblings, 0 replies; 2+ messages in thread
From: Martin Devera @ 2002-03-22 13:59 UTC (permalink / raw)
To: lartc
are you sure with kbps ? didn't you want to use kbit ?
devik
> tc class add dev eth0 parent 1: classid 1:1 htb rate 128kbps ceil
> 128kbps burst 2k
>
> in 128 kbps i can download maxiimum with 15-1, but i am download with
> 100 and more. why?
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-03-22 13:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-22 12:56 [LARTC] htb+tc. traffic shape problem. i am shaping to 128kbps but i can George Tsuladze
2002-03-22 13:59 ` [LARTC] htb+tc. traffic shape problem. i am shaping to 128kbps Martin Devera
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.