Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Apr 2018 19:28:05 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Abdullah Tariq <ab.tariq90@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: NETGRAPH- bridge vlans using netgraph help
Message-ID:  <5AE468D5.9030702@grosbein.net>
In-Reply-To: <CAPFxuwQ=Gi7GiVr%2BsdTavr6r44ftaeFDOvN7%2B3qi_7aZyH6kXw@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> <5AE44ADD.7020302@grosbein.net> <CAPFxuwQ=Gi7GiVr%2BsdTavr6r44ftaeFDOvN7%2B3qi_7aZyH6kXw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
28.04.2018 19:10, Abdullah Tariq wrote:

>       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. 
> 
> bridge1 will contain vlan 1
> bridge2 will containn vlan2
> 
> and bridge3 should have bridge1 and bridge2?

No, its simplier: single bridge contains all interfaces corresponting to ports of single vlan.
You can bridge plain igb* interfaces for untagged ports; or bridge interface igbX with interface vlanY
when one port carries untagged frames of vlan and another ports carries tagged frames of the same vlan;
or bridge interface vlans together when all of them carry tagged frames of the vlan.

> If not, can you please give some instructions/guidelines for   ng_vlan+ng_bridge?

I still think you should not dive into building complex netgraph structures
while the task can be solved simplier. But if you want to take that path, start by
reading man ng_vlan, man ng_ether, man ng_bridge and man ng_eiface and try examples therein.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5AE468D5.9030702>