我有 2 个运行 centos 6.5 的 linux 机器,每个机器有 2 个绑定在一起的接口,连接到带有 lacp 配置端口的 Cisco 2960-S 交换机。
交换机上的配置
port-channel load-balance src-dst-mac
!
interface Port-channel1
switchport access vlan 100
switchport mode access
!
interface Port-channel2
switchport access vlan 100
switchport mode access
!
interface FastEthernet0
no ip address
!
interface GigabitEthernet0/1
switchport access vlan 100
switchport mode access
speed 1000
duplex full
spanning-tree portfast
channel-protocol lacp
channel-group 1 mode active
!
interface GigabitEthernet0/2
switchport access vlan 100
switchport mode access
speed 1000
duplex …Run Code Online (Sandbox Code Playgroud) 我遇到了让 LACP 中继在 Ubuntu 12.04.2 LTS 上正常运行的问题。
我的设置是一台主机,通过两个 10 Gbe 接口连接到两个单独的 Nexus 5548 交换机,vPC 配置为启用多机箱 LACP。Nexus 配置符合 Cisco 指南,Ubuntu 配置符合https://help.ubuntu.com/community/UbuntuBonding
服务器连接到每个Nexus交换机上的端口Ethernet1/7,其端口配置相同并放置在Port-channel 15中。Port-channel 15配置为VPC 15,VPC输出看起来不错。这些是简单的接入端口,即不涉及 801.1q 中继。
图表:
+----------+ +----------+ +----------+ +----------+
| client 1 |------| nexus 1 |------| nexus 2 |------| client 2 |
+----------+ +----------+ +----------+ +----------+
| |
| +--------+ |
+----| server |----+
eth4 +--------+ eth5
Run Code Online (Sandbox Code Playgroud)
当任一链接关闭时,客户端 1 和 2 都能够访问服务器。但是,当我启动辅助链路时,使用新启用的链路连接到交换机的客户端无法访问服务器。请参阅下表了解状态转换和结果:
port states (down by means of "shutdown")
nexus 1 eth1/7 up up down up
nexus …Run Code Online (Sandbox Code Playgroud) 根据主题:我有一些支持 NIC 组合的 HP 服务器(操作系统是 Windows Server 2008 R2),我有一个支持 Etherchannel 的 Cisco 交换机。
我是否需要在交换机上为每台服务器的成组 NIC 配置一个通道以充分利用 NIC 成组,还是根本不需要?
我试过四处搜索(甚至在这个网站上!),但我发现了相当矛盾的答案。
我不担心必须配置交换机,如果这会提供实际好处;我主要担心的是,这将如何迫使我(或其他一些甚至可能根本不知道 Etherchannel是什么的人)将每个服务器连接到特定的交换机端口以使其正常工作。除非它提供了真正的好处,否则整个“交换机端口并不完全相同”是我非常想避免的事情。