Here is my homelab that I will refer to :
http://tinypic.com/r/2zh4cj9/5
I was silly enough not to do my homework properly and chose wrong switch for my homelab. The switch I have got (HP Procurve 1810-8G) has VLAN tagging option for ports, but no VLAN routing. Before I go and buy something that does it ( like Cisco SG300) I would like to see if I can use existing linux server for this purpose. As you see, the lab consists of three esx hosts and uses vDS. I would like to use VLANs for VMs and VMkernel interfaces.
Would it be possible to use Ubuntu server as a VLAN router in my case? This server has a single interface only.
My understanding is that I could assign vlan interfaces to a physical interface on Ubuntu server and enable packet forwarding. Then for example, I could place VMs in VLAN200 and set gateway for them to be 10.100.200.1. This would let VMs to be encapsulated in VLAN200 and access internet at the same time.
At the moment everything is running in flat 192.168.0.0/24 network and naturally things get messed up - one example is that packets from dhcp Windows VMs, Autodeploy DHCP and home ADSL router DHCP are in the same network.
I suspect I am missing something here. For one thing, I cannot ping virtual interface from VM if I place them in the same subnet...