All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] connecting IMQ to different interfaces
Date: Fri, 28 Mar 2003 10:58:46 +0000	[thread overview]
Message-ID: <marc-lartc-104884918828655@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104883232512607@msgid-missing>

On Friday 28 March 2003 07:17, Craig J Howard wrote:
> Ok, I'm pretty new to this stuff, so I hope this question doesn't appear
> stupid:
>
> How do I connect an IMQ to different network interfaces?
>
> eg...say I want to control OUTGOING traffic normally on 3 different
> interfaces:
>
> tc qdisc add dev "eth0" root handle 1: htb default 1
> tc class add dev "eth0" parent 1: classid 1:1 htb rate 200kbit ceil 350kbit
> prio 2
>
> tc qdisc add dev "eth1" root handle 1: htb default 1
> tc class add dev "eth1" parent 1: classid 1:1 htb rate 200kbit ceil 350kbit
> prio 2
>
> tc qdisc add dev "eth2" root handle 1: htb default 1
> tc class add dev "eth2" parent 1: classid 1:1 htb rate 200kbit ceil 350kbit
> prio 2
>
>
> now I want to control INCOMING traffic to the three different interfaces
> with IMQ:
>
> tc qdisc add dev "imq0" root handle 1: htb default 1
> tc class add dev "imq0" parent 1: classid 1:1 htb rate 2000kbit prio 3
>
> iptables -t mangle -A PREROUTING -i eth0 -j IMQ --todev 0
> ip link set "imq0" up
>
> tc qdisc add dev "imq1" root handle 1: htb default 1
> tc class add dev "imq1" parent 1: classid 1:1 htb rate 2000kbit prio 3
>
> iptables -t mangle -A PREROUTING -i eth1 -j IMQ --todev 1
> ip link set "imq1" up
>
> Now how do I apply it to the third interface? I've run out of imq's!

RTFM:

If you compile the imq as module and you do a modprobe for it, there is an 
option that you can specify so you can say how many imq devices you want.  
modprobe imq numdevs=3


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

      reply	other threads:[~2003-03-28 10:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-28  6:17 [LARTC] connecting IMQ to different interfaces Craig J Howard
2003-03-28 10:58 ` Stef Coene [this message]

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-104884918828655@msgid-missing \
    --to=stef.coene@docum.org \
    --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.