Date: Sat, 28 Apr 2018 17:20:13 +0700 From: Eugene Grosbein <eugen@grosbein.net> To: Abdullah <ab.tariq90@gmail.com> Cc: freebsd-net@freebsd.org Subject: Re: NETGRAPH- bridge vlans using netgraph help Message-ID: <5AE44ADD.7020302@grosbein.net> In-Reply-To: <CAFZYVy7_nVm5G1XDdM_TujN=jVbCyDEKABGbC=M9L5Lh1jAAzQ@mail.gmail.com> References: <CAPFxuwQOBkGTHZbGfJz=-fUW8M%2BQGOpTM9T%2B-RO6H4fWcGEtqA@mail.gmail.com> <5AE216DC.7010905@grosbein.net> <CAPFxuwSEDTNhfn1%2B1nXPAC6skJt%2BdAych10FN9bwwBVdqevO2w@mail.gmail.com> <5AE33513.1000001@grosbein.net> <CAPFxuwRceDDoTw-4EohRdjUMSE-YN4YKWhbObuvEpxzEWOh2_A@mail.gmail.com> <5AE34754.6040905@grosbein.net> <CAPFxuwQ5TwZnnW%2B1TT7urq_0pgb=sM_VwH4x0eq0363MCdb7hw@mail.gmail.com> <5AE34CFA.7000207@grosbein.net> <CAPFxuwR54nPiKAAACRY5a_GvDNOVfdniqv6F_3PK4--7vm03uA@mail.gmail.com> <5AE437C1.8010706@grosbein.net> <CAFZYVy7_nVm5G1XDdM_TujN=jVbCyDEKABGbC=M9L5Lh1jAAzQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
28.04.2018 16:26, Abdullah wrote: You are still ignoring requests to not top-post and I'm getting tired to fix it for you. I may just stop responding. >> You still top-posting. Please don't. >> It is possible to replicate *behaviour* but not configuration style. >> Unless you have real embedded switching chip in your system like many ARM or MIPS-based routers do, >> in which case you can use etherswitch(4) and etherswitchcfg(8) to create vlans and configure >> ports of such chip similar to L2 switches. > Configuration style doesn't really matter. > I am trying to figure out how to make tagged traffic talk in a bridge. > I have always had good support from bsd people over the last 4 5 years since i started using it, maybe it's time to add something to it :) > What gives me hope is that linux (cumulus linux, openswitch, ONL) are doing so, i dont see why BSD can't do it. I haven't searched much other bsd flavors though. Traffic of virtual lan (vlan) is not the same as tagged traffic, you know. You described a task where all vlan's ports are untagged and this is easily doable by bridging NIC interfaces without creation of syntetic vlan interface that is useless in case of untagged-only ports. If you really want to bridge 802.1q trunks, you should be stating so from the beginning. if_bridge(8) does not support tagged frames currently. It is generally bad idea to build full-blown switch out of FreeBSD unless you have mentioned companion switching chip. However, we still have several ways to bridge tagged traffic by means of creation multiple bridges (one per vlan) or using ng_vlan+ng_bridge to do the same.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5AE44ADD.7020302>