Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Apr 2018 01:13:48 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Abdullah Tariq <ab.tariq90@gmail.com>, freebsd-net@freebsd.org
Subject:   Re: NETGRAPH- bridge vlans using netgraph help
Message-ID:  <5AE216DC.7010905@grosbein.net>
In-Reply-To: <CAPFxuwQOBkGTHZbGfJz=-fUW8M%2BQGOpTM9T%2B-RO6H4fWcGEtqA@mail.gmail.com>
References:  <CAPFxuwQOBkGTHZbGfJz=-fUW8M%2BQGOpTM9T%2B-RO6H4fWcGEtqA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
27.04.2018 0:58, Abdullah Tariq wrote:

> I am trying to make 2 systems connected to freebsd box directly to be able
> to communicated with each other. Explanation diagram is attached
> 
> ifconfig vlan2 create vlan 5 vlandev igb5
> ifconfig vlan3 create vlan 5 vlandev igb6
> ifconfig bridge10 create addm vlan2 addm vlan3 up
> 
>  as explained to me on freebsd forums
> 
>> PC1 would send packets without any vlan tags attached (so they belong to
>> the "DEFAULT" vlan aka vlan 1). igb0 on FreeBSD would receive the packet,
>> compare the vlan tag to what it's configured to use (1 <--> 5), see they
>> are not equal, and would drop the packet.
>> Same for PC2. It would send untagged packets (aka vlan tag 1) to igb1.
>> FreeBSD would compare vlan tags, see they don't match what's set on igb1,
>> and drop the packets.
>> If you configure PC1 and PC2 to also use tagged vlan 5, then the bridge
>> configuration using tagged vlan 5 interfaces would work.
> 
> 
> 
> Which turns me to netgraph. The documentation is very very scarce. So i
> want to know if what i am trying to achieve is possible and if anyone can
> please guide me.
> Rhanks

If you want to bridge untagged frames between igb5 and igb6, you do not need
to dive into netgraph structures. Just create another bridgeX and add both of
igb5 and igb6 to that bridge.




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