Changes between Version 1 and Version 2 of VmwareESXToCiscoGEC


Ignore:
Timestamp:
Sep 14, 2010 5:41:32 AM (14 years ago)
Author:
iva
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • VmwareESXToCiscoGEC

    v1 v2  
    11== Connect ESX Host To Cisco Switch With Gigabit !EtherChannel ==
    22
    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 ===
    44
    5 [[Image(vSwitch0-00.png)]]
     5The `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
     7In **vSphere Client** (//Configuration > Networking//) default setup will be depicted like this: \\ \\ [[Image(vSwitch0-00.png)]]
    68
    79The same information can be displayed from the command line on ESX host as well.
     
    1820}}}
    1921
    20 First will add a VMkernel port group and configure its IP settings (required for VMotion).
     221. Add a VMkernel port group and configure its IP settings (required for VMotion).
    2123
    2224{{{
     
    2527}}}
    2628
     292. Enable VMotion through the new port group.
     30
     31{{{
     32# esxcfg-vmknic -l |awk '/VMKernel/ {print $1}'
     33vmk3
     34# vmware-vim-cmd /hostsvc/vmotion/vnic_set vmk3
     35}}}
     36
    2737{{{#!comment
    2838[[Image(vSwitch0-01.png)]]
    2939}}}
    3040
    31 Then will link three additional physical network adapters to the same virtual switch.
     413. Link three additional physical network adapters to the same virtual switch.
     42
    3243{{{
    3344# esxcfg-vswitch -L vmnic1 vSwitch0
     
    4758}}}
    4859
    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)]]
    5061
    51 [[Image(vSwitch0-02.png)]]
     624. Configure load balancing policy based on a hash of the source and destination IP addresses.
    5263
    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}}}
    5467
    55 [[Image(vSwitch0-03.png)]]
     685. Disable rolling failover for faulty !EtherChannel members.
    5669
    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
     766. 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
     84On 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).
    5885
    5986{{{
     
    6895 switchport access vlan 301
    6996 switchport mode access
    70  no cdp enable
    7197 channel-group 1 mode on
    7298 spanning-tree portfast
     
    74100}}}
    75101
    76 **See Also:**
     102If 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).
    77103
    78   http://www.vmware.com/resources/techresources/997 \\ VMware Virtual Networking Concepts (VMware Technical Papers)
     104{{{
     105port-channel load-balance src-dst-ip
     106!
     107interface Port-channel1
     108 switchport trunk native vlan 301
     109 switchport mode trunk
     110 spanning-tree portfast trunk
     111!
     112interface 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}}}
    79119
    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 ===
    81121
    82   http://en.wikipedia.org/wiki/Link_aggregation \\ Link aggregation (Wikipedia)
     122http://www.vmware.com/resources/techresources/997 \\ VMware Virtual Networking Concepts (VMware Technical Papers)
     123
     124http://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
     126http://en.wikipedia.org/wiki/Link_aggregation \\ Link aggregation (Wikipedia)
    83127
    84128