From: Hasso Tepper <hasso@linux.ee>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Out of IMQ interfaces
Date: Tue, 08 Jul 2003 09:50:26 +0000 [thread overview]
Message-ID: <marc-lartc-105765797401104@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105761011032331@msgid-missing>
Alexander Trotsai wrote:
> May you need mark packets with iptables and one IMQ device
> with htb queue
> Something like
> iptables -t mangle -A PREROUTING -i intf1 -j MARK --set-mark 1
> .....
> iptables -t mangle -A PREROUTING -i intfN -j MARK --set-mark N
> iptables -t mangle -A PREROUTING -j IMQ
>
> And to imq0 attach HTB qdisc with shaping according to mark
> value
Yes, I thought about it, but it will make management a lot more
complicated. If I have to change rate on one vlan only? At the
moment:
Up:
iptables -t mangle -A PREROUTING -i eth1.$d+ -j IMQ --todev $d
tc qdisc add dev eth1.$d root tbf rate ...
tc qdisc add dev imq$d root tbf rate ...
ip link set imq$d up
Down:
iptables -t mangle -D PREROUTING -i eth1.$d+ -j IMQ --todev $d
tc qdisc del dev eth1.$d root
tc qdisc del dev imq$d root
ip link set imq$d down
I made wrapper script, which takes device number and shaping
parameters from command line. I can change shaping parameters on any
vlan without affecting others.
regards,
--
Hasso Tepper
Elion Enterprises Ltd.
WAN administrator
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2003-07-08 9:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-07 20:32 [LARTC] Out of IMQ interfaces Hasso Tepper
2003-07-08 2:59 ` Patrick McHardy
2003-07-08 8:45 ` Alexander Trotsai
2003-07-08 9:50 ` Hasso Tepper [this message]
2003-07-09 11:30 ` Patrick McHardy
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-105765797401104@msgid-missing \
--to=hasso@linux.ee \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox