# Bro vlan tagging

**URL:** <https://community.zeek.org/t/bro-vlan-tagging/866>\
**Category:** Zeek\
**Created:** [September 20, 2005, 12:12am UTC](https://community.zeek.org/t/bro-vlan-tagging/866 "2005-09-20T00:12:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vern](https://yyz1.discourse-cdn.com/flex011/user_avatar/community.zeek.org/vern/32/630_2.png) [@Vern](https://community.zeek.org/u/Vern)\
**Post date:** [September 20, 2005, 12:12am UTC](https://community.zeek.org/t/bro-vlan-tagging/866/1 "2005-09-20T00:12:47Z")

</div>

> If you need to filter on a specific tag, I believe pcap.bro will need  
> some tweaking.

For a VLAN with tag XX, I think the following might work (in place of  
loading vlan.bro):

&nbsp;&nbsp;redef restrict\_filters += { ["vlan"] = "vlan XX" };  
&nbsp;&nbsp;redef encap\_hdr\_size = 4;

or for a set of VLAN's with tags XX, YY and ZZ:

&nbsp;&nbsp;redef restrict\_filters += { ["vlan"] = "vlan XX or vlan YY or vlan ZZ" };  
&nbsp;&nbsp;redef encap\_hdr\_size = 4;

- Vern

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/zeek/original/1X/f09d732bc2cc7c7cc7e35db67cf4e1d5233ce7a7.png) [@system](https://community.zeek.org/u/system)\
**Post date:** [May 6, 2022, 3:37pm UTC](https://community.zeek.org/t/bro-vlan-tagging/866/2 "2022-05-06T15:37:41Z")

</div>


