

enter your sudo credentials if you are not running VMWare as root user.Use the menu EDIT->Virtual Network Editor.Within VMware Workstation do the following Create a vmnet host only interface in VMWare Workstation In this example we will use the network interface card enx002400000001 for illustration purposes. Physically connect a host network interface on the configured trunk port

Detailed instructions on how to get this done is switch specific (consult your switch manual).įor this example we configure the switch port #14 as trunk. Hint: obviously you need to have already defined your VLANs on the switch prior to the following steps. Add the newly created vmnet interface to your virtual machine.Create a bridge on the host with the physical interface as well as the vmnet host only interface created.Create a vmnet host-only interface within VMWare workstation.Physically connect a host network interface on the configured trunk port.Configure the trunk port on the physical switch.The following quickly shows the necessary steps to access the traffic from a physical trunk port on a switch within a virtual machine. Virtualized firewall for a lab that includes physical as well as virtual components that are separated using VLANs. Sometimes it is helpful to get access to a trunk port in order to use VLANs within VMWare Workstation on Linux.īased on an older article at by Nicholas Weaver describing a similar scenario for KVM and VLANs I assembled how to get it done with VMWare Workstation 12 on Ubuntu 16.04 LTS.
