All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gastón <gaston@steel.com.ar>
To: lartc@vger.kernel.org
Subject: [LARTC] Limiting bandwidth to entire LAN
Date: Thu, 04 Mar 2004 14:55:00 +0000	[thread overview]
Message-ID: <000b01c401f8$aafbc380$ce302bc8@traza> (raw)

Hi, first of all thanks for all your help. I`m using a bridge and I want to
assign the lan (with public routable ips) only 512Kbits (The internet link
is 1Mbit). What i thought was creating a class with  a ceil of 512Kbit an
applying a filter to it with the entire net (1.2.3.0/24). This approach
didn´t work for me(the ceil was bypassed). Should I use policing instead?


These are the commands I used:

tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1 htb default 10 r2q 5

tc qdisc del dev eth1 root
tc qdisc add dev eth1 root handle 1 htb default 10 r2q 5

tc class add dev eth0 parent 1: classid 1:2 htb rate 512Kbit

tc class add dev eth0 parent 1:2 classid 1:30 htb rate 448Kbit ceil 512Kbit
tc qdisc add dev eth0 parent 1:30 handle 30 sfq perturb 10
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip src
1.2.3.0/24 classid 1:30



tc class add dev eth1 parent 1: classid 1:2 htb rate 512Kbit

tc class add dev eth1 parent 1:2 classid 1:30 htb rate 448Kbit ceil 512Kbit
tc qdisc add dev eth1 parent 1:30 handle 30 sfq perturb 10
tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip dst
1.2.3.0/24 classid 1:30

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

             reply	other threads:[~2004-03-04 14:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-04 14:55 Gastón [this message]
2004-03-05  0:07 ` [LARTC] Limiting bandwidth to entire LAN Damion de Soto
2004-03-06 12:15 ` Stef Coene
2004-03-06 12:15 ` Stef Coene
2004-03-07 23:06 ` gaston
2004-03-07 23:17 ` gaston

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='000b01c401f8$aafbc380$ce302bc8@traza' \
    --to=gaston@steel.com.ar \
    --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.