Direction connection to port on RB5009 to access VLAN

Hi, I’m new to Mikrotik and I’m trying to set up separate VLANs for my home and IoT devices.

I have set up eth8 as a trunk port for VLAN10 and VLAN20 and it goes to a switch that splits out the VLANs, but I also want a direct connection for my PC to the router on say, eth2. How do I configure eth2 on the router to be an access port for VLAN20 in WinBox?

Thank you

See this excellent thread made by pcunite:
http://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/1

Add ether2 as untagged port for VLAN20 on your bridge.

Without seeing your exported config, it is hard to know how you set up the VLAN10 and VLAN20. If you created the vlan interfaces on ether8 instead of the vlan-filtered bridge, you will need to make more extensive changes that what was suggested by @holvoetn.

If you don’t know how to export the config for posting, read this New User Posting For Assistance

For info about setting up access and trunk ports, the thread referenced by @holvoetn has some examples, if you want more details see the links in this post.