Monthly Archives: June 2010

How to create an etherchannel (Port-Channel) between Cisco and vmware ESX/ESXi

The load balancing needs to be set up on both the vSwitch and the switch stack.

In vCenter:
Highlight the ESX Server host.
Click the Configuration tab.
Click the Networking link.
Click Properties over the target vSwitch
Highlight the virtual switch in the Ports tab and click Edit.
Click the NIC Teaming tab.
From the Load Balancing dropdown, choose Route based on ip hash.
Verify that there are two or more network adapters listed under Active Adapters.

In an enable prompt on the stack:

Remove any extraneous commands from your target interfaces.
Any differing settings between the interfaces could cause the interface to not be added to the etherchannel.
In this example I am using a switch stack consisting of 2 3750s. I have 2 NICs on the host connecting to an etherchannel that spans these 2 physical switches in the stack. In this way I am able to have one switch physically fail (or loose power) and the connection stays up. I am using interface 21 on both switches in the stack and using channel-group 28.

#>Config t
#(config)> int range gi1/0/21,gi2/0/21
#(config-if)> channel-group 28 mode on
because the port-channel does not already exist this creates the port channel.
Check to see the number of ports in the etherchannel
#> sho etherchannel summary
Test the load balance type
#>sho etherchannel load-balance
If the etherchannel load balance type needs to be changed set it to source and destination ip
#>config t
#(config)> port-channel load-balance src-dst-ip
test the load balance for an address behind the interface
#> test etherchannel load-balance interface port-channel 28 ip 192.168.1.81 192.168.1.11
#> test etherchannel load-balance interface port-channel 28 ip 192.168.1.81 192.168.0.11
Save the changes
#>write mem

Advertisements

Leave a comment

Filed under KBs related to this project, Lefthand VSA on Vsphere on P4000

VLAN trunk and tagging between Cisco and ESX(i)

IEEE 802.1Q VLAN tagging  between Cisco Trunk ports and vSwitches

Be sure to use dot1q and not isl encapsulation on trunk interfaces that will be connected to the physical NIC on your host.

By default the switch will allow traffic from all VLANs through the trunk port.
Configure the interface of the switch with these 2 lines:
1.) Switch#(config-if)>  switchport trunk encapsulation dot1q

2.) Switch#(config-if)> switchport mode trunk


			

Leave a comment

Filed under KBs related to this project, VMWARE

Cisco Reserved VLANs

Default VLAN 1
Private VLANs 2 to 1001
Reserved VLANS 1002,1003,1004, 1005
Extened VLANs 1006-4094

**VTP and other VLAN trunking features do not work for extended range VLANs.

In Our case we are using 2 3750 in a stack.

Leave a comment

Filed under KBs related to this project

How To: Enable SSH to ESXi Vsphere 4 Console

BE aware that Console access in ESXi is not supported!

To gain access to the CLI in ESXi:

# From the primary console press ALT-F1
# Type unsupported and press ENTER (there will be no curser indication that you are typing)
# Enter the root password

To Enable SSH to this CLI interface you will need to use the VI editor.

If you have never worked in VI it is a bit awkward at first.

# Edit the inetd.conf file. Type vi /etc/inetd.conf
# Search for the #SSH settings
# Remove the ‘#’ from the SSH row
# Save the changes. Type :wq!
# Find the process ID of inetd. Type ps | grep inetd
# Kill the process with the PID  shown by the previous line. Type kill -9 [PID]
# Restart managment agents /sbin/services.sh restart
# restart the inetd process. Type inetd

Leave a comment

Filed under VMWARE