From owner-freebsd-questions@FreeBSD.ORG Wed Feb 24 13:15:41 2010 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 85E70106566B for ; Wed, 24 Feb 2010 13:15:41 +0000 (UTC) (envelope-from abalour@gmail.com) Received: from mail-ew0-f228.google.com (mail-ew0-f228.google.com [209.85.219.228]) by mx1.freebsd.org (Postfix) with ESMTP id 15CC78FC0C for ; Wed, 24 Feb 2010 13:15:40 +0000 (UTC) Received: by ewy28 with SMTP id 28so333256ewy.13 for ; Wed, 24 Feb 2010 05:15:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:content-type:content-transfer-encoding; bh=fNkpNkdFuy9+aEez3kIoKiWYgaugQMEeGTMWmrGFPoM=; b=uQu50WficcvEq5hMnTWTNoi82AfdCsUjQD1I/6No4l+LE/KFyk440s/c3lmYADajOw //nqzQ39Yx2A4ZlCpv2ooMdd82dfHH2evS2A5hoTQ/HOkc5M5L3R7qobEFr/LUkNVws4 v1LuboUFQ+fxJTihiEvzYPe/Sd5fFd4r6v6H8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :content-transfer-encoding; b=nEifWRNatgbnQDcBGhQhODuIokgXAUZL5dP37KT2JvbRL1W59f66MwFsESGm2zYG9S e9F3lOZFlCTlEDBNxyXYEcT7Hce0Hs+0WiRChC40K2q1bnBQ3EvfH+2A5G59B5HhycWn 5IH/Gxjy5W+aKEEf4jV0duttnG79i9tZd7p4U= MIME-Version: 1.0 Sender: abalour@gmail.com Received: by 10.213.1.23 with SMTP id 23mr3894980ebd.98.1267017332140; Wed, 24 Feb 2010 05:15:32 -0800 (PST) In-Reply-To: <35f70db11002230532v5f1c8d72y3755522df7e7f1a8@mail.gmail.com> References: <35f70db11002230532v5f1c8d72y3755522df7e7f1a8@mail.gmail.com> From: Ross Cameron Date: Wed, 24 Feb 2010 15:15:12 +0200 X-Google-Sender-Auth: 861b1ebeeafa9e59 Message-ID: <35f70db11002240515w3fe1b1b1yb5ac3235d7b0d8b@mail.gmail.com> To: FreeBSD Questions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Netgraph VLan support X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ross.cameron@linuxpro.co.za List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2010 13:15:41 -0000 Bump On Tue, Feb 23, 2010 at 3:32 PM, Ross Cameron wrote: > Hi there all > > I've trying to setup nested VLans using netgraph and most of my > googling suggests that this can be done. > =C2=A0 =C2=A0But alas it is not working on this side. I'm running a stand= ard > FreeBSD 8.0-RELEASE-p2 AMD64. > > The below works just fine and creates a perfectly functional Vlan > interface ngeth0: > -------------------------------------------------------------------------= ------------------------------- > ifconfig bge0 10.123.0.1 netmask 255.255.255.0 > kldload ng_ether > kldload ng_vlan > ngctl mkpeer bge0: vlan lower downstream > ngctl name bge0:lower vlanL1 > ngctl connect bge0: vlanL1: upper nomatch > ngctl mkpeer vlanL1: eiface vlan3555 ether > ngctl msg vlanL1: addfilter '{ vlan=3D3555 hook=3D"vlan3555" }' > ifconfig ngeth0 link 00:1a:4b:d4:3e:c2 > ifconfig ngeth0 10.124.0.1 netmask 255.255.255.0 > > The below however does not and just throws an error : > --------------------------------------------------------------------- > ngctl mkpeer ngeth0: vlan lower downstream > ngctl name ngeth0:lower vlanL2 > ngctl connect ngeth0: vlanL2: upper nomatch > ngctl mkpeer vlanL2: eiface vlan2555 ether > ngctl msg vlanL2: addfilter '{ vlan=3D2555 hook=3D"vlan2555" }' > ifconfig ngeth1 link 00:1a:4b:d4:3e:c2 > ifconfig ngeth1 10.125.0.1 netmask 255.255.255.0 > > The error is: > ---------------- > ngctl: send msg: Protocol family not supported > ngctl: send msg: No such file or directory > > > > Any advice? > > > > > > -- > "Opportunity is most often missed by people because it is dressed in > overalls and looks like work." > =C2=A0 =C2=A0Thomas Alva Edison > =C2=A0 =C2=A0Inventor of 1093 patents, including: > =C2=A0 =C2=A0 =C2=A0 =C2=A0The light bulb, phonogram and motion pictures. > --=20 "Opportunity is most often missed by people because it is dressed in overalls and looks like work." Thomas Alva Edison Inventor of 1093 patents, including: The light bulb, phonogram and motion pictures.