Hello,
I'm using VMWare workstation player 12 in linux (LXLE distribution, based on ubuntu), with a guest OS based on windows XP. This setup is working fine whenever I configure it with "bridged" or "NAT". Strangely, I don't have the option "custom" in my network settings, so I cannot test it.
Now, for security concerns, I'd like the guest would connect to different network of the host.
For that purpose, I created a VLAN and configured everything so that the host is receiving both VLAN tagged (via a virtual eth0.2 NIC) and "normal" untagged traffic (via the physical eth0 NIC). I also created a virtual bridge (bridge-utils package - brctl commands) where I associated the eth0.2 NIC.
In other words:
eth0 (physical) --> receives "normal" lan packets, gets its IP via the DHCP server from the 192.168.2.x network. This is my home LAN, which I want to keep secured, and therefore don't want the guest to access.
eth0.2 (virtual, based on the physical eth0) --> receives and decodes VLAN2 tagged packets, gets its IP via the DHCP server from the 192.168.1.x network. This is an external LAN, which I don't mind if its secured or not and where I'd like the guest to connect.
br0 --> virtual bridge witch has the eth0.2 card. I believe id need to add to it some sort of "vmnet" card in order to establish communication to the external LAN.
I'd believe what I'm missing here is to somehow add a vmnet NIC to the bridge, but unfortunately I don't have a vmnet0 NIC neither the option "custom" in the VMWare network settings.
Other alternative would be, maybe, to associate the bridge option (in VMWare player network settings) to eth0.2 instead of eth0, but either way, I'm not being able to get it sorted.
My ifconfig -a only reports:
- br0 (bridge)
- eth0 (physical NIC)
- eth0.2 (virtual NIC associated to the VLAN)
- vmnet1 (which I believe is NAT)
- vmnet8 (which I believe is Host-to-host)
Any idea/suggestion on how can I close this gap? I feel I'm so close and yet so far....
Thanks,
Joao