Changes between Initial Version and Version 1 of VmwareESXToCiscoGEC


Ignore:
Timestamp:
Sep 11, 2010 7:17:10 PM (14 years ago)
Author:
iva
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • VmwareESXToCiscoGEC

    v1 v1  
     1== Connect ESX Host To Cisco Switch With Gigabit !EtherChannel ==
     2
     3The `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:
     4
     5[[Image(vSwitch0-00.png)]]
     6
     7The same information can be displayed from the command line on ESX host as well.
     8{{{
     9# esxcfg-vswitch -l
     10Switch Name      Num Ports   Used Ports  Configured Ports  MTU     Uplinks
     11vSwitch0         128         3           128               1500    vmnic0
     12
     13  PortGroup Name        VLAN ID  Used Ports  Uplinks
     14  VM Network            0        0           vmnic0
     15  Service Console       0        1           vmnic0
     16
     17#
     18}}}
     19
     20First will add a VMkernel port group and configure its IP settings (required for VMotion).
     21
     22{{{
     23# esxcfg-vswitch -A VMKernel vSwitch0
     24# esxcfg-vmknic -a -i 10.10.10.20 -n 255.255.255.0 VMKernel
     25}}}
     26
     27{{{#!comment
     28[[Image(vSwitch0-01.png)]]
     29}}}
     30
     31Then will link three additional physical network adapters to the same virtual switch.
     32{{{
     33# esxcfg-vswitch -L vmnic1 vSwitch0
     34# esxcfg-vswitch -L vmnic6 vSwitch0
     35# esxcfg-vswitch -L vmnic7 vSwitch0
     36#
     37# esxcfg-vswitch -l
     38Switch Name      Num Ports   Used Ports  Configured Ports  MTU     Uplinks
     39vSwitch0         128         7           128               1500    vmnic0,vmnic1,vmnic6,vmnic7
     40
     41  PortGroup Name        VLAN ID  Used Ports  Uplinks
     42  VM Network            0        0           vmnic0,vmnic1,vmnic6,vmnic7
     43  VMKernel              0        1           vmnic0,vmnic1,vmnic6,vmnic7
     44  Service Console       0        1           vmnic0,vmnic1,vmnic6,vmnic7
     45
     46#
     47}}}
     48
     49To configure //NIC Teaming// will use the **vSphere Client**.
     50
     51[[Image(vSwitch0-02.png)]]
     52
     53In **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.
     54
     55[[Image(vSwitch0-03.png)]]
     56
     57On 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).
     58
     59{{{
     60port-channel load-balance src-dst-ip
     61!
     62interface Port-channel1
     63 switchport access vlan 301
     64 switchport mode access
     65 spanning-tree portfast
     66!
     67interface GigabitEthernet0/13
     68 switchport access vlan 301
     69 switchport mode access
     70 no cdp enable
     71 channel-group 1 mode on
     72 spanning-tree portfast
     73!
     74}}}
     75
     76**See Also:**
     77
     78  http://www.vmware.com/resources/techresources/997 \\ VMware Virtual Networking Concepts (VMware Technical Papers)
     79
     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)
     81
     82  http://en.wikipedia.org/wiki/Link_aggregation \\ Link aggregation (Wikipedia)
     83
     84