I hope this is the correct place for this question. I thought about posting it to Super User first, but it seems to be more relevant to this place. Anyway, here goes:
I need to connect a device plugged into a physical ethernet port of my workstation to an existing virtual switch. The physical device and a VM need to share the same network, both need to be connected to the internet via NAT and a second network adapter of my PC.
As a picture often is better than a thousand words, here is a little ASCII art drawing of what I want to achieve:
The internets!
|
__
| | router,
__|__|__ firewall, etc.
|
___________________________________________________________
| | | | | |
__
| | (other machines on the physical network)
__|__|__ my workstation
| (doing NAT)
___________
| |
__ __
| | | |
__|__|__ __|__|__
physical virtual
device machine
I can't simply connect the physical device to a physical switch and bridge the VM into the main network because for my testing the VM needs to run a DHCP server among other things, and the admins would be coming after me with torches and pitchforks if I put a rogue DHCP server into our main network.
My problem is, I have absolutely no idea what I need to do to "plug" the physical port into the virtual switch, and I would be grateful for any input on how to do it.
If this isn't possible with VMware Player or Workstation, is there other software able to do what i want? Virtualbox, maybe?