From: Omar Armas Aleman <oarmas@mpsnet.net.mx>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] tc not working
Date: Mon, 08 Oct 2001 17:24:45 +0000 [thread overview]
Message-ID: <marc-lartc-100256193522401@msgid-missing> (raw)
In-Reply-To: <marc-lartc-100238958132380@msgid-missing>
> Can you show the output of tc statistics?
For simplicity, I put here a smaller example:
The OS: RH 7.1
The configuracion:
|Internet|
|
eth0: 200.39.191.182/255.255.255.252
eth1:3: 200.39.190.225/255.255.255.224
|
200.39.190.224/27 (The office network)
The script:
----------begin------------------
[root@pruebas bin]# cat ban
tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000
#root class
tc class add dev eth0 parent 10:0 classid 10:1 cbq bandwidth 10Mbit rate
10Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000
#root class
tc class add dev eth0 parent 10:1 classid 10:64 cbq bandwidth 10Mbit rate
64Kbit allot 1514 weight 6Kbit prio 5 maxburst 20 avpkt 1000 bounded
#root class
tc qdisc add dev eth0 parent 10:64 sfq quantum 1514b perturb 15
#restriction
tc filter add dev eth0 parent 10:0 protocol ip prio 100 u32 match ip dst
200.39.190.224/27 flowid 10:64
[root@pruebas bin]#
--------------end----------------------------
The output of tc:
# tc qdisc show dev eth0
qdisc sfq 8001: quantum 1514b perturb 15sec
qdisc cbq 10: rate 10Mbit (bounded,isolated) prio no-transmit
# tc class show dev eth0
class cbq 10: root rate 10Mbit (bounded,isolated) prio no-transmit
class cbq 10:1 parent 10: rate 10Mbit prio no-transmit
class cbq 10:64 parent 10:1 leaf 8001: rate 64Kbit (bounded) prio 5
# tc class show dev eth0 parent 10:1
class cbq 10: root rate 10Mbit (bounded,isolated) prio no-transmit
class cbq 10:1 parent 10: rate 10Mbit prio no-transmit
class cbq 10:64 parent 10:1 leaf 8001: rate 64Kbit (bounded) prio 5
# tc filter show dev eth0 parent 10:0
filter protocol ip pref 100 u32
filter protocol ip pref 100 u32 fh 800: ht divisor 1
filter protocol ip pref 100 u32 fh 800::800 order 2048 key ht 800 bkt 0
flowid 10:64
match c827bee0/ffffffe0 at 16
filter protocol ip pref 100 u32 fh 800::801 order 2049 key ht 800 bkt 0
flowid 10:64
match c827bee0/ffffffe0 at 16
(hope this is what you wanted)
My problem: I want to limit 200.39.190.224/27 to 64K of bandwidth and
it's not working. I testet it with ougoing and incoming traffic and show
no limit.
Thanks,
Omar
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/
next prev parent reply other threads:[~2001-10-08 17:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-06 17:31 [LARTC] tc not working oarmas
2001-10-08 15:27 ` bert hubert
2001-10-08 17:24 ` Omar Armas Aleman [this message]
2001-10-12 6:51 ` Stef Coene
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-100256193522401@msgid-missing \
--to=oarmas@mpsnet.net.mx \
--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.