Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jan 2006 16:31:42 +0200
From:      Claudiu Dragalina-Paraipan <dr.clau@gmail.com>
To:        husnu demir <hdemir@metu.edu.tr>
Cc:        freebsd-pf@freebsd.org
Subject:   Re: pf and VLAN support.
Message-ID:  <c2d45d6e0601270631x58179b9evc75621a7e884cc18@mail.gmail.com>
In-Reply-To: <20060127135434.GA1073182@metu.edu.tr>
References:  <20060127135434.GA1073182@metu.edu.tr>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

I use the same method, and I have about 15 VLANs.
I have ALTQ active on fxp1 interface (where all VLANs are sitting),
and I assign traffic to altq depending on which vlan interface it
arrives/goes. This way the bandwidth can be shared between VLANs
easily.

Regards,



On 1/27/06, husnu demir <hdemir@metu.edu.tr> wrote:
> Hi,
>
> Last week I tried to use PF+ALTQ+VLAN combination and found out that ALTQ=
 doesnot support VLAN. Then after some searching found out that giving ALTQ=
 support on the root device and queue'ing to the VLAN device is sufficient =
to use. But I could not find any reference for that info, either pf.conf or=
 ALTQ manual. man altq says that
>
>         " The tun(4) and ng_iface(4) pseudo drivers also do support ALTQ"
>
> but does not mention about the vlan. Is this solution correct? If it is, =
whay anybody did not reference to that INFO.
>
>
> Thanks.
>
>
> ....
> altq on bge0 cbq bandwidth 0.05Mb queue { icmp }        # BGE0 is the mai=
n interface for VLAN1.
>         queue icmp_internal cbq(default)
> ....
>
> pass in quick on   vlan1 inet proto icmp from xxxxxxxx to any \
>         icmp-type $icmp_tips keep state (max 1000) queue icmp_internal  #=
 queue is used for the VLAN1 interface.
> ....


--
Claudiu Dragalina-Paraipan



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