* Re: [LARTC] help, i want 10 mbps to my router
1980-01-03 23:27 [LARTC] help, i want 10 mbps to my router Stef Coene
@ 1980-01-04 22:01 ` Stef Coene
1980-01-05 16:00 ` Stef Coene
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Stef Coene @ 1980-01-04 22:01 UTC (permalink / raw)
To: lartc
> what do u mean in "woth"
I mean with :)
> and how can i recognize internet traffic? by iptables? and how can i
> release it?
You can recognise local traffic (I hope you know the ip-addresses in the LAN)
by ip-address, so all other traffic is internet traffic.
Stef
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] help, i want 10 mbps to my router
1980-01-03 23:27 [LARTC] help, i want 10 mbps to my router Stef Coene
1980-01-04 22:01 ` Stef Coene
@ 1980-01-05 16:00 ` Stef Coene
1980-01-05 16:14 ` Stef Coene
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Stef Coene @ 1980-01-05 16:00 UTC (permalink / raw)
To: lartc
> gio: i have to use iptables?
Or 2 u32 filters : first filter matches local traffic, second filter matches
all traffic. The second filter will never be used for the local traffic.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] help, i want 10 mbps to my router
1980-01-03 23:27 [LARTC] help, i want 10 mbps to my router Stef Coene
1980-01-04 22:01 ` Stef Coene
1980-01-05 16:00 ` Stef Coene
@ 1980-01-05 16:14 ` Stef Coene
2002-03-30 15:06 ` George Tsuladze
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Stef Coene @ 1980-01-05 16:14 UTC (permalink / raw)
To: lartc
On Monday 01 April 2002 07:58, George Tsuladze wrote:
> Martin Devera wrote:
> >yes .. and btw be aware what Eth you have. you want
> >10mbps = 100mbit so that you have 100BaseT eth, am I right ?
>
> No 10BaseT :) not 10mbps 10 mbit
Then use 10mbit (bit/s ) and not 10mbps (byte/s)
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread* [LARTC] help, i want 10 mbps to my router
1980-01-03 23:27 [LARTC] help, i want 10 mbps to my router Stef Coene
` (2 preceding siblings ...)
1980-01-05 16:14 ` Stef Coene
@ 2002-03-30 15:06 ` George Tsuladze
2002-03-30 16:37 ` George Tsuladze
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: George Tsuladze @ 2002-03-30 15:06 UTC (permalink / raw)
To: lartc
Here is my script, as u see i have only 512 kbps to my router. but i
want to have LAN speed 10mbps. How can i do it,shape internet and have
LAN speed?
########################
tc qdisc del dev eth0 root
tc qdisc del dev eth1 root
#eht0 rules
tc qdisc add dev eth0 root handle 1: htb default 11
#shape interface eth0
tc class add dev eth0 parent 1: classid 1:1 htb rate 500kbit ceil
512kbit burst 2k
tc class add dev eth0 parent 1:1 classid 1:2 htb rate 12kbit ceil
512kbit burst 2k
#voip class
tc class add dev eth0 parent 1:1 classid 1:12 htb rate 100kbit ceil
512kbit burst 2k
tc class add dev eth0 parent 1:1 classid 1:14 htb rate 100kbit ceil
512kbit burst 2k
tc class add dev eth0 parent 1:1 classid 1:16 htb rate 100kbit ceil
512kbit burst 2k
tc class add dev eth0 parent 1:1 classid 1:18 htb rate 100kbit ceil
512kbit burst 2k
tc class add dev eth0 parent 1:1 classid 1:20 htb rate 100kbit ceil
512kbit burst 2k
#staff class
tc class add dev eth0 parent 1:2 classid 1:11 htb rate 4kbit ceil
512kbit burst 2k
tc class add dev eth0 parent 1:2 classid 1:13 htb rate 4kbit ceil
512kbit burst 2k
tc class add dev eth0 parent 1:2 classid 1:15 htb rate 4kbit ceil
512kbit burst 2k
tc class add dev eth0 parent 1:2 classid 1:17 htb rate 4kbit ceil
512kbit burst 2k
#mark voip class
tc filter add dev eth0 parent 1: protocol ip prio 3 handle 2 fw classid 1:12
tc filter add dev eth0 parent 1: protocol ip prio 3 handle 4 fw classid 1:14
tc filter add dev eth0 parent 1: protocol ip prio 3 handle 6 fw classid 1:16
tc filter add dev eth0 parent 1: protocol ip prio 3 handle 8 fw classid 1:18
tc filter add dev eth0 parent 1: protocol ip prio 3 handle 10 fw classid
1:20
#mark staff class
tc filter add dev eth0 parent 1: protocol ip prio 3 handle 1 fw classid 1:11
tc filter add dev eth0 parent 1: protocol ip prio 3 handle 3 fw classid 1:13
tc filter add dev eth0 parent 1: protocol ip prio 3 handle 5 fw classid 1:15
tc filter add dev eth0 parent 1: protocol ip prio 3 handle 7 fw classid 1:17
#add qdisc discipline voip
tc qdisc add dev eth0 parent 1:12 handle 32: sfq perturb 10
tc qdisc add dev eth0 parent 1:14 handle 34: sfq perturb 10
tc qdisc add dev eth0 parent 1:16 handle 36: sfq perturb 10
tc qdisc add dev eth0 parent 1:18 handle 38: sfq perturb 10
tc qdisc add dev eth0 parent 1:20 handle 40: sfq perturb 10
#add qdisc discipline staff
tc qdisc add dev eth0 parent 1:11 handle 41: sfq perturb 10
tc qdisc add dev eth0 parent 1:13 handle 43: sfq perturb 10
tc qdisc add dev eth0 parent 1:15 handle 45: sfq perturb 10
tc qdisc add dev eth0 parent 1:17 handle 47: sfq perturb 10
###################################################################################
#eht1 rules
tc qdisc add dev eth1 root handle 1: htb default 11
#shape interface eth1
tc class add dev eth1 parent 1: classid 1:1 htb rate 500kbit ceil
512kbit burst 2k
tc class add dev eth1 parent 1:1 classid 1:2 htb rate 12kbit ceil
512kbit burst 2k
#voip class
tc class add dev eth1 parent 1:1 classid 1:12 htb rate 100kbit ceil
512kbit burst 2k
tc class add dev eth1 parent 1:1 classid 1:14 htb rate 100kbit ceil
512kbit burst 2k
tc class add dev eth1 parent 1:1 classid 1:16 htb rate 100kbit ceil
512kbit burst 2k
tc class add dev eth1 parent 1:1 classid 1:18 htb rate 100kbit ceil
512kbit burst 2k
tc class add dev eth1 parent 1:1 classid 1:20 htb rate 100kbit ceil
512kbit burst 2k
#staff class
tc class add dev eth1 parent 1:2 classid 1:11 htb rate 4kbit ceil
512kbit burst 2k
tc class add dev eth1 parent 1:2 classid 1:13 htb rate 4kbit ceil
512kbit burst 2k
tc class add dev eth1 parent 1:2 classid 1:15 htb rate 4kbit ceil
512kbit burst 2k
tc class add dev eth1 parent 1:2 classid 1:17 htb rate 4kbit ceil
512kbit burst 2k
#mark voip class
tc filter add dev eth1 parent 1: protocol ip prio 3 handle 2 fw classid 1:12
tc filter add dev eth1 parent 1: protocol ip prio 3 handle 4 fw classid 1:14
tc filter add dev eth1 parent 1: protocol ip prio 3 handle 6 fw classid 1:16
tc filter add dev eth1 parent 1: protocol ip prio 3 handle 8 fw classid 1:18
tc filter add dev eth1 parent 1: protocol ip prio 3 handle 10 fw classid
1:20
#mark staff class
tc filter add dev eth1 parent 1: protocol ip prio 3 handle 1 fw classid 1:11
tc filter add dev eth1 parent 1: protocol ip prio 3 handle 3 fw classid 1:13
tc filter add dev eth1 parent 1: protocol ip prio 3 handle 5 fw classid 1:15
tc filter add dev eth1 parent 1: protocol ip prio 3 handle 7 fw classid 1:17
#add qdisc discipline voip
tc qdisc add dev eth1 parent 1:12 handle 32: sfq perturb 10
tc qdisc add dev eth1 parent 1:14 handle 34: sfq perturb 10
tc qdisc add dev eth1 parent 1:16 handle 36: sfq perturb 10
tc qdisc add dev eth1 parent 1:18 handle 38: sfq perturb 10
tc qdisc add dev eth1 parent 1:20 handle 40: sfq perturb 10
#add qdisc discipline staff
tc qdisc add dev eth1 parent 1:11 handle 41: sfq perturb 10
tc qdisc add dev eth1 parent 1:13 handle 43: sfq perturb 10
tc qdisc add dev eth1 parent 1:15 handle 45: sfq perturb 10
tc qdisc add dev eth1 parent 1:17 handle 47: sfq perturb 10
i did not write iptables rules here. i think i do not need it. :)
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] help, i want 10 mbps to my router
1980-01-03 23:27 [LARTC] help, i want 10 mbps to my router Stef Coene
` (3 preceding siblings ...)
2002-03-30 15:06 ` George Tsuladze
@ 2002-03-30 16:37 ` George Tsuladze
2002-03-31 8:59 ` Martin Devera
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: George Tsuladze @ 2002-03-30 16:37 UTC (permalink / raw)
To: lartc
Stef Coene wrote:
>On Saturday 30 March 2002 16:06, George Tsuladze wrote:
>
>>Here is my script, as u see i have only 512 kbps to my router. but i
>>want to have LAN speed 10mbps. How can i do it,shape internet and have
>>LAN speed?
>>
>class woth <(what do u mean in "woth") rate = ceil = 10 mbps
>child class one : all internet traffic : rate = ceil = 512
>child class two : all other traffic : ceil = 10 mbps, rate = 9.5 kbps
>All other classes for internet traffic can be attached to the first child
>class.
>
>Stef
>and how can i recognize internet traffic? by iptables? and how can i release it?
>
>>########################
>>tc qdisc del dev eth0 root
>>tc qdisc del dev eth1 root
>>#eht0 rules
>>tc qdisc add dev eth0 root handle 1: htb default 11
>>#shape interface eth0
>>tc class add dev eth0 parent 1: classid 1:1 htb rate 500kbit ceil
>>512kbit burst 2k
>>tc class add dev eth0 parent 1:1 classid 1:2 htb rate 12kbit ceil
>>512kbit burst 2k
>>#voip class
>>tc class add dev eth0 parent 1:1 classid 1:12 htb rate 100kbit ceil
>>512kbit burst 2k
>>tc class add dev eth0 parent 1:1 classid 1:14 htb rate 100kbit ceil
>>512kbit burst 2k
>>tc class add dev eth0 parent 1:1 classid 1:16 htb rate 100kbit ceil
>>512kbit burst 2k
>>tc class add dev eth0 parent 1:1 classid 1:18 htb rate 100kbit ceil
>>512kbit burst 2k
>>tc class add dev eth0 parent 1:1 classid 1:20 htb rate 100kbit ceil
>>512kbit burst 2k
>>#staff class
>>tc class add dev eth0 parent 1:2 classid 1:11 htb rate 4kbit ceil
>>512kbit burst 2k
>>tc class add dev eth0 parent 1:2 classid 1:13 htb rate 4kbit ceil
>>512kbit burst 2k
>>tc class add dev eth0 parent 1:2 classid 1:15 htb rate 4kbit ceil
>>512kbit burst 2k
>>tc class add dev eth0 parent 1:2 classid 1:17 htb rate 4kbit ceil
>>512kbit burst 2k
>>#mark voip class
>>tc filter add dev eth0 parent 1: protocol ip prio 3 handle 2 fw classid
>>1:12 tc filter add dev eth0 parent 1: protocol ip prio 3 handle 4 fw
>>classid 1:14 tc filter add dev eth0 parent 1: protocol ip prio 3 handle 6
>>fw classid 1:16 tc filter add dev eth0 parent 1: protocol ip prio 3 handle
>>8 fw classid 1:18 tc filter add dev eth0 parent 1: protocol ip prio 3
>>handle 10 fw classid 1:20
>>#mark staff class
>>tc filter add dev eth0 parent 1: protocol ip prio 3 handle 1 fw classid
>>1:11 tc filter add dev eth0 parent 1: protocol ip prio 3 handle 3 fw
>>classid 1:13 tc filter add dev eth0 parent 1: protocol ip prio 3 handle 5
>>fw classid 1:15 tc filter add dev eth0 parent 1: protocol ip prio 3 handle
>>7 fw classid 1:17 #add qdisc discipline voip
>>tc qdisc add dev eth0 parent 1:12 handle 32: sfq perturb 10
>>tc qdisc add dev eth0 parent 1:14 handle 34: sfq perturb 10
>>tc qdisc add dev eth0 parent 1:16 handle 36: sfq perturb 10
>>tc qdisc add dev eth0 parent 1:18 handle 38: sfq perturb 10
>>tc qdisc add dev eth0 parent 1:20 handle 40: sfq perturb 10
>>#add qdisc discipline staff
>>tc qdisc add dev eth0 parent 1:11 handle 41: sfq perturb 10
>>tc qdisc add dev eth0 parent 1:13 handle 43: sfq perturb 10
>>tc qdisc add dev eth0 parent 1:15 handle 45: sfq perturb 10
>>tc qdisc add dev eth0 parent 1:17 handle 47: sfq perturb 10
>>###########################################################################
>>######## #eht1 rules
>>tc qdisc add dev eth1 root handle 1: htb default 11
>>#shape interface eth1
>>tc class add dev eth1 parent 1: classid 1:1 htb rate 500kbit ceil
>>512kbit burst 2k
>>tc class add dev eth1 parent 1:1 classid 1:2 htb rate 12kbit ceil
>>512kbit burst 2k
>>#voip class
>>tc class add dev eth1 parent 1:1 classid 1:12 htb rate 100kbit ceil
>>512kbit burst 2k
>>tc class add dev eth1 parent 1:1 classid 1:14 htb rate 100kbit ceil
>>512kbit burst 2k
>>tc class add dev eth1 parent 1:1 classid 1:16 htb rate 100kbit ceil
>>512kbit burst 2k
>>tc class add dev eth1 parent 1:1 classid 1:18 htb rate 100kbit ceil
>>512kbit burst 2k
>>tc class add dev eth1 parent 1:1 classid 1:20 htb rate 100kbit ceil
>>512kbit burst 2k
>>#staff class
>>tc class add dev eth1 parent 1:2 classid 1:11 htb rate 4kbit ceil
>>512kbit burst 2k
>>tc class add dev eth1 parent 1:2 classid 1:13 htb rate 4kbit ceil
>>512kbit burst 2k
>>tc class add dev eth1 parent 1:2 classid 1:15 htb rate 4kbit ceil
>>512kbit burst 2k
>>tc class add dev eth1 parent 1:2 classid 1:17 htb rate 4kbit ceil
>>512kbit burst 2k
>>#mark voip class
>>tc filter add dev eth1 parent 1: protocol ip prio 3 handle 2 fw classid
>>1:12 tc filter add dev eth1 parent 1: protocol ip prio 3 handle 4 fw
>>classid 1:14 tc filter add dev eth1 parent 1: protocol ip prio 3 handle 6
>>fw classid 1:16 tc filter add dev eth1 parent 1: protocol ip prio 3 handle
>>8 fw classid 1:18 tc filter add dev eth1 parent 1: protocol ip prio 3
>>handle 10 fw classid 1:20
>>#mark staff class
>>tc filter add dev eth1 parent 1: protocol ip prio 3 handle 1 fw classid
>>1:11 tc filter add dev eth1 parent 1: protocol ip prio 3 handle 3 fw
>>classid 1:13 tc filter add dev eth1 parent 1: protocol ip prio 3 handle 5
>>fw classid 1:15 tc filter add dev eth1 parent 1: protocol ip prio 3 handle
>>7 fw classid 1:17 #add qdisc discipline voip
>>tc qdisc add dev eth1 parent 1:12 handle 32: sfq perturb 10
>>tc qdisc add dev eth1 parent 1:14 handle 34: sfq perturb 10
>>tc qdisc add dev eth1 parent 1:16 handle 36: sfq perturb 10
>>tc qdisc add dev eth1 parent 1:18 handle 38: sfq perturb 10
>>tc qdisc add dev eth1 parent 1:20 handle 40: sfq perturb 10
>>#add qdisc discipline staff
>>tc qdisc add dev eth1 parent 1:11 handle 41: sfq perturb 10
>>tc qdisc add dev eth1 parent 1:13 handle 43: sfq perturb 10
>>tc qdisc add dev eth1 parent 1:15 handle 45: sfq perturb 10
>>tc qdisc add dev eth1 parent 1:17 handle 47: sfq perturb 10
>>
>>i did not write iptables rules here. i think i do not need it. :)
>>
>>_______________________________________________
>>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/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] help, i want 10 mbps to my router
1980-01-03 23:27 [LARTC] help, i want 10 mbps to my router Stef Coene
` (4 preceding siblings ...)
2002-03-30 16:37 ` George Tsuladze
@ 2002-03-31 8:59 ` Martin Devera
2002-04-01 5:58 ` George Tsuladze
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: Martin Devera @ 2002-03-31 8:59 UTC (permalink / raw)
To: lartc
yes .. and btw be aware what Eth you have. you want
10mbps = 100mbit so that you have 100BaseT eth, am I right ?
On Fri, 4 Jan 1980, Stef Coene wrote:
> On Saturday 30 March 2002 16:06, George Tsuladze wrote:
> > Here is my script, as u see i have only 512 kbps to my router. but i
> > want to have LAN speed 10mbps. How can i do it,shape internet and have
> > LAN speed?
> class woth rate = ceil = 10 mbps
> child class one : all internet traffic : rate = ceil = 512
> child class two : all other traffic : ceil = 10 mbps, rate = 9.5 kbps
> All other classes for internet traffic can be attached to the first child
> class.
>
> Stef
>
> > ########################
> > tc qdisc del dev eth0 root
> > tc qdisc del dev eth1 root
> > #eht0 rules
> > tc qdisc add dev eth0 root handle 1: htb default 11
> > #shape interface eth0
> > tc class add dev eth0 parent 1: classid 1:1 htb rate 500kbit ceil
> > 512kbit burst 2k
> > tc class add dev eth0 parent 1:1 classid 1:2 htb rate 12kbit ceil
> > 512kbit burst 2k
> > #voip class
> > tc class add dev eth0 parent 1:1 classid 1:12 htb rate 100kbit ceil
> > 512kbit burst 2k
> > tc class add dev eth0 parent 1:1 classid 1:14 htb rate 100kbit ceil
> > 512kbit burst 2k
> > tc class add dev eth0 parent 1:1 classid 1:16 htb rate 100kbit ceil
> > 512kbit burst 2k
> > tc class add dev eth0 parent 1:1 classid 1:18 htb rate 100kbit ceil
> > 512kbit burst 2k
> > tc class add dev eth0 parent 1:1 classid 1:20 htb rate 100kbit ceil
> > 512kbit burst 2k
> > #staff class
> > tc class add dev eth0 parent 1:2 classid 1:11 htb rate 4kbit ceil
> > 512kbit burst 2k
> > tc class add dev eth0 parent 1:2 classid 1:13 htb rate 4kbit ceil
> > 512kbit burst 2k
> > tc class add dev eth0 parent 1:2 classid 1:15 htb rate 4kbit ceil
> > 512kbit burst 2k
> > tc class add dev eth0 parent 1:2 classid 1:17 htb rate 4kbit ceil
> > 512kbit burst 2k
> > #mark voip class
> > tc filter add dev eth0 parent 1: protocol ip prio 3 handle 2 fw classid
> > 1:12 tc filter add dev eth0 parent 1: protocol ip prio 3 handle 4 fw
> > classid 1:14 tc filter add dev eth0 parent 1: protocol ip prio 3 handle 6
> > fw classid 1:16 tc filter add dev eth0 parent 1: protocol ip prio 3 handle
> > 8 fw classid 1:18 tc filter add dev eth0 parent 1: protocol ip prio 3
> > handle 10 fw classid 1:20
> > #mark staff class
> > tc filter add dev eth0 parent 1: protocol ip prio 3 handle 1 fw classid
> > 1:11 tc filter add dev eth0 parent 1: protocol ip prio 3 handle 3 fw
> > classid 1:13 tc filter add dev eth0 parent 1: protocol ip prio 3 handle 5
> > fw classid 1:15 tc filter add dev eth0 parent 1: protocol ip prio 3 handle
> > 7 fw classid 1:17 #add qdisc discipline voip
> > tc qdisc add dev eth0 parent 1:12 handle 32: sfq perturb 10
> > tc qdisc add dev eth0 parent 1:14 handle 34: sfq perturb 10
> > tc qdisc add dev eth0 parent 1:16 handle 36: sfq perturb 10
> > tc qdisc add dev eth0 parent 1:18 handle 38: sfq perturb 10
> > tc qdisc add dev eth0 parent 1:20 handle 40: sfq perturb 10
> > #add qdisc discipline staff
> > tc qdisc add dev eth0 parent 1:11 handle 41: sfq perturb 10
> > tc qdisc add dev eth0 parent 1:13 handle 43: sfq perturb 10
> > tc qdisc add dev eth0 parent 1:15 handle 45: sfq perturb 10
> > tc qdisc add dev eth0 parent 1:17 handle 47: sfq perturb 10
> > ###########################################################################
> >######## #eht1 rules
> > tc qdisc add dev eth1 root handle 1: htb default 11
> > #shape interface eth1
> > tc class add dev eth1 parent 1: classid 1:1 htb rate 500kbit ceil
> > 512kbit burst 2k
> > tc class add dev eth1 parent 1:1 classid 1:2 htb rate 12kbit ceil
> > 512kbit burst 2k
> > #voip class
> > tc class add dev eth1 parent 1:1 classid 1:12 htb rate 100kbit ceil
> > 512kbit burst 2k
> > tc class add dev eth1 parent 1:1 classid 1:14 htb rate 100kbit ceil
> > 512kbit burst 2k
> > tc class add dev eth1 parent 1:1 classid 1:16 htb rate 100kbit ceil
> > 512kbit burst 2k
> > tc class add dev eth1 parent 1:1 classid 1:18 htb rate 100kbit ceil
> > 512kbit burst 2k
> > tc class add dev eth1 parent 1:1 classid 1:20 htb rate 100kbit ceil
> > 512kbit burst 2k
> > #staff class
> > tc class add dev eth1 parent 1:2 classid 1:11 htb rate 4kbit ceil
> > 512kbit burst 2k
> > tc class add dev eth1 parent 1:2 classid 1:13 htb rate 4kbit ceil
> > 512kbit burst 2k
> > tc class add dev eth1 parent 1:2 classid 1:15 htb rate 4kbit ceil
> > 512kbit burst 2k
> > tc class add dev eth1 parent 1:2 classid 1:17 htb rate 4kbit ceil
> > 512kbit burst 2k
> > #mark voip class
> > tc filter add dev eth1 parent 1: protocol ip prio 3 handle 2 fw classid
> > 1:12 tc filter add dev eth1 parent 1: protocol ip prio 3 handle 4 fw
> > classid 1:14 tc filter add dev eth1 parent 1: protocol ip prio 3 handle 6
> > fw classid 1:16 tc filter add dev eth1 parent 1: protocol ip prio 3 handle
> > 8 fw classid 1:18 tc filter add dev eth1 parent 1: protocol ip prio 3
> > handle 10 fw classid 1:20
> > #mark staff class
> > tc filter add dev eth1 parent 1: protocol ip prio 3 handle 1 fw classid
> > 1:11 tc filter add dev eth1 parent 1: protocol ip prio 3 handle 3 fw
> > classid 1:13 tc filter add dev eth1 parent 1: protocol ip prio 3 handle 5
> > fw classid 1:15 tc filter add dev eth1 parent 1: protocol ip prio 3 handle
> > 7 fw classid 1:17 #add qdisc discipline voip
> > tc qdisc add dev eth1 parent 1:12 handle 32: sfq perturb 10
> > tc qdisc add dev eth1 parent 1:14 handle 34: sfq perturb 10
> > tc qdisc add dev eth1 parent 1:16 handle 36: sfq perturb 10
> > tc qdisc add dev eth1 parent 1:18 handle 38: sfq perturb 10
> > tc qdisc add dev eth1 parent 1:20 handle 40: sfq perturb 10
> > #add qdisc discipline staff
> > tc qdisc add dev eth1 parent 1:11 handle 41: sfq perturb 10
> > tc qdisc add dev eth1 parent 1:13 handle 43: sfq perturb 10
> > tc qdisc add dev eth1 parent 1:15 handle 45: sfq perturb 10
> > tc qdisc add dev eth1 parent 1:17 handle 47: sfq perturb 10
> >
> > i did not write iptables rules here. i think i do not need it. :)
> >
> > _______________________________________________
> > LARTC mailing list / LARTC@mailman.ds9a.nl
> > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
> --
>
> stef.coene@docum.org
> "Using Linux as bandwidth manager"
> http://www.docum.org/
> #lartc @ irc.openprojects.net
> _______________________________________________
> 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/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] help, i want 10 mbps to my router
1980-01-03 23:27 [LARTC] help, i want 10 mbps to my router Stef Coene
` (5 preceding siblings ...)
2002-03-31 8:59 ` Martin Devera
@ 2002-04-01 5:58 ` George Tsuladze
2002-04-01 6:03 ` George Tsuladze
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: George Tsuladze @ 2002-04-01 5:58 UTC (permalink / raw)
To: lartc
Martin Devera wrote:
>yes .. and btw be aware what Eth you have. you want
>10mbps = 100mbit so that you have 100BaseT eth, am I right ?
>
No 10BaseT :) not 10mbps 10 mbit
>
>
>On Fri, 4 Jan 1980, Stef Coene wrote:
>
>>On Saturday 30 March 2002 16:06, George Tsuladze wrote:
>>
>>>Here is my script, as u see i have only 512 kbps to my router. but i
>>>want to have LAN speed 10mbps. How can i do it,shape internet and have
>>>LAN speed?
>>>
>>class woth rate = ceil = 10 mbps
>>child class one : all internet traffic : rate = ceil = 512
>>child class two : all other traffic : ceil = 10 mbps, rate = 9.5 kbps
>>All other classes for internet traffic can be attached to the first child
>>class.
>>
>>Stef
>>
>>>########################
>>>tc qdisc del dev eth0 root
>>>tc qdisc del dev eth1 root
>>>#eht0 rules
>>>tc qdisc add dev eth0 root handle 1: htb default 11
>>>#shape interface eth0
>>>tc class add dev eth0 parent 1: classid 1:1 htb rate 500kbit ceil
>>>512kbit burst 2k
>>>tc class add dev eth0 parent 1:1 classid 1:2 htb rate 12kbit ceil
>>>512kbit burst 2k
>>>#voip class
>>>tc class add dev eth0 parent 1:1 classid 1:12 htb rate 100kbit ceil
>>>512kbit burst 2k
>>>tc class add dev eth0 parent 1:1 classid 1:14 htb rate 100kbit ceil
>>>512kbit burst 2k
>>>tc class add dev eth0 parent 1:1 classid 1:16 htb rate 100kbit ceil
>>>512kbit burst 2k
>>>tc class add dev eth0 parent 1:1 classid 1:18 htb rate 100kbit ceil
>>>512kbit burst 2k
>>>tc class add dev eth0 parent 1:1 classid 1:20 htb rate 100kbit ceil
>>>512kbit burst 2k
>>>#staff class
>>>tc class add dev eth0 parent 1:2 classid 1:11 htb rate 4kbit ceil
>>>512kbit burst 2k
>>>tc class add dev eth0 parent 1:2 classid 1:13 htb rate 4kbit ceil
>>>512kbit burst 2k
>>>tc class add dev eth0 parent 1:2 classid 1:15 htb rate 4kbit ceil
>>>512kbit burst 2k
>>>tc class add dev eth0 parent 1:2 classid 1:17 htb rate 4kbit ceil
>>>512kbit burst 2k
>>>#mark voip class
>>>tc filter add dev eth0 parent 1: protocol ip prio 3 handle 2 fw classid
>>>1:12 tc filter add dev eth0 parent 1: protocol ip prio 3 handle 4 fw
>>>classid 1:14 tc filter add dev eth0 parent 1: protocol ip prio 3 handle 6
>>>fw classid 1:16 tc filter add dev eth0 parent 1: protocol ip prio 3 handle
>>>8 fw classid 1:18 tc filter add dev eth0 parent 1: protocol ip prio 3
>>>handle 10 fw classid 1:20
>>>#mark staff class
>>>tc filter add dev eth0 parent 1: protocol ip prio 3 handle 1 fw classid
>>>1:11 tc filter add dev eth0 parent 1: protocol ip prio 3 handle 3 fw
>>>classid 1:13 tc filter add dev eth0 parent 1: protocol ip prio 3 handle 5
>>>fw classid 1:15 tc filter add dev eth0 parent 1: protocol ip prio 3 handle
>>>7 fw classid 1:17 #add qdisc discipline voip
>>>tc qdisc add dev eth0 parent 1:12 handle 32: sfq perturb 10
>>>tc qdisc add dev eth0 parent 1:14 handle 34: sfq perturb 10
>>>tc qdisc add dev eth0 parent 1:16 handle 36: sfq perturb 10
>>>tc qdisc add dev eth0 parent 1:18 handle 38: sfq perturb 10
>>>tc qdisc add dev eth0 parent 1:20 handle 40: sfq perturb 10
>>>#add qdisc discipline staff
>>>tc qdisc add dev eth0 parent 1:11 handle 41: sfq perturb 10
>>>tc qdisc add dev eth0 parent 1:13 handle 43: sfq perturb 10
>>>tc qdisc add dev eth0 parent 1:15 handle 45: sfq perturb 10
>>>tc qdisc add dev eth0 parent 1:17 handle 47: sfq perturb 10
>>>###########################################################################
>>>######## #eht1 rules
>>>tc qdisc add dev eth1 root handle 1: htb default 11
>>>#shape interface eth1
>>>tc class add dev eth1 parent 1: classid 1:1 htb rate 500kbit ceil
>>>512kbit burst 2k
>>>tc class add dev eth1 parent 1:1 classid 1:2 htb rate 12kbit ceil
>>>512kbit burst 2k
>>>#voip class
>>>tc class add dev eth1 parent 1:1 classid 1:12 htb rate 100kbit ceil
>>>512kbit burst 2k
>>>tc class add dev eth1 parent 1:1 classid 1:14 htb rate 100kbit ceil
>>>512kbit burst 2k
>>>tc class add dev eth1 parent 1:1 classid 1:16 htb rate 100kbit ceil
>>>512kbit burst 2k
>>>tc class add dev eth1 parent 1:1 classid 1:18 htb rate 100kbit ceil
>>>512kbit burst 2k
>>>tc class add dev eth1 parent 1:1 classid 1:20 htb rate 100kbit ceil
>>>512kbit burst 2k
>>>#staff class
>>>tc class add dev eth1 parent 1:2 classid 1:11 htb rate 4kbit ceil
>>>512kbit burst 2k
>>>tc class add dev eth1 parent 1:2 classid 1:13 htb rate 4kbit ceil
>>>512kbit burst 2k
>>>tc class add dev eth1 parent 1:2 classid 1:15 htb rate 4kbit ceil
>>>512kbit burst 2k
>>>tc class add dev eth1 parent 1:2 classid 1:17 htb rate 4kbit ceil
>>>512kbit burst 2k
>>>#mark voip class
>>>tc filter add dev eth1 parent 1: protocol ip prio 3 handle 2 fw classid
>>>1:12 tc filter add dev eth1 parent 1: protocol ip prio 3 handle 4 fw
>>>classid 1:14 tc filter add dev eth1 parent 1: protocol ip prio 3 handle 6
>>>fw classid 1:16 tc filter add dev eth1 parent 1: protocol ip prio 3 handle
>>>8 fw classid 1:18 tc filter add dev eth1 parent 1: protocol ip prio 3
>>>handle 10 fw classid 1:20
>>>#mark staff class
>>>tc filter add dev eth1 parent 1: protocol ip prio 3 handle 1 fw classid
>>>1:11 tc filter add dev eth1 parent 1: protocol ip prio 3 handle 3 fw
>>>classid 1:13 tc filter add dev eth1 parent 1: protocol ip prio 3 handle 5
>>>fw classid 1:15 tc filter add dev eth1 parent 1: protocol ip prio 3 handle
>>>7 fw classid 1:17 #add qdisc discipline voip
>>>tc qdisc add dev eth1 parent 1:12 handle 32: sfq perturb 10
>>>tc qdisc add dev eth1 parent 1:14 handle 34: sfq perturb 10
>>>tc qdisc add dev eth1 parent 1:16 handle 36: sfq perturb 10
>>>tc qdisc add dev eth1 parent 1:18 handle 38: sfq perturb 10
>>>tc qdisc add dev eth1 parent 1:20 handle 40: sfq perturb 10
>>>#add qdisc discipline staff
>>>tc qdisc add dev eth1 parent 1:11 handle 41: sfq perturb 10
>>>tc qdisc add dev eth1 parent 1:13 handle 43: sfq perturb 10
>>>tc qdisc add dev eth1 parent 1:15 handle 45: sfq perturb 10
>>>tc qdisc add dev eth1 parent 1:17 handle 47: sfq perturb 10
>>>
>>>i did not write iptables rules here. i think i do not need it. :)
>>>
>>>_______________________________________________
>>>LARTC mailing list / LARTC@mailman.ds9a.nl
>>>http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>>>
>>--
>>
>>stef.coene@docum.org
>> "Using Linux as bandwidth manager"
>> http://www.docum.org/
>> #lartc @ irc.openprojects.net
>>_______________________________________________
>>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/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] help, i want 10 mbps to my router
1980-01-03 23:27 [LARTC] help, i want 10 mbps to my router Stef Coene
` (6 preceding siblings ...)
2002-04-01 5:58 ` George Tsuladze
@ 2002-04-01 6:03 ` George Tsuladze
2002-04-01 8:15 ` George Tsuladze
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: George Tsuladze @ 2002-04-01 6:03 UTC (permalink / raw)
To: lartc
Stef Coene wrote:
>>what do u mean in "woth"
>>
>I mean with :)
>
>>and how can i recognize internet traffic? by iptables? and how can i
>>release it?
>>
>You can recognise local traffic (I hope you know the ip-addresses in the LAN)
>by ip-address, so all other traffic is internet traffic.
>
gio: i have to use iptables?
>
>
>Stef
>_______________________________________________
>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/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] help, i want 10 mbps to my router
1980-01-03 23:27 [LARTC] help, i want 10 mbps to my router Stef Coene
` (7 preceding siblings ...)
2002-04-01 6:03 ` George Tsuladze
@ 2002-04-01 8:15 ` George Tsuladze
2002-04-01 19:20 ` Stef Coene
2002-04-03 9:40 ` George Tsuladze
10 siblings, 0 replies; 12+ messages in thread
From: George Tsuladze @ 2002-04-01 8:15 UTC (permalink / raw)
To: lartc
Stef Coene wrote:
>>gio: i have to use iptables?
>>
>Or 2 u32 filters : first filter matches local traffic, second filter matches
>all traffic. The second filter will never be used for the local traffic.
>
>Stef
>
tc qdisc del dev eth0 root
#eht0 rules
tc qdisc add dev eth0 root handle 1: htb default 12
#shape interface eth0
tc class add dev eth0 parent 1: classid 1:1 htb rate 10mbit ceil 10mbit
burst 2k
#Internet
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 500kbit ceil
500kbit burst 2k
#Lan
tc class add dev eth0 parent 1:1 classid 1:12 htb rate 10mbit ceil
10mbit burst 2k
#mark Internet class
tc filter add dev eth0 parent 1: protocol ip prio 3 handle 1 fw classid 1:11
#add qdisc discipline Lan
tc qdisc add dev eth0 parent 1:12 handle 32: sfq perturb 10
#add qdisc discipline Internet
tc qdisc add dev eth0 parent 1:11 handle 41: sfq perturb 10
###################################################################################
#fitler marks by iptables
#iptables output
iptables -F -t mangle
#Mark Internet traffic
iptables -A OUTPUT -t mangle -d $myip -j MARK --set-mark 1
with this rule it shapes traffic for marked ip and gives all other 10 mbit
but i do not want this,
iptables -A OUTPUT -t mangle -d $myip -s ! $routerip -j MARK --set-mark 1
it does not shapes internet traffic, it gaves 10mbit to all.
i am downloading from internet without shaping, note i am downloading
through the SQUID which is running on router.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] help, i want 10 mbps to my router
1980-01-03 23:27 [LARTC] help, i want 10 mbps to my router Stef Coene
` (8 preceding siblings ...)
2002-04-01 8:15 ` George Tsuladze
@ 2002-04-01 19:20 ` Stef Coene
2002-04-03 9:40 ` George Tsuladze
10 siblings, 0 replies; 12+ messages in thread
From: Stef Coene @ 2002-04-01 19:20 UTC (permalink / raw)
To: lartc
On Monday 01 April 2002 18:46, Michael T. Babcock wrote:
> Your computer's date's a bit out (and messing up my Inbox ;-)
I know :)
I have a laptop with a bad battery so each time I power up, the date is
resetted. I try to remember to run ntpdate, but I forget it sometimes.
Maybe someone can sponsor me by buying a new laptop for me :)
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [LARTC] help, i want 10 mbps to my router
1980-01-03 23:27 [LARTC] help, i want 10 mbps to my router Stef Coene
` (9 preceding siblings ...)
2002-04-01 19:20 ` Stef Coene
@ 2002-04-03 9:40 ` George Tsuladze
10 siblings, 0 replies; 12+ messages in thread
From: George Tsuladze @ 2002-04-03 9:40 UTC (permalink / raw)
To: lartc
George Tsuladze wrote:
> tc qdisc del dev eth0 root
> #eht0 rules
> tc qdisc add dev eth0 root handle 1: htb default 12
> #shape interface eth0
> tc class add dev eth0 parent 1: classid 1:1 htb rate 10mbit ceil
> 10mbit burst 2k
> #Internet
> tc class add dev eth0 parent 1:1 classid 1:11 htb rate 500kbit ceil
> 500kbit burst 2k
> #Lan
> tc class add dev eth0 parent 1:1 classid 1:12 htb rate 10mbit ceil
> 10mbit burst 2k
> #mark Internet class
> tc filter add dev eth0 parent 1: protocol ip prio 3 handle 1 fw
> classid 1:11
> #add qdisc discipline Lan
> tc qdisc add dev eth0 parent 1:12 handle 32: sfq perturb 10
> #add qdisc discipline Internet
> tc qdisc add dev eth0 parent 1:11 handle 41: sfq perturb 10
> ###################################################################################
>
> #fitler marks by iptables
> #iptables output
> iptables -F -t mangle
> #Mark Internet traffic
> iptables -A OUTPUT -t mangle -d $myip -j MARK --set-mark 1
>
> with this rule it shapes traffic for marked ip and gives all other 10
> mbit
>
> but i do not want this,
> iptables -A OUTPUT -t mangle -d $myip -s ! $routerip -j MARK
> --set-mark 1
>
> it does not shapes internet traffic, it gaves 10mbit to all.
>
> i am downloading from internet without shaping, note i am downloading
> through the SQUID which is running on router.
>
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
> .
> Were i am doing wrong?
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 12+ messages in thread