netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Any way to configure a vlan interface to grab ONLY untagged frames?
@ 2015-09-13 16:49 Nathan Neulinger
  2015-09-14 18:28 ` Vlad Yasevich
  0 siblings, 1 reply; 3+ messages in thread
From: Nathan Neulinger @ 2015-09-13 16:49 UTC (permalink / raw)
  To: netdev

It seems like running 'vconfig add IFACE 0' and using IFACE.0 would do this, but it doesn't actually seem to work that way.

If I capture on IFACE directly, I'd expect to get all traffic, including the tagged frames (with the tag intact). 
Looking to be able to bridge/capture/etc. and specifically only receive the untagged frames that haven't already been 
pulled out into a vlan specific interface.

Is there any way to accomplish this without using ebtables or other similar hacks?

-- Nathan

------------------------------------------------------------
Nathan Neulinger                       nneul@neulinger.org
Neulinger Consulting                   (573) 612-1412

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Any way to configure a vlan interface to grab ONLY untagged frames?
  2015-09-13 16:49 Any way to configure a vlan interface to grab ONLY untagged frames? Nathan Neulinger
@ 2015-09-14 18:28 ` Vlad Yasevich
  2015-09-14 18:35   ` Nathan Neulinger
  0 siblings, 1 reply; 3+ messages in thread
From: Vlad Yasevich @ 2015-09-14 18:28 UTC (permalink / raw)
  To: Nathan Neulinger, netdev

On 09/13/2015 12:49 PM, Nathan Neulinger wrote:
> It seems like running 'vconfig add IFACE 0' and using IFACE.0 would do this, but it
> doesn't actually seem to work that way.
> 
> If I capture on IFACE directly, I'd expect to get all traffic, including the tagged frames
> (with the tag intact). Looking to be able to bridge/capture/etc. and specifically only
> receive the untagged frames that haven't already been pulled out into a vlan specific
> interface.
> 
> Is there any way to accomplish this without using ebtables or other similar hacks?

If you are dealing with a hw interface, any interface that supports vlan
filtering will by default receive only untagged frames.  Only when you put
into promiscuous mode, will you receive all frames.

With bridge, you could configure your vlans adjacent to you bridge:

   vlan0...N   bridge
     |          |
     +-- eth0 --+

This way, configured vlan traffic will go to vlan devices, while all other
traffic will got bridge.  You can even limit this "all other traffic"
further, by turning on vlan filtering on the bridge which will allow
you to run eth0 in non-promiscuous mode thus enforcing HW vlan filters.

-vlad

> 
> -- Nathan
> 
> ------------------------------------------------------------
> Nathan Neulinger                       nneul@neulinger.org
> Neulinger Consulting                   (573) 612-1412
> -- 
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Any way to configure a vlan interface to grab ONLY untagged frames?
  2015-09-14 18:28 ` Vlad Yasevich
@ 2015-09-14 18:35   ` Nathan Neulinger
  0 siblings, 0 replies; 3+ messages in thread
From: Nathan Neulinger @ 2015-09-14 18:35 UTC (permalink / raw)
  To: Vlad Yasevich, netdev

That is a quite elegant solution. I will give that a try!

-- Nathan

On 09/14/2015 01:28 PM, Vlad Yasevich wrote:
> On 09/13/2015 12:49 PM, Nathan Neulinger wrote:
>> It seems like running 'vconfig add IFACE 0' and using IFACE.0 would do this, but it
>> doesn't actually seem to work that way.
>>
>> If I capture on IFACE directly, I'd expect to get all traffic, including the tagged frames
>> (with the tag intact). Looking to be able to bridge/capture/etc. and specifically only
>> receive the untagged frames that haven't already been pulled out into a vlan specific
>> interface.
>>
>> Is there any way to accomplish this without using ebtables or other similar hacks?
>
> If you are dealing with a hw interface, any interface that supports vlan
> filtering will by default receive only untagged frames.  Only when you put
> into promiscuous mode, will you receive all frames.
>
> With bridge, you could configure your vlans adjacent to you bridge:
>
>     vlan0...N   bridge
>       |          |
>       +-- eth0 --+
>
> This way, configured vlan traffic will go to vlan devices, while all other
> traffic will got bridge.  You can even limit this "all other traffic"
> further, by turning on vlan filtering on the bridge which will allow
> you to run eth0 in non-promiscuous mode thus enforcing HW vlan filters.
>
> -vlad
>
>>
>> -- Nathan
>>
>> ------------------------------------------------------------
>> Nathan Neulinger                       nneul@neulinger.org
>> Neulinger Consulting                   (573) 612-1412
>> --
>> To unsubscribe from this list: send the line "unsubscribe netdev" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

-- 
------------------------------------------------------------
Nathan Neulinger                       nneul@neulinger.org
Neulinger Consulting                   (573) 612-1412

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-14 18:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-13 16:49 Any way to configure a vlan interface to grab ONLY untagged frames? Nathan Neulinger
2015-09-14 18:28 ` Vlad Yasevich
2015-09-14 18:35   ` Nathan Neulinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).