There’s another thread specific to VLAN’s:
Honestly, either solution described should work (assuming your network gear is compatible).