[LARTC] help, i want 10 mbps to my router

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/
>>
>>
>
>
>.
>





[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux