From owner-freebsd-questions@FreeBSD.ORG Wed Oct 29 00:23:23 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B329C1065672 for ; Wed, 29 Oct 2008 00:23:23 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3BC178FC1E for ; Wed, 29 Oct 2008 00:23:22 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KuyqH-0005C7-Ky for freebsd-questions@freebsd.org; Wed, 29 Oct 2008 00:23:21 +0000 Received: from 93-136-47-30.adsl.net.t-com.hr ([93.136.47.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Oct 2008 00:23:21 +0000 Received: from ivoras by 93-136-47-30.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Oct 2008 00:23:21 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Wed, 29 Oct 2008 01:23:04 +0100 Lines: 52 Message-ID: References: <20def4870810280743v50b32317v3711245fc9110cbe@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig571016A292BA4AB1A50138DF" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 93-136-47-30.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) In-Reply-To: <20def4870810280743v50b32317v3711245fc9110cbe@mail.gmail.com> X-Enigmail-Version: 0.95.7 Sender: news Subject: Re: VLAN filtering on FreeBSD 7.0 / 6.3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 00:23:23 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig571016A292BA4AB1A50138DF Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Yony Yossef wrote: > Hi, >=20 > I have two questions about VLANs on FreeBSD 6.3/7.0. >=20 > 1. > I'm trying to understand whether HW VLAN filtering can be supported. > Looking at the code I can't find a proper ioctl that will inform the dr= iver > about a vlan creation/destruction. > Is there a way of doing it? If you're asking how to support vlans in FreeBSD, add lines like these to rc.conf: cloned_interfaces=3D"vlan0" ifconfig_bce1=3D"inet 0.0.0.0" ifconfig_vlan0=3D"vlan 250 vlandev bce1" ifconfig_vlan0_alias0=3D"inet 161.53.72.23 netmask 255.255.255.0" This has worked for me in 6.2 and 6.3. Hardware VLAN filtering is supported in both 6.x and 7.x (at least in bce driver; look for VLAN_HWTAGGING flag in ifconfig). > 2. > Second issue - is there way of enabling TSO on vlan interfaces? I've asked that question about a week ago on network developers mailing list and the answer was that it could be done but it's not yet implemented (i.e. using VLANs in any way effectively disables TSO). --------------enig571016A292BA4AB1A50138DF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkkHrOkACgkQldnAQVacBch67wCeMVajVubOf6ihTpFW9fmdF3MT QxoAn0rW3tHZISBp1620SZko2AdEQOmO =Bsea -----END PGP SIGNATURE----- --------------enig571016A292BA4AB1A50138DF--