Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Apr 2018 18:16:14 +0500
From:      Abdullah Tariq <ab.tariq90@gmail.com>
To:        Eugene Grosbein <eugen@grosbein.net>
Cc:        freebsd-net@freebsd.org
Subject:   Re: NETGRAPH- bridge vlans using netgraph help
Message-ID:  <CAPFxuwRdLrEmtVHGSruja6L-bcOi0Z59ae5mB1gWgi-PvU6inw@mail.gmail.com>
In-Reply-To: <5AE468D5.9030702@grosbein.net>
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> <5AE468D5.9030702@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
>
> 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.
>
>
Sorry but getting a little confused here.
Lets say i have 2 interfaces igb0, igb1 and i want them to have tagged
traffic.
I create vlan1 tagged 10 on igb0
and vlan2 tagged 10 on igb1
Next i create bridge0, assign vlan1 and vlan2 (no IPs on either the bridge,
physical interface on VLANs)?  PCs connected with igb0 and igb1 have
similar IP config (e.g 192.168.10.1 and 192.168.10.2)
Am i correct?




On Sat, Apr 28, 2018 at 5:28 PM, Eugene Grosbein <eugen@grosbein.net> wrote:

> 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?CAPFxuwRdLrEmtVHGSruja6L-bcOi0Z59ae5mB1gWgi-PvU6inw>