All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junus Junarto D Junus Junarto D" <junus@bigfoot.com
To: lartc@vger.kernel.org
Subject: [LARTC] Re: Traffic Shapping
Date: Mon, 08 Jan 2001 17:22:46 +0000	[thread overview]
Message-ID: <marc-lartc-98373940416837@msgid-missing> (raw)

<PRE>I'm sorry, I forget that you use masquerade so it makes src 10.0.5.2 will
not appear in the outgoing packet.
So this is the correct your outgoing script:

ipchains -A forward -s 10.0.5.0/24 -j MASQ -m 0x1

 tc qdisc add dev eth0 root handle 2:0 cbq bandwidth 256Kbit avpkt 1000 \
 cell 8

 tc class add dev eth0 parent 2:0 classid 2:1 cbq bandwidth 256Kbit rate \
 256Kbit weight 20Kbit prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000

 tc class add dev eth0 parent 2:1 classid 2:10 cbq bandwidth 256Kbit rate \
 64Kbit weight 6Kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000
 bounded

 tc qdisc add dev eth0 parent 2:10 tbf rate 64Kbit buffer 10Kb/8 limit \
 15Kb mtu 1500

tc filter add dev eth0 parent 2:0 protocol ip prio 100 handle 1 fw
classid 2:10




&gt;<i> But when I try to limit the incoming traffic I still have the same problem
</I>&gt;<i> that it does not limit. And I still doesn't know why. I used your and my
</I>&gt;<i> script and everything happens like there is no shaper...
</I>&gt;<i> The outgoing traffic script is:
</I>&gt;<i>
</I>&gt;<i> tc qdisc add dev eth0 root handle 2:0 cbq bandwidth 256Kbit avpkt 1000 \
</I>&gt;<i> cell 8
</I>&gt;<i>
</I>&gt;<i> tc class add dev eth0 parent 2:0 classid 2:1 cbq bandwidth 256Kbit rate \
</I>&gt;<i> 256Kbit weight 20Kbit prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000
</I>&gt;<i>
</I>&gt;<i> tc class add dev eth0 parent 2:1 classid 2:10 cbq bandwidth 256Kbit rate \
</I>&gt;<i> 64Kbit weight 6Kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000
</I>&gt;<i> bounded
</I>&gt;<i>
</I>&gt;<i> tc qdisc add dev eth0 parent 2:10 tbf rate 64Kbit buffer 10Kb/8 limit \
</I>&gt;<i> 15Kb mtu 1500
</I>&gt;<i>
</I>&gt;<i> tc filter add dev eth0 parent 2:0 protocol ip prio 100 u32 match ip src \
</I>&gt;<i> 10.0.5.2 flowid 2:10
</I>&gt;<i>
</I>&gt;<i> But, thanx a lot...
</I>&gt;<i>
</I>&gt;<i> Bruno
</I>



</PRE>

             reply	other threads:[~2001-01-08 17:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-08 17:22 Junus [this message]
2001-01-09 10:53 ` [LARTC] Re: Traffic Shapping Bruno

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-98373940416837@msgid-missing \
    --to=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.