Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Mar 2008 14:34:46 +0200
From:      Mykola Dzham <freebsd@levsha.org.ua>
To:        Alexandre Biancalana <biancalana@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: ALTQ Vlan
Message-ID:  <20080323123446.GZ62100@expo.ukrweb.net>
In-Reply-To: <8e10486b0803050740u7d36c784pd0b9d0d1b3e29c95@mail.gmail.com>
References:  <8e10486b0803041857v6d20e3f0x115c6842ec7d899b@mail.gmail.com> <47CE9F22.4010107@FreeBSD.org> <8e10486b0803050740u7d36c784pd0b9d0d1b3e29c95@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
 Alexandre Biancalana wrote:
> On 3/5/08, Sergey Matveychuk <sem@freebsd.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080323123446.GZ62100>