Port Trunking for Virtualisation

From Peter Pap's Technowiki
Jump to: navigation, search

Trunking ports for VMware

To trunk the first 4 ports on a switch, apply the following commands to Cisco Switch command line:

   conf t
   interface range GigabitEthernet1/1 - 4
   description Some Description
   switchport trunk encapsulation dot1q – ESX only supports dot1q and not ISL
   switchport trunk allowed vlan 100,200 – Allowed VLANs
   switchport mode trunk – Enables Trunk
   switchport nonegotiate – ESX/ESXi does not support DTP dynamic trunking protocol. When configuring trunk port, set it to nonegotiate.
   spanning-tree portfast trunk – Enables PortFast on the interface when it is in trunk mode. 
   end