All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Coello <dcoello@quarkinside.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Bandwidth by port
Date: Wed, 11 Dec 2002 08:19:43 +0000	[thread overview]
Message-ID: <marc-lartc-103959492626452@msgid-missing> (raw)
In-Reply-To: <marc-lartc-103961486811331@msgid-missing>

Hi

I am trying to limit the bandwidth by port buy without success.

The code is :

# Disciplina de encolamiento
tc qdisc add dev eth1 root handle 10: cbq bandwidth 10Mbit avpkt 1000 mpu 64

# Clase
tc class add dev eth1 parent 10:0 classid 10:1 cbq bandwidth 1kbps rate 
1kbps allot 1514 prio 1 maxburst 10 avpkt 100 bounded isolated

# Filtro
# tc filter add dev eth1 parent 10:0 protocol ip handle 3 fw classid 10:1

tc filter add dev eth1 parent 10:0 protocol ip u32 match ip dst 
0.0.0.0  match ip sport 20 0xffff flowid 10:1
tc filter add dev eth1 parent 10:0 protocol ip u32 match ip dst 
0.0.0.0  match ip sport 21 0xffff flowid 10:1

What am i making bad? I have probed with mark&iptables but with identical 
result. When i make ftp i download without band limit.

Thanks and regards
                                         David Coello




_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  reply	other threads:[~2002-12-11  8:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-10 13:50 [LARTC] Bandwidth by port Paolo Poletti
2002-12-11  8:19 ` David Coello [this message]
2002-12-11 12:38 ` Stef Coene
2002-12-11 18:15 ` David Coello
2002-12-11 20:12 ` Serge Maandag

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-103959492626452@msgid-missing \
    --to=dcoello@quarkinside.com \
    --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.