From owner-freebsd-net@FreeBSD.ORG Fri May 2 18:04:35 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D42A6E1A for ; Fri, 2 May 2014 18:04:35 +0000 (UTC) Received: from mail-we0-x22c.google.com (mail-we0-x22c.google.com [IPv6:2a00:1450:400c:c03::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7226918B9 for ; Fri, 2 May 2014 18:04:35 +0000 (UTC) Received: by mail-we0-f172.google.com with SMTP id u57so4965295wes.31 for ; Fri, 02 May 2014 11:04:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=0szNfO+a/uo5kUZxE3BTKaVGco1oLRdtQqLzCbdQjG4=; b=X9pUzmXG4Rz3nkvtOK1HcUpNykckYbdGfF7VZaSP5OZJQwLPCV3CiYzDfoU+WCwchS GIhrTWsR8rA5YPzsa1FVT+I0gVmLOAQPoRODg28VOxPr4hfmB0Cn2OGkEJDPZ+dM/nks X7EY36oAmaNIKhw0BTwFhrrarILdES+dgLNg0DTpl5grVxImEd5RjhOYHGrPoBHLTkRs 8VXBdNV3HuHOGhYbWltaGzbavsBRznMWmA/2XMWIujsrLRSl8kztga/pjsEMtfvEng7s /Ze5zCMWvU3KwVrtq7JBkZN09hiP5RQcn+P3lzDu0Et67JNSrpGmkHVxe9b/AMG+/ny/ Bnvg== MIME-Version: 1.0 X-Received: by 10.194.88.74 with SMTP id be10mr1479840wjb.71.1399053873717; Fri, 02 May 2014 11:04:33 -0700 (PDT) Received: by 10.216.241.73 with HTTP; Fri, 2 May 2014 11:04:33 -0700 (PDT) Date: Fri, 2 May 2014 21:04:33 +0300 Message-ID: Subject: VLAN switching on freebsd From: =?UTF-8?B?w5Z6a2FuIEtJUklL?= To: "freebsd-net@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2014 18:04:35 -0000 Hi, i need to create a virtual interface that forwards only defined vlan tags. Lets talk on a sample scenario : Assume that VLAN 10, 20, 30, 40 tagged on switch connected to em0 interface. create ngeth0 and ngeth1. ( i dont need netgraph interface, it can be a any virtual interface tap .. etc. ) i want to see only VLAN 10, 20 tagged on ngeth0 and VLAN 10, 30, 40 tagged on ngeth1 I tried many ways but no success. Can you suggest a way to do this? Best regards