From owner-freebsd-net@freebsd.org Sat Apr 28 18:26:53 2018 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 844A2FB635B for ; Sat, 28 Apr 2018 18:26:53 +0000 (UTC) (envelope-from ab.tariq90@gmail.com) Received: from mail-it0-x229.google.com (mail-it0-x229.google.com [IPv6:2607:f8b0:4001:c0b::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1EC697DE74 for ; Sat, 28 Apr 2018 18:26:53 +0000 (UTC) (envelope-from ab.tariq90@gmail.com) Received: by mail-it0-x229.google.com with SMTP id j186-v6so5470111ita.5 for ; Sat, 28 Apr 2018 11:26:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=nboKFcsmOA+li+QYEENODJEC/NrP3aepNqs18UtSSvA=; b=gger6iVfXDi+SwovBA7TRTJtNIs4ZU/4TXLzUb66+nwus1ArfIv4abbnMi/avzNPWZ vT+k6TTKg4U1NbVT0DT6YVuI6ZDFfiqOH9qpY9xe9vkoRtoP+mkhErfnYz+A3GzNAhHD pUwTgP2y4ux3EmpELppZT9fPcMHy4MqKCwced98m4zA4C0BmpC83L5HKM+kv3WikYqBF OT1BvoHWpRTFytYnflpNEdr1GQmIdQ+ZWrvpLItsdm+DXv0VeqfvFkBYohgUhq694+2H k1Y5ijDeSjyFYgWEg6ryzofmrOKmlodp+/yT0veoH8t9CrrOo6RjPsts8WmlWSYZE3Gv nWvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=nboKFcsmOA+li+QYEENODJEC/NrP3aepNqs18UtSSvA=; b=FguDNBR36X50bhnjZKi8mK9DvM9IZi50oI2y9UQ8SKSI4GuzZQf8pZv2Lq3beM1X/s ZR7y0w729OgumFJf8mGODk1pEvovpoht3/GUalWwlvbNVzBXcQ5lK268Fz06EJSuoO78 CkAnVMxTirfQKplKp+H475OsTkXYXlOXpVu7+mRhpWSZ8hVkPfWEIsmNkyFjusBryOiN 38b1kaKf0n1LzjE0HZQCbAvIYe92t3xhrSl/35q5G+2N4/hHItDowxfl4y7QlMS9y3cd BN6rX7z9LOQpyiiggiZVBPFPpowDACF2s3X3mdyYXuGX04TqqywSGy/65wR7ehsV533W gjRA== X-Gm-Message-State: ALQs6tA6uXJlP8r68USP4L9U5+to2nCl7/rWkno3bUIJ7wQTyj55Yv3s /xZBuwCoppQrCKdOXjvFcjPKgfRznxgn2SEJT50= X-Google-Smtp-Source: AB8JxZoXwtbKHlaeNUyL+zHA7wn6vBo3haxBT0DbFnIfUieskERp2X/jgktGgJObrGMGVTJqtRGOPehRoYBKymtMibY= X-Received: by 2002:a24:a342:: with SMTP id p63-v6mr6455411ite.146.1524940012537; Sat, 28 Apr 2018 11:26:52 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:4a93:0:0:0:0:0 with HTTP; Sat, 28 Apr 2018 11:26:52 -0700 (PDT) In-Reply-To: References: <5AE216DC.7010905@grosbein.net> <5AE33513.1000001@grosbein.net> <5AE34754.6040905@grosbein.net> <5AE34CFA.7000207@grosbein.net> <5AE437C1.8010706@grosbein.net> <5AE44ADD.7020302@grosbein.net> <5AE468D5.9030702@grosbein.net> From: Abdullah Tariq Date: Sat, 28 Apr 2018 23:26:52 +0500 Message-ID: Subject: Re: NETGRAPH- bridge vlans using netgraph help To: Freddie Cash Cc: Eugene Grosbein , freebsd-net Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2018 18:26:53 -0000 > > If you want to think of it in switch terms, FreeBSD supports access ports > (untagged vlan) and trunk ports (tagged vlans). But there's no support for > hybrid ports (tagged vlans with a PVID on the port that adds tags to > untagged traffic). > > What you are trying to do is create a hybrid port with a vlan tag of 5 and > a PVID of 5, such that untagged traffic from PC1 is allowed into vlan5 > interface. Not going to happen. > > Ok everything clear now, thank you. One last thing, is this not doable with netgraph either? On Sat, Apr 28, 2018 at 7:57 PM, Freddie Cash wrote: > If you want to think of it in switch terms, FreeBSD supports access ports > (untagged vlan) and trunk ports (tagged vlans). But there's no support for > hybrid ports (tagged vlans with a PVID on the port that adds tags to > untagged traffic). > > What you are trying to do is create a hybrid port with a vlan tag of 5 and > a PVID of 5, such that untagged traffic from PC1 is allowed into vlan5 > interface. Not going to happen. > > Cheers, > Freddie > > Typos courtesy of my phone. > >>