From owner-freebsd-net@FreeBSD.ORG Sun Mar 23 13:04:53 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19736106566C for ; Sun, 23 Mar 2008 13:04:53 +0000 (UTC) (envelope-from freebsd@levsha.org.ua) Received: from expo.ukrweb.net (expo.ukrweb.net [193.125.78.116]) by mx1.freebsd.org (Postfix) with ESMTP id C204F8FC13 for ; Sun, 23 Mar 2008 13:04:52 +0000 (UTC) (envelope-from freebsd@levsha.org.ua) Received: from levsha by expo.ukrweb.net with local (Exim 4.68 (FreeBSD)) (envelope-from ) id 1JdPPS-000Pzu-AL; Sun, 23 Mar 2008 14:34:46 +0200 Date: Sun, 23 Mar 2008 14:34:46 +0200 From: Mykola Dzham To: Alexandre Biancalana Message-ID: <20080323123446.GZ62100@expo.ukrweb.net> References: <8e10486b0803041857v6d20e3f0x115c6842ec7d899b@mail.gmail.com> <47CE9F22.4010107@FreeBSD.org> <8e10486b0803050740u7d36c784pd0b9d0d1b3e29c95@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8e10486b0803050740u7d36c784pd0b9d0d1b3e29c95@mail.gmail.com> X-Operating-System: FreeBSD/5.4-RELEASE-p6 (i386) User-Agent: Mutt/1.5.6i Cc: freebsd-net@freebsd.org Subject: Re: ALTQ Vlan X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Mar 2008 13:04:53 -0000 Alexandre Biancalana wrote: > On 3/5/08, Sergey Matveychuk wrote: > > Alexandre Biancalana wrote: > > > Hi list, > > > > > > Is there any patches or plans to support altq on vlan interfaces ?? > > > > > > > > > The patch is quite trivial: > > http://people.yandex-team.ru/~sem/FreeBSD/vlan+altq.patch > > Is this working on 7 ? with pf ? > > > > > But may be a better way to shape traffic on parent interface for you? > > I did the patch because I couldn't do shaping on a parent interface for > > some reason. > > My problem is that I've only one physical interface on the server and > this interface provide vlans for local network and remote links (which > I want to shape the traffic) then I had problems because I want to > limit the speed only on remote links. You can setup atlq on parent interface and assign traffic to queue on vlan interface: altq on em0 cbq bandwidth 1Gb queue { def, vlan10 } queue def bandwidth 80% cbq ( default , borrow ) queue vlan10 bandwidth 20Mb cbq ... pass out on vlan10 queue vlan10 -- Mykola Dzham, LEFT-(UANIC|RIPE) JID: levsha@jabber.net.ua