From owner-freebsd-net@FreeBSD.ORG Wed Dec 28 19:37:36 2011 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 EC9A71065675 for ; Wed, 28 Dec 2011 19:37:36 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 798C78FC1E for ; Wed, 28 Dec 2011 19:37:36 +0000 (UTC) Received: by wgbdr11 with SMTP id dr11so22430286wgb.31 for ; Wed, 28 Dec 2011 11:37:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=reply-to:from:to:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:x-mailer :thread-index:content-language; bh=vX7LiJqRpAf6spEvMb2Cd0wRMGSlpnop+YRp4ZrJUKA=; b=qEy0etbiaqGkv+fzRhwk8HJGJjWeO8r/m3eTk/qHJIu18C9Z2rLG/A8xpvy1bGFMmi z9QkJPj6HlosUmk1np+iJVf2qttHI3P8g5zjxFSS46YGxcvVWKEghjNpnXhK+I97Qmyj xkxAX2EmP0hGC22LsRagzpk8j5uMq3PIhxH5U= Received: by 10.227.208.78 with SMTP id gb14mr32484968wbb.21.1325101055150; Wed, 28 Dec 2011 11:37:35 -0800 (PST) Received: from rimwks1w7x64 ([31.47.165.90]) by mx.google.com with ESMTPS id di5sm77025807wib.3.2011.12.28.11.37.31 (version=SSLv3 cipher=OTHER); Wed, 28 Dec 2011 11:37:33 -0800 (PST) From: rozhuk.im@gmail.com To: "'Patrick Tracanelli'" , References: <3277161C-D037-4B47-9368-AC47EEA27FBC@freebsdbrasil.com.br> In-Reply-To: <3277161C-D037-4B47-9368-AC47EEA27FBC@freebsdbrasil.com.br> Date: Thu, 29 Dec 2011 04:37:26 +0900 Message-ID: <4efb6ffd.455fb40a.1880.14e0@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AczFcVG5TgFd3FL8RqGGdHlvuKF8UQAJW3Ig Content-Language: ru Cc: Subject: RE: Netgraph VLAN in VLAN (q-in-q) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Rozhuk.IM@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2011 19:37:37 -0000 Hi! If you need custom encap tag, use this: http://www.freebsd.org/cgi/query-pr.cgi?pr=161908 Scheme: ng_ether <-> ng_vlan(outer/metro tag) <-> ng_vlan(inner/customer tag) <-> ng_eiface > -----Original Message----- > From: owner-freebsd-net@freebsd.org [mailto:owner-freebsd- > net@freebsd.org] On Behalf Of Patrick Tracanelli > Sent: Wednesday, December 28, 2011 11:33 PM > To: freebsd-net@freebsd.org > Subject: Netgraph VLAN in VLAN (q-in-q) > > Hello, > > I need to setup a typical q-in-q environment, here's what I am working > on: > > ngctl mkpeer em2: vlan lower downstream > ngctl name em2:lower vlanL1 > ngctl connect em2: vlanL1: upper nomatch > ngctl mkpeer vlanL1: eiface > vlan2589 ether ngctl msg vlanL1: addfilter '{ vlan=2589 hook="vlan2589" }' > > # assign em2 mac address > ifconfig ngeth0 lladdr 00:21:5e:8a:0e:73 > > # Do everything again but the new vlan will have the previous # as > parent... > ngctl mkpeer ngeth0: vlan lower downstream ngctl name ngeth0:lower > vlanL2 ngctl connect ngeth0: vlanL2: upper nomatch ngctl mkpeer vlanL2: > eiface vlan110 ether ngctl msg vlanL2: addfilter '{ vlan=110 > hook="vlan110" }' > > ifconfig ngeth1 lladdr 00:21:5e:8a:0e:73 > > But when I run: > > # ngctl mkpeer ngeth0: vlan lower downstream > > I get: > > ngctl: send msg: Protocol family not supported > > I am clueless what I am doing wrong at this point. Can someone help me > with this little ng problem? > > Its an 8.2-STABLE on i386 box. > > Thank you :) > > -- > Patrick Tracanelli > > > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"