EtherChannel Between a Cisco Catalyst Switch and Server Configuration Example

 

Network Diagram

網絡圖表
This document uses this network setup:
這個文檔使用下面的網絡
ios_etherchannel_00.gif

Switch Configuration

交換機配置
In order to configure the switch, complete these steps.
  1. Per the Network Diagram, choose the ports to be grouped:
        選擇下面的端口創建 etherchannel
  • Gi 2/0/23
  • Gi2/0/24
  1. For each of the listed ports, complete these steps:
            對列出的端口做一下操作
  1. Configure the port as a Layer 2 switchport.
             配置爲2層端口
Note: This step is required only for switches that support both Layer 2 switchports and Layer 3 interfaces.
 
             在一步只使用在三層交換機上

Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#int Gi2/0/23

Switch(config-if)#switchport
Switch(config-if)#
  1. Configure the port as an access port and assign the appropriate VLAN.
              將接口加入VLAN

Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 100

Switch(config-if)#
  1. Configure the port for spanning tree PortFast.
              配置portfast

Switch(config-if)#spanning-tree portfast
%Warning: portfast should only be enabled on ports connected to a single
 host. Connecting hubs, concentrators, switches, bridges, etc... to this
 interface  when portfast is enabled, can cause temporary bridging loops.
 Use with CAUTION
%Portfast has been configured on GigabitEthernet2/0/23 but will only
 have effect when the interface is in a non-trunking mode.
Switch(config-if)#
  1. Configure the port for EtherChannel with appropriate mode.
                     配置這個Etherchannle 模式。

Switch(config-if)#channel-group 1 mode active
使用 LACP 主動模式

Creating a port-channel interface Port-channel 1
Switch(config-if)#
  1. Configure the EtherChannel load balancing. This configuration is applicable for all EtherChannels configured on this switch.
            配置這個Etherchannle 負載均衡算法。這個配置被應用到交換機上的所有    etherchannle 。

Switch(config)#port-channel load-balance ?
  dst-ip       Dst IP Addr
  dst-mac      Dst Mac Addr
  src-dst-ip   Src XOR Dst IP Addr
  src-dst-mac  Src XOR Dst Mac Addr
  src-ip       Src IP Addr
  src-mac      Src Mac Addr
Switch(config)#port-channel load-balance src-mac
      算法基於源MAC地址
Switch(config)#

Server Configuration

In order to configure the server, complete these steps:
 
下面一步步完成服務器的配置
  1. Start the NIC configuration utility.
    Note: This examples uses the HP Network Configuration Utility 7. In order to use the HP Network Configuration Utility, locate the icon in the Windows 2000 system tray or click Start > Settings > Control Panel > HP Network.
打開這個 網卡實用程序配置軟件。
 
note :這個例子中使用的是HP network configuration utility 7。  可以通過點擊桌面圖標或是開始  -設置 -控制面板 -hp network  打開軟件。
ios_etherchannel_01.gif
  1. Highlight both NICs, and the click Team.
高亮選擇兩塊網卡。選擇 team
ios_etherchannel_02.gif
The NIC team is created.
 
這個NIC 組被創建
  1. Click Properties.
點擊屬性
ios_etherchannel_03.gif
  1. In the Team Properties windows, choose the appropriate Team Type Selection.
    Note: Since this example configured the switch with LACP, choose the option with IEEE 802.3ad.
這個屬性對話框中你要選擇etherchannel 所使用的協議類型。
 
  選擇 LACP  IEEE 802.3ad
ios_etherchannel_04.gif
  1. Choose the required method from the Transmit Load Balancing Method drop-down list, and click OK.
在下拉對話框中選擇一個負載均衡的算法。選擇OK。
ios_etherchannel_05.gif
  1. In the Team Properties window, click OK, and when the confirmation window appears, click Yes to continue.
進入這個組屬性窗口,點擊OK。 在程序配置窗口選擇 YES 繼續
ios_etherchannel_06.gif
A dialog box appears that displays the status of the process.
這個對話框顯示正在處理中
ios_etherchannel_07.gif
  1. When you are prompted to reboot the server, click Yes.
      提示你需要重啓。選擇YES
ios_etherchannel_08.gif
  1. Once the server is rebooted, open the network configuration utility in order to verify the teaming status.
重啓服務器後打開這個 網絡配置實用程序 查看這個 HP network team 是否狀態正常
ios_etherchannel_09.gif
  1. Right-click My Network Places. An additional network card, Local Area Connection 3, displays in the window.
             查看網絡鏈接 中的 本地鏈接3
ios_etherchannel_10.gif
  1. Configure the connection with static IP address, default gateway, and DNS/WINS settings or for dynamic configuration.
            配置IP地址,自定義網關,DNS/WIN服務器或者選擇動態獲取

Verify

 驗證
  • show etherchannel summary—Displays a one-line summary per channel group.
            顯示這個etherchannle 的詳細信息

Switch#show etherchannel 1 summary
Flags:  D - down        P - in port-channel
        I - stand-alone s - suspended
        H - Hot-standby (LACP only)
        R - Layer3      S - Layer2
        U - in use      f - failed to allocate aggregator
        u - unsuitable for bundling
        w - waiting to be aggregated
        d - default port
Number of channel-groups in use: 1
Number of aggregators:           1
Group  Port-channel  Protocol    Ports
------+-------------+-----------+-----------------------------
1      Po1(SU)         LACP      Gi2/0/23(P) Gi2/0/24(P)
Switch#
  • show spanningtree interface—Displays spanning tree information for the specified interface.
            顯示這個聚合的端口在生成樹中的詳細信息

Switch#show spanning-tree interface port-channel 1

Vlan             Role Sts Cost      Prio.Nbr Type
---------------- ---- --- --------- -------- ---------
VLAN0100         Desg FWD 3         128.616  P2p
Switch#
  • show etherchannel load-balance—Displays the load-balance or frame-distribution scheme among ports in the port channel.
             顯示目前etherchannel負載均衡所使用的算法

Switch#show etherchannel load-balance
EtherChannel Load-Balancing Operational State (src-mac):
Non-IP: Source MAC address
  IPv4: Source MAC address
  IPv6: Source IP address
Switch#

Troubleshoot

There is currently no specific troubleshooting information available for this configuration.
 
目前沒有詳細的關於這個配置的排錯信息。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章