Network Diagram網絡圖表
This document uses this network setup:
這個文檔使用下面的網絡
Switch Configuration交換機配置
In order to configure the switch, complete these steps.
選擇下面的端口創建 etherchannel
對列出的端口做一下操作
配置爲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)#
將接口加入VLAN
Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 100 Switch(config-if)#
配置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)#
配置這個Etherchannle 模式。
Switch(config-if)#channel-group 1 mode active使用 LACP 主動模式 Creating a port-channel interface Port-channel 1 Switch(config-if)#
配置這個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 ConfigurationIn order to configure the server, complete these steps:
下面一步步完成服務器的配置
打開這個 網卡實用程序配置軟件。
note :這個例子中使用的是HP network configuration utility 7。 可以通過點擊桌面圖標或是開始 -設置 -控制面板 -hp network 打開軟件。
高亮選擇兩塊網卡。選擇 team
The NIC team is created.
這個NIC 組被創建
點擊屬性
這個屬性對話框中你要選擇etherchannel 所使用的協議類型。
選擇 LACP IEEE 802.3ad
在下拉對話框中選擇一個負載均衡的算法。選擇OK。
進入這個組屬性窗口,點擊OK。 在程序配置窗口選擇 YES 繼續
A dialog box appears that displays the status of the process.
這個對話框顯示正在處理中
提示你需要重啓。選擇YES
重啓服務器後打開這個 網絡配置實用程序 查看這個 HP network team 是否狀態正常
查看網絡鏈接 中的 本地鏈接3
配置IP地址,自定義網關,DNS/WIN服務器或者選擇動態獲取
Verify 驗證
顯示這個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#
顯示這個聚合的端口在生成樹中的詳細信息
Switch#show spanning-tree interface port-channel 1 Vlan Role Sts Cost Prio.Nbr Type ---------------- ---- --- --------- -------- --------- VLAN0100 Desg FWD 3 128.616 P2p Switch#
顯示目前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# TroubleshootThere is currently no specific troubleshooting information available for this configuration.
目前沒有詳細的關於這個配置的排錯信息。
|