From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Furniss Date: Wed, 29 Oct 2014 16:01:23 +0000 Subject: Re: traffic control on multiple interfaces Message-Id: <54510F53.6000005@gmail.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Andy Furniss wrote: > Akshat Kakkar wrote: >> I am having a linux system with 4 nics (eth0-3) which is acting as >> a router. I want to give my user a fix bandwidth of 2mbps upload >> and 2mbps download. His traffic can come from eth0 or eth1 and it >> can go out from eth2 or eth3 (depending on services he want to >> access). So for this, I require tc to be working on "eth2 and eth3" >> as single entity (for upload traffic); and "eth0 and eth1" as >> single entity (for download traffic). I want to use egress control >> and not ingress (using IMQ, etc.) >> >> What are options available to achieve this? > > Use 2 ifbs for tc and direct to one from eth0/1 and the other > eth2/3. Forgot to put - for egress on the eths if you don't have any "real" qdisc on the eth you won't be able to add the filters to redirect, so just add say prio.