Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 May 2014 21:59:39 +0300
From:      =?UTF-8?B?w5Z6a2FuIEtJUklL?= <ozkan.kirik@gmail.com>
To:        =?UTF-8?B?w5Z6a2FuIEtJUklL?= <ozkan.kirik@gmail.com>,  "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
Subject:   Re: VLAN switching on freebsd
Message-ID:  <CAAcX-AEQNHBzOaUMbo2PakkLG8R-H4yLW4O%2BGtNZGdA6yn9pLQ@mail.gmail.com>
In-Reply-To: <20140502183422.GS43976@funkthat.com>
References:  <CAAcX-AHG2vtykOsrGdXMW8WgJGCdnFZ5pWqynuuON6VYuG%2BCNQ@mail.gmail.com> <20140502183422.GS43976@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thank you very much John,

This approach is enlightened me. I'll try it.
I couldnt think of use ng_vlan  in front of ngeth nodes.

I used openvswitch for this scenario, but performance is very very poor.
I'm looking forward to release of the "in-kernel openvswitch on freebsd"
project of Luigi Rizzo.

Best Regards


On Fri, May 2, 2014 at 9:34 PM, John-Mark Gurney <jmg@funkthat.com> wrote:

> zkan KIRIK wrote this message on Fri, May 02, 2014 at 21:04 +0300:
> > i need to create a virtual interface that forwards only defined vlan
> tags.
> > Lets talk on a sample scenario :
> >
> > Assume that VLAN 10, 20, 30, 40 tagged on switch connected to em0
> interface.
> >
> > create ngeth0 and ngeth1. ( i dont need netgraph interface, it can be a
> any
> > virtual interface tap .. etc. )
> > i want to see only VLAN 10, 20 tagged on ngeth0
> > and VLAN 10, 30, 40 tagged on ngeth1
> >
> > I tried many ways but no success.
> >
> > Can you suggest a way to do this?
>
> I'm not familar w/ netgraph, but it looks like you might be able to
> do something simlar w/ ng_vlan and ng_bridge?  Though bridge could be
> replaced w/ one2many, or hub depending upon requirements...  Also, is
> this purely for snooping traffic? or do you want to be able to pass
> traffic both ways?
>
>                    em0
>                     |
>                   ng_vlan
>          /        /     \     \
>         10       20     30    40
>          |        |      |     |
>          |    ng_bridge  |     |
>          \      /   \    |     |
>           ng_vlan       ng_vlan
>               |             |
>            ngeth0         ngeth1
>
> Not sure if this is exactly what you want, but I think it would...
> Though I don't know if you tried this, since you didn't describe
> anything you tried...
>
> --
>   John-Mark Gurney                              Voice: +1 415 225 5579
>
>      "All that I will do, has been done, All that I have, has not."
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAcX-AEQNHBzOaUMbo2PakkLG8R-H4yLW4O%2BGtNZGdA6yn9pLQ>