All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Trotsai <mage@adamant.net>
To: lartc@vger.kernel.org
Subject: Re: Re: [LARTC] Out of IMQ interfaces
Date: Tue, 08 Jul 2003 10:52:29 +0000	[thread overview]
Message-ID: <marc-lartc-105766162704045@msgid-missing> (raw)

On Tue, Jul 08, 2003 at 12:50:26PM +0300, Hasso Tepper wrote:
HT>Alexander Trotsai wrote:
HT>> May you need mark packets with iptables and one IMQ device
HT>> with htb queue
HT>> Something like
HT>> iptables -t mangle -A PREROUTING -i intf1 -j MARK --set-mark 1
HT>> .....
HT>> iptables -t mangle -A PREROUTING -i intfN -j MARK --set-mark N
HT>> iptables -t mangle -A PREROUTING -j IMQ
HT>>
HT>> And to imq0 attach HTB qdisc with shaping according to mark
HT>> value

HT>Yes, I thought about it, but it will make management a lot more 
HT>complicated. If I have to change rate on one vlan only? At the 
HT>moment:

HT>Up:
HT>iptables -t mangle -A PREROUTING -i eth1.$d+ -j IMQ --todev $d
HT>tc qdisc add dev eth1.$d root tbf rate ...
HT>tc qdisc add dev imq$d root tbf rate ...
HT>ip link set imq$d up

HT>Down:
HT>iptables -t mangle -D PREROUTING -i eth1.$d+ -j IMQ --todev $d
HT>tc qdisc del dev eth1.$d root
HT>tc qdisc del dev imq$d root
HT>ip link set imq$d down

HT>I made wrapper script, which takes device number and shaping 
HT>parameters from command line. I can change shaping parameters on any 
HT>vlan without affecting others.

Set mark equal to vlan number
Then If you need change rate tell tc class change classid
<MAJOR>:<VLANID> rate <new rate>

-- 
Best regard, Aleksander Trotsai aka MAGE-RIPE aka MAGE-UANIC
My PGP key at ftp://blackhole.adamant.ua/pgp/trotsai.key[.asc]
Big trouble - clock speed
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

                 reply	other threads:[~2003-07-08 10:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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-105766162704045@msgid-missing \
    --to=mage@adamant.net \
    --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.