1. For the trunk port, set the VID field with VLAN IDs it handles (tagged). In my setup, eth0 is my trunk port and it allows VLAN ID 1, 10, 20 and 100 to pass-through.
2. For VLAN port (un-tagged), put the desired VLAN ID in the PVID field (see example below)
3. Last but not least, it may worthwhile to tick the "Use non-default VLAN for management" option, and set the VLAN ID to the VLAN which you would like to be used as your management network while using the wizard to setting up the ER-X. This allows you to get back to the ER-X later if you wish to change its settings later.