From: George Tsuladze <gio@ultracom.ge>
To: lartc@vger.kernel.org
Subject: [LARTC] help, i want 10 mbps to my router
Date: Sat, 30 Mar 2002 15:06:57 +0000 [thread overview]
Message-ID: <marc-lartc-101750086020876@msgid-missing> (raw)
In-Reply-To: <marc-lartc-101750226021689@msgid-missing>
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/
next prev parent reply other threads:[~2002-03-30 15:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2002-03-30 16:37 ` George Tsuladze
2002-03-31 8:59 ` Martin Devera
2002-04-01 5:58 ` George Tsuladze
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-101750086020876@msgid-missing \
--to=gio@ultracom.ge \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.