From: "liang jian" <liang_7902@yahoo.com.cn>
To: lartc@vger.kernel.org
Subject: RE:[LARTC] How to do ensure bandwith
Date: Wed, 02 Apr 2003 01:31:23 +0000 [thread overview]
Message-ID: <marc-lartc-104924716611342@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104848600731119@msgid-missing>
[-- Attachment #1: Type: text/plain, Size: 3005 bytes --]
hi:
Stef
>> Stef:
>> Thanks for your answer me quickly!
>> I have others question :)
>I have some problems understanding your english. Can you post your htb and
>iptabels script so I can understand what you did?
>> I apologize that it will take time.
>> My topological look like this:
>> Local:192.168.1.2----------|eth0:192.168.1.1 Linux Box
>> eth1:172.16.1.1|------Internet
>>
>> I have create a default 200
>> 20:1 (10Mbps)
>> 20:20 20:21 20:22 20:23 20:24
>>(20Mbps) (20Mbps) (20Mbps) (20Mbps) (20Mbps)
>> 20:22 mark with 3,then
>>iptables -t mangle -A FORWARD -p tcp -o eth0 -s 0/0 --dport 80 -d 0/0 -j
>>MARK --set-mark 7
>> iptables -t mangle -A PREROUTING -p tcp -i eth0 -s 0/0
>>--dport 80 -d 0/0 -j MARK --set-mark 7
>> why all traffic from default 20 to Internet.(the iptables rules like no
>>use)
>So all traffic ends up in 20:20 ??
yes.blew my scripts.
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 20: htb default 20
tc class add dev eth0 parent 20: classid 20:1 htb rate 10240kbps ceil 10240kbps
tc class add dev eth0 parent 20:1 classid 20:20 htb rate 2048kbps ceil 2048kbps
tc qdisc add dev eth0 parent 20:20 sfq
tc class add dev eth0 parent 20:1 classid 20:21 htb rate 2048kbps ceil 2048kbps
tc qdisc add dev eth0 parent 20:21 sfq
tc class add dev eth0 parent 20:1 classid 20:22 htb rate 2048kbps ceil 2048kbps
tc qdisc add dev eth0 parent 20:22 sfq
tc class add dev eth0 parent 20:1 classid 20:23 htb rate 2048kbps ceil 2048kbps
tc qdisc add dev eth0 parent 20:23 sfq
tc class add dev eth0 parent 20:1 classid 20:24 htb rate 2048kbps ceil 2048kbps
tc qdisc add dev eth0 parent 20:24 sfq
tc filter add dev eth0 parent 20: protocol ip handle 1 fw classid 20:20
tc filter add dev eth0 parent 20: protocol ip handle 2 fw classid 20:21
tc filter add dev eth0 parent 20: protocol ip handle 3 fw classid 20:22
tc filter add dev eth0 parent 20: protocol ip handle 4 fw classid 20:23
tc filter add dev eth0 parent 20: protocol ip handle 5 fw classid 20:24
iptables -t mangle -A FORWARD -p tcp -o eth0 -s 0/0 --dport 80 -d 0/0 -j MARK --set-mark 3
iptables -t mangle -A PREROUTING -p tcp -i eth0 -s 0/0 --dport 80 -d 0/0 -j MARK --set-mark 3
>You can check with iptables -L -v -n if your iptables rules are matched. If
>the iptables rule match, the byte and packet counters will increase.
when I use iptable -L -v -n -t mangle,I have below infor
PREROUTING chain:
pkts bytes target prot opt in out source destination
305 40889 MARK tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 MARK set 0x3
FORWARD chain:
pkts bytes target prot opt in out source destination
0 0 MARK tcp -- * eth0 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 MARK set 0x3
why not stream through ForWard chain ? beacause this all traffic into 20:20(default class)?
---------------------------------
Do You Yahoo!?
"雅虎通网络KTV, 随时随地免费卡拉OK~~"
[-- Attachment #2: Type: text/html, Size: 4224 bytes --]
next prev parent reply other threads:[~2003-04-02 1:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-24 6:05 [LARTC] How to do ensure bandwith liang jian
2003-03-24 9:09 ` Stef Coene
2003-03-25 2:18 ` liang jian
2003-03-25 17:23 ` Stef Coene
2003-03-26 5:30 ` liang jian
2003-03-26 19:18 ` Stef Coene
2003-03-31 9:12 ` liang jian
2003-03-31 9:12 ` liang jian
2003-03-31 17:22 ` Stef Coene
2003-04-02 1:31 ` liang jian [this message]
2003-04-02 20:08 ` Stef Coene
2003-04-03 3:10 ` liang jian
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-104924716611342@msgid-missing \
--to=liang_7902@yahoo.com.cn \
--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.