Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Catalin BOIE <util@deuroconsult.ro>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] tc filter
Date: Tue, 04 Nov 2003 05:43:04 +0000	[thread overview]
Message-ID: <marc-lartc-106792516708126@msgid-missing> (raw)
In-Reply-To: <marc-lartc-106786560303841@msgid-missing>

> what I wright is
>
> tc qdisc del dev eth0 root
> tc qdisc add dev eth0 root handle 1: htb default 20 r2q 100
>
> tc class add dev eth0 parent 1: classid 1:1 htb rate 100mbit ceil 100mbit
> tc class add dev eth0 parent 1: classid 1:2 htb rate 1mbit ceil 10mbit
> tc class add dev eth0 parent 1:1 classid 1:10 htb rate 90mbit ceil 90mbit
> tc class add dev eth0 parent 1:2 classid 1:20 htb rate 940kbit ceil 1mbit
> tc class add dev eth0 parent 1:2 classid 1:21 htb rate 64kbit ceil 128kbit
>
> tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src
> 80.97.88.1 flowid 1:10
> tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip src
> 80.97.85.3 flowid 1:10

Replace:
> tc filter add dev eth0 protocol ip parent 1:2 prio 1 u32 match ip dst
> 80.97.88.16/28 flowid 1:12
with:
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dst
80.97.88.16/28 flowid 1:21

Note that class 1:12 doesn't exists.

>
>
> but tc -s -d class show dev eth0 tells me that noting goes throuth 1:21
>
> class htb 1:12 parent 1:2 prio 0 quantum 1000 rate 64Kbit ceil 128Kbit
Look, it's 1:12 above!

> burst 1680b/8 mpu 0b cburst 1762b/8 mpu 0b level 0
>  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
>  lended: 0 borrowed: 0 giants: 0
>  tokens: 168099 ctokens: 88149
>
> I appologize for cutting and pasting so much text but I just want to make
> the situation as clear as posible for someone that wants to help me
>
> thanks
> raz
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>

---
Catalin(ux) BOIE
catab@deuroconsult.ro
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  reply	other threads:[~2003-11-04  5:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-03 13:21 [LARTC] tc filter raz
2003-11-04  5:43 ` Catalin BOIE [this message]
2006-08-03 16:06 ` doudouyam
2006-08-07 15:06 ` Andy Furniss

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-106792516708126@msgid-missing \
    --to=util@deuroconsult.ro \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox