Re: NETGRAPH- bridge vlans using netgraph help

2018-05-10 Thread Julian Elischer
On 9/5/18 11:24 pm, Abdullah Tariq wrote: a picture would do wonders to understand what he wants.  Apologies for being AWOL  Attaching an image link: https://ibb.co/nt1s4S Ok so, it looks like there i a problem in concepts. FreeBSD doesn't really know about tags inside the machine.. It

Re: NETGRAPH- bridge vlans using netgraph help

2018-05-09 Thread Eugene Grosbein
09.05.2018 22:24, Abdullah Tariq wrote: > a picture would do wonders to understand what he wants. > > Apologies for being AWOL > Attaching an image link: https://ibb.co/nt1s4S As I've previously said, this pictures switch-style behaviour. FreeBSD is not a switch, and you get exactly same

Re: NETGRAPH- bridge vlans using netgraph help

2018-05-09 Thread Abdullah Tariq
> > a picture would do wonders to understand what he wants. Apologies for being AWOL Attaching an image link: https://ibb.co/nt1s4S On Tue, May 1, 2018 at 8:39 PM, Julian Elischer wrote: > On 1/5/18 11:16 pm, Freddie Cash wrote: > > On Tue, May 1, 2018 at 6:08 AM, Julian Elischer > wrote: >

Re: NETGRAPH- bridge vlans using netgraph help

2018-05-01 Thread Julian Elischer
On 1/5/18 11:16 pm, Freddie Cash wrote: On Tue, May 1, 2018 at 6:08 AM, Julian Elischer >wrote: On 1/5/18 2:08 am, Eugene Grosbein wrote: 01.05.2018 1:03, Freddie Cash wrote: On Mon, Apr 30, 2018 at 10:59 AM, Eugene Grosbein mailto

Re: NETGRAPH- bridge vlans using netgraph help

2018-05-01 Thread Freddie Cash
On Tue, May 1, 2018 at 6:08 AM, Julian Elischer wrote: > On 1/5/18 2:08 am, Eugene Grosbein wrote: > >> 01.05.2018 1:03, Freddie Cash wrote: >> >> On Mon, Apr 30, 2018 at 10:59 AM, Eugene Grosbein >> >wrote: >>> >>> > What the OP is trying to do is have PC1 send un

Re: NETGRAPH- bridge vlans using netgraph help

2018-05-01 Thread Julian Elischer
On 1/5/18 2:08 am, Eugene Grosbein wrote: 01.05.2018 1:03, Freddie Cash wrote: On Mon, Apr 30, 2018 at 10:59 AM, Eugene Grosbein mailto:eu...@grosbein.net>>wrote: > What the OP is trying to do is have PC1 send untagged packets to igb0 on FreeBSD which is configured for tagged vlan 5.

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-30 Thread Eugene Grosbein
01.05.2018 1:03, Freddie Cash wrote: > On Mon, Apr 30, 2018 at 10:59 AM, Eugene Grosbein >wrote: > > > What the OP is trying to do is have PC1 send untagged packets to igb0 > on FreeBSD which is configured for tagged vlan 5. > > Then bridge the packets to igb1

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-30 Thread Freddie Cash
On Mon, Apr 30, 2018 at 10:59 AM, Eugene Grosbein wrote: > 30.04.2018 23:46, Freddie Cash wrote: > > > What the OP is trying to do is have PC1 send untagged packets to igb0 on > FreeBSD which is configured for tagged vlan 5. > > Then bridge the packets to igb1 which is also configured for tagged

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-30 Thread Eugene Grosbein
30.04.2018 23:46, Freddie Cash wrote: > What the OP is trying to do is have PC1 send untagged packets to igb0 on > FreeBSD which is configured for tagged vlan 5. > Then bridge the packets to igb1 which is also configured for tagged vlan 5. > Then send the packets out, untagged, to PC2. Why wou

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-30 Thread Freddie Cash
On Sat, Apr 28, 2018 at 12:55 PM, Eugene Grosbein wrote: > 28.04.2018 21:57, 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

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-29 Thread Abdullah
>and read this: >https://people.freebsd.org/~julian/netgraph.htm Will look into it too, thanks Julian. Regards Abdullah On Sun, Apr 29, 2018, 21:41 Julian Elischer wrote: > On 28/4/18 8:28 pm, Eugene Grosbein wrote: > > 28.04.2018 19:10, Abdulla

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-29 Thread Julian Elischer
On 28/4/18 8:28 pm, Eugene Grosbein 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

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-29 Thread Abdullah
> 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)?

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-29 Thread Abdullah
Yes. Regards Abdullah On Sun, Apr 29, 2018, 00:50 Eugene Grosbein wrote: > 28.04.2018 20:16, Abdullah Tariq wrote: > > > 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 v

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-28 Thread Eugene Grosbein
28.04.2018 21:57, 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). Not entirely

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-28 Thread Eugene Grosbein
28.04.2018 20:16, Abdullah Tariq wrote: > 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 eith

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-28 Thread Abdullah Tariq
> > 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 por

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-28 Thread Freddie Cash
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

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-28 Thread Freddie Cash
On Sat, Apr 28, 2018, 6:17 AM Abdullah Tariq wrote: > > > > 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 u

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-28 Thread Abdullah Tariq
> > 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 o

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-28 Thread Eugene Grosbein
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 sho

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-28 Thread Eugene Grosbein
28.04.2018 19:10, Abdullah Tariq 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. > Apologies again, last i thought i had replied to all after your first > pointing out😷 You don't understand what top-posti

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-28 Thread Abdullah Tariq
> > You are still ignoring requests to not top-post and I'm getting tired to > fix it for you. > I may just stop responding. > Apologies again, last i thought i had replied to all after your first pointing out😷 If you really want to bridge 802.1q trunks, you should be stating so from > the beginn

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-28 Thread Eugene Grosbein
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 re

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-28 Thread Abdullah
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 lin

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-28 Thread Eugene Grosbein
28.04.2018 12:49, Abdullah Tariq wrote: You still top-posting. Please don't. > > And please do not top-post and reply to the list, not privately. > Thank you. > > sorry for that. > > They do but that's not what you need. You deal with untagged frames > on igb5, > > s

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-28 Thread Abdullah Tariq
So it is not possible to replicate behaviour of standard L2 switches using freebsd where we have different VLANs, access and trunk ports? On Fri, Apr 27, 2018 at 9:16 PM, Eugene Grosbein wrote: > 27.04.2018 22:57, Abdullah Tariq wrote: > > > And please do not top-post and reply to the list,

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-27 Thread Eugene Grosbein
27.04.2018 22:57, Abdullah Tariq wrote: > And please do not top-post and reply to the list, not privately. Thank > you. > > sorry for that. > > > They do but that's not what you need. You deal with untagged frames on > igb5, > so do not create any vlan on top on igb5 but use

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-27 Thread Abdullah Tariq
> > And please do not top-post and reply to the list, not privately. Thank you. sorry for that. > > They do but that's not what you need. You deal with untagged frames on > igb5, > so do not create any vlan on top on igb5 but use it directly: > ifconfig bridge10 create addm igb5 addm vlan3 up s

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-27 Thread Eugene Grosbein
27.04.2018 21:39, Abdullah Tariq wrote: > > No, i am trying to bridge untagged frames between vlans of these > interfaces. Is it doable? > > Sure. If you need to accept untagged frames from igb5, add tag 5 and send > over igb6, > just create a bridge and add igb5 and vlan2 (vlan 5 v

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-27 Thread Slawa Olhovchenkov
On Fri, Apr 27, 2018 at 01:13:48AM +0700, Eugene Grosbein wrote: > 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 vla

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-27 Thread Eugene Grosbein
27.04.2018 21:28, Abdullah Tariq wrote: > No, i am trying to bridge untagged frames between vlans of these interfaces. > Is it doable? Sure. If you need to accept untagged frames from igb5, add tag 5 and send over igb6, just create a bridge and add igb5 and vlan2 (vlan 5 vlandev igb6) to the br

Re: NETGRAPH- bridge vlans using netgraph help

2018-04-26 Thread Eugene Grosbein
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 crea