When using the VMware ESX server in your corporate infrastructure, you not only save money and space on multiple servers being consolidated into one bit of equipment, but you can also have different servers that require different VLANs on the network use the same single interface on your core. This is done by using a trunk port. Trunk ports allow multiple VLANs to pass through the same interface using the IEEE standard of 802.1Q encapsulation.
- Skill level:
Other People Are Reading
Things you need
- Core switch with IOS
- SSH tool
Open the web browser on your PC and connect to the IP address or Fully Qualified Domain Name of your ESX VMWare server. From here, download the Virtual Infrastructure Client (VIC) from the link and choose to install, if you don't already have it installed on the PC.
Enter your username and password as well as the host name or IP address of the ESX server in the newly installed VIC. When connected, navigate to "Inventory" and "Networking" from the home screen.
Open the ESX host you wish to add the trunk port to, select the "Configuration" tab and, from the "Hardware" section, choose "Networking." Select the "Add Networking" link and create the new virtual switch.
Select the type of interface that best suits your needs, in this case, virtual machine. From the next screen choose the physical interface on the host server to which you want to bind this.
Give the new virtual switch a name and confirm all the settings are correct and save the configuration.
Patch the physical interface of the ESX server into the core switch that the rest of the network is patched into. Make a note of the interface you use on the core and ensure that it is the correct interface type for your needs; a trunk port like this would require a Gigabit interface if multiple virtual machines will be running through this interface.
Download and install the PUTTY application (see Resources). Open PUTTY and connect to the management interface of the core switch.
Enter into configuration mode on the switch and select the interface into which you have patched the ESX server interface.
Enable the IEEE 802.1Q encapsulation on the interface with the "switchport trunk encapsulation dot1q" command. Set the port to trunk mode with the command "switchport mode trunk".
Set a name for the switch to match the hostname of the ESX server and the Interface name/number using the "Description ....." command. Return to the enable prompt and save the new configuration using the "write mem" or "copy run start" command.
- 20 of the funniest online reviews ever
- 14 Biggest lies people tell in online dating sites
- Hilarious things Google thinks you're trying to search for