Hi,
I am a network engineer, so i know my way around a router and switch but not on ESXi.
I have a network management VM on my ESXi host and I would like my VM to reach different networks/VLANs, so i'll connect a router to my ESXi host and have a switch behind that router, the switch will have a link to different VLANs and between the router and the switch will be a trunk, so I can basically extend reachability to those VLANs.
How do i setup my ESXi host, to have one physical interface, divided using 802.1Q sub interfaces, each one with a different VLAN tag ? That's usually referred to as router-on-a-stick model.
ESXi(VM)===[subinterfaces]====Router===[trunk]====Switch===(VLAN X, Y, X)