Using a hEX S as a VLAN

Holvoetn’s link points you in the right direction, and this thread actually contains a full worked example of what you need: