All of lore.kernel.org
 help / color / mirror / Atom feed
From: Amit Vyas <amitvyas.cse@gmail.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] how to add burstable rate?
Date: Thu, 23 Dec 2004 14:35:26 +0000	[thread overview]
Message-ID: <41CAD4DE.8090802@gmail.com> (raw)
In-Reply-To: <41C99BB5.9010609@phreaker.net>

I applied this to following Network
+------------------+     eth1            +----------------+  eth0        
                     +-----------+
| 192.168.3.31   |------------------- | Linux Box    
|------------------------------- | Internet  |
+------------------+  192.168.3.32 +----------------+   192.168.2.198 
           +-----------+
     
                                                                      
                                      gateway

and modified the rate and IP and dev  to look it   this way

tc qdisc add dev eth1 root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev eth1 parent 1: classid 1:1 cbq rate 1kbit  allot 1500 
prio 5 bounded isolated
tc filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip dst 
192.168.3.31 flowid 1:1
tc qdisc add dev eth1 parent 1:1 sfq perturb 10

This limit packets from 192.168.3.31 to 1kbit How can it modify it to 
not to limit it for local IP addresses.
Ie Only the traffic for internet is limited to 1kbps

Amit
I am sending it third time but not echoed on list. Are my mails reaching ?






ro0ot wrote:

> Hi,
>
> I managed to fix 128kbit for an IP address of 192.168.200.3 as below: -
>
> tc qdisc add dev eth3 root handle 1: cbq avpkt 1000 bandwidth 100mbit
> tc class add dev eth3 parent 1: classid 1:1 cbq rate 128kbit allot 
> 1500 prio 5 bounded isolated
> tc filter add dev eth3 parent 1: protocol ip prio 16 u32 match ip dst 
> 192.168.200.3 flowid 1:1
> tc qdisc add dev eth3 parent 1:1 sfq perturb 10
>
> How can I make it burstable to 256kbit?  What command I need to add in?
>
> Regards,
> ro0ot
>
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>

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

  parent reply	other threads:[~2004-12-23 14:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-22 16:07 [LARTC] how to add burstable rate? ro0ot
2004-12-23  7:44 ` Amit Vyas
2004-12-23 11:50 ` Amit Vyas
2004-12-23 14:35 ` Amit Vyas [this message]
2004-12-23 14:36 ` Amit Vyas

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=41CAD4DE.8090802@gmail.com \
    --to=amitvyas.cse@gmail.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.