Changes between Version 1 and Version 2 of VmwareESXToCiscoGEC
- Timestamp:
- Sep 14, 2010 5:41:32 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
VmwareESXToCiscoGEC
v1 v2 1 1 == Connect ESX Host To Cisco Switch With Gigabit !EtherChannel == 2 2 3 The `vSwitch0` virtual switch was created during installation of ESX software on the host. Service concole port (`vswif0`) and the "VM Network" port group are both connected to this switch. In **vSphere Client** (//Configuration > Networking//) default setup will be depicted like this: 3 === ESX 4.1 Host === 4 4 5 [[Image(vSwitch0-00.png)]] 5 The `vSwitch0` virtual switch was created during installation of ESX software on the host. Service concole port (`vswif0`) and the "VM Network" port group are both connected to this switch. 6 7 In **vSphere Client** (//Configuration > Networking//) default setup will be depicted like this: \\ \\ [[Image(vSwitch0-00.png)]] 6 8 7 9 The same information can be displayed from the command line on ESX host as well. … … 18 20 }}} 19 21 20 First will add a VMkernel port group and configure its IP settings (required for VMotion).22 1. Add a VMkernel port group and configure its IP settings (required for VMotion). 21 23 22 24 {{{ … … 25 27 }}} 26 28 29 2. Enable VMotion through the new port group. 30 31 {{{ 32 # esxcfg-vmknic -l |awk '/VMKernel/ {print $1}' 33 vmk3 34 # vmware-vim-cmd /hostsvc/vmotion/vnic_set vmk3 35 }}} 36 27 37 {{{#!comment 28 38 [[Image(vSwitch0-01.png)]] 29 39 }}} 30 40 31 Then will link three additional physical network adapters to the same virtual switch. 41 3. Link three additional physical network adapters to the same virtual switch. 42 32 43 {{{ 33 44 # esxcfg-vswitch -L vmnic1 vSwitch0 … … 47 58 }}} 48 59 49 To configure //NIC Teaming// will use the **vSphere Client**. 60 Corresponding graphical presentation in **vSphere Client** will transform to the following: \\ \\ [[Image(vSwitch0-02.png)]] 50 61 51 [[Image(vSwitch0-02.png)]] 62 4. Configure load balancing policy based on a hash of the source and destination IP addresses. 52 63 53 In **vSwitch0 Properties** open the **NIC Teaming** tab, and choose the //"Route based on IP hash"// option for **Load Balancing**, and also choose //"No"// for **Fallback**. On the **General** tab one can adjust number of ports supported by the virtual switch. In the latter case reboot will be required for this new setting to take effect. 64 {{{ 65 # vmware-vim-cmd /hostsvc/net/vswitch_setpolicy --nicteaming-policy=loadbalance_ip vSwitch0 66 }}} 54 67 55 [[Image(vSwitch0-03.png)]] 68 5. Disable rolling failover for faulty !EtherChannel members. 56 69 57 On a **Cisco C2960** switch configure static (without PAgP or LACP) four-port 802.3ad channel group (interfaces Gi0/13 thru Gi0/16 are all configured identically). 70 {{{ 71 # vmware-vim-cmd /hostsvc/net/vswitch_setpolicy --nicteaming-rollingorder=true vSwitch0 72 }}} 73 74 In **vSphere Client**, on the **NIC Teaming** tab in `vSwitch0` properties, equivalent setting is now called **Failback** (set it to //"No"//). \\ \\ [[Image(vSwitch0-03.png)]] 75 76 6. Optionally, adjust number of ports supported by the virtual switch. Reboot will be required for this new setting to take effect. 77 78 {{{ 79 # vmware-vim-cmd /hostsvc/net/vswitch_setnumports vSwitch0 256 80 }}} 81 82 === Cisco C2960G === 83 84 On a Cisco switch configure static (without PAgP or LACP) four-port 802.3ad channel group (interfaces Gi0/13 thru Gi0/16 are all configured identically). 58 85 59 86 {{{ … … 68 95 switchport access vlan 301 69 96 switchport mode access 70 no cdp enable71 97 channel-group 1 mode on 72 98 spanning-tree portfast … … 74 100 }}} 75 101 76 **See Also:** 102 If one VLAN is not sufficient for all the virtual machines that will be hosted on this ESX server, trunk port group can be configured on the switch (and then additional port group(s) added to the `vSwitch0` virtual switch on the ESX hosts). 77 103 78 http://www.vmware.com/resources/techresources/997 \\ VMware Virtual Networking Concepts (VMware Technical Papers) 104 {{{ 105 port-channel load-balance src-dst-ip 106 ! 107 interface Port-channel1 108 switchport trunk native vlan 301 109 switchport mode trunk 110 spanning-tree portfast trunk 111 ! 112 interface GigabitEthernet0/13 113 switchport trunk native vlan 301 114 switchport mode trunk 115 channel-group 1 mode on 116 spanning-tree portfast trunk 117 ! 118 }}} 79 119 80 http://www.cisco.com/en/US/docs/switches/lan/catalyst2960/software/release/12.2_52_se/configuration/guide/swethchl.html \\ Configuring !EtherChannels and Link-State Tracking (Catalyst 2960 Switch Software Configuration Guide) 120 === See Also === 81 121 82 http://en.wikipedia.org/wiki/Link_aggregation \\ Link aggregation (Wikipedia) 122 http://www.vmware.com/resources/techresources/997 \\ VMware Virtual Networking Concepts (VMware Technical Papers) 123 124 http://www.cisco.com/en/US/docs/switches/lan/catalyst2960/software/release/12.2_52_se/configuration/guide/swethchl.html \\ Configuring !EtherChannels and Link-State Tracking (Catalyst 2960 Switch Software Configuration Guide) 125 126 http://en.wikipedia.org/wiki/Link_aggregation \\ Link aggregation (Wikipedia) 83 127 84 128