EtherChannel Between a Cisco Catalyst Switch and Server Configuration Example
2007-09-25 16:34:10
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 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.
目前没有详细的关于这个配置的排错信息。 本文出自 51CTO.COM技术博客 |



7layer
博客统计信息
热门文章
最新评论
友情链接