Dell Networking OS10 如何配置 LACP 单独

Summary: 本文介绍如何配置 LACP 个人及其工作原理。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

索引

介绍
配置语法
示例配置和案例研究 

      情况 1:PortChannel 1 已启动。LACP 已启动。两个接口以太网 1/1/1 和以太网 1/1/2 在物理上运行。
      案例 2.PortChannel 1 已启动。LACP 已启动。接口以太网 1/1/1 物理上已启动,以太网 1/1/2 物理上已关闭。
      案例 3.PortChannel 1 已启动。LACP 已启动。接口以太网 1/1/1 和以太网 1/1/2 在以太网 1/1/2 上物理上已启动,但 LACP 已关闭。
      案例 4:PortChannel 1 已关闭。LACP 已关闭。两个接口以太网 1/1/1 和以太网 1/1/2 在物理上正常运行。
      案例 5:PortChannel 1 已关闭。LACP 已关闭。接口以太网 1/1/1 物理上处于正常运行状态,以太网 1/1/2 处于关闭状态。

 

简介

LACP 单独功能会看到为链路聚合控制协议 (LACP) 设置的端口独立运行,而不是作为聚合链路的一部分。当端口未从连接的设备接收 LACP 数据单元 (LACPDU) 时,通常会发生这种情况,而连接设备是形成聚合链路所必需的。在此状态下,端口仍可正常工作,但不会增加链路聚合组提供的聚合带宽或冗余。此功能可用于确保即使 LACP 协商失败或连接的设备不支持 LACP,端口仍可运行。

我们只能在 LAG 上启用 LACP 单独功能。隔离的端口称为 LACP 单个端口。

 

LACP 单个功能的应用场景。

>1 个通过 LAN 唤醒

>2 PXE 启动

 

 
提醒:
• 如果连接到具有 LACP 单个(隔离)端口的 LAG 的对等交换机未在其端口之间交换或转发数据包,Dell Technologies 建议在单独启用 LAG 的 LAG 上启用端口快速和 BPDU-guard。这可确保 LACP 各个端口可以快速进入转发状态。
 • 如果对等交换机执行交换或转发数据包,并且可识别 xSTP,则 Dell Technologies 建议在单独启用 LACP 的 LAG 上启用 xSTP,以防止涉及单个端口的数据环路。
• 如果对等交换机交换或转发数据包并且 xSTP 无法感知,但也转发 xSTP BPDU(例如 PXE 启动设备),则 Dell Technologies 建议在单独启用 LAG 的 LACP 上启用 xSTP。这可防止在对等交换机转发 xSTP BPDU 时由多个单独端口引起的环路。
 • 我们可以在第 2 层模式下对 LAG 启用 LACP 单独功能。以下配置是互斥的: 无交换机端口 单独的 LACP。
 • 如果是 LACP 单个端口。与正常端口成员配置对应的所有限制也适用于 LACP 各个端口。

 

 
提醒:在 OS10 版本 10.5.4.x 中,在 LACP 单独模式下运行的 LAG 中的 VLAN 可能默认为较低的最大传输单元 (MTU) 大小,为 1532 字节。要解决此问题而不要求固件更新,您可以使用以下命令在受影响的 LAG 上手动设置 MTU:
OS10# configure terminal
OS10(config)# interface port-channel 1
OS10(conf-if-po-1)# mtu 9216
自 OS10 版本 10.5.5.10 及更高版本起,此问题已得到解决。升级到这些版本后,无需手动配置 MTU。在 10.5.4.X 版本中,当将 LACP 单个触发到单个端口导致其关联的 VLAN MTU 更改为 1532 时,请参阅 Dell Networking

 

 

配置语法

 

OS10# configure terminal
OS10(config)# interface port-channel <portchannel number>
OS10(conf-if-po-X)# lacp individual

 

  • 我们必须在两个 VLT 对等节点上启用 LACP 单独功能。

 

用于验证 LACP Individual 是否正常工作的命令。

OS10# show lacp port-channel interface port-channel <portchannel number>
OS10# show port-channel summary
OS10# show interface port-channel summary
OS10# show lacp interface ethernet <1/1/port-number>
OS10# show vlan
OS10# show mac address-table


 

示例配置和案例研究 

 

样例拓扑

拓扑学


在 DellOS10-SW1 上,让我们单独配置 LACP。

DellOS10-SW1# configure terminal
DellOS10-SW1(config)# interface port-channel 1
DellOS10-SW1(conf-if-po-1)# lacp individual


我们来验证一下 PortChannel1 的配置。
 

DellOS10-SW1# show running-configuration interface port-channel 1
!
interface port-channel1
 no shutdown
 switchport access vlan 1
 vlt-port-channel 1
 lacp individual


在 DellOS10-SW2 (VLT peer) 上,我们可以单独配置 LACP。
 

DellOS10-SW2# configure terminal
DellOS10-SW2(config)# interface port-channel 1
DellOS10-SW2(conf-if-po-1)# lacp individual


我们来验证一下 PortChannel1 的配置。
 

DellOS10-SW2# show running-configuration interface port-channel 1
!
interface port-channel1
 no shutdown
 switchport access vlan 1
 vlt-port-channel 1
 lacp individual

 


情况 1:PortChannel 1 已启动。LACP 已启动。两个接口以太网 1/1/1 和以太网 1/1/2 在物理上正常运行。

 

假设 PortChannel 1 已启动。LACP 从服务器端启动。两个接口以太网 1/1/1 和以太网 1/1/2 在物理上均正常运行。
 

DellOS10-SW1# show port-channel summary
Flags:  D - Down    I - member up but inactive    P - member up and active
        U - Up (port-channel)    F - Fallback Activated    IND - LACP Individual
--------------------------------------------------------------------------------
Group Port-Channel           Type     Protocol  Member Ports
--------------------------------------------------------------------------------
1    port-channel1    (U)     Eth      DYNAMIC   1/1/1(P) 1/1/2(P)

我们可以看到成员端口以太网 1/1/1 和 1/1/2 处于成员正常运行和活动状态。
 

我们可以看到 Vlan 1 的 PortChannel 1 部分。接口以太网 1/1/1 和以太网 1/1/2 不被视为 PortChannel 1 的一部分。
 
DellOS10-SW1# show vlan
Codes: * - Default VLAN, M - Management VLAN, R - Remote Port Mirroring VLANs,
       @ - Attached to Virtual Network, P - Primary, C - Community, I - Isolated,
       S - VLAN-Stack VLAN
Q: A - Access (Untagged), T - Tagged
    NUM    Status    Description                     Q Ports
*   1      Active                                    A Eth1/1/3-1/1/8,1/1/10-1/1/56
                                                     A Po1,1000
    4094   Active                                    T Po1000
DellOS10-SW1# show mac address-table
Codes: pv <vlan-id> - private vlan where the mac is originally learnt
VlanId        Mac Address         Type        Interface
1             xx:xx:xx:xx:xx:xx   dynamic     port-channel1

我们可以看到个人:已启用(加粗)。这表示已配置 LACP 个人
DellOS10-SW1# show lacp port-channel interface port-channel 1 | grep Individual
Individual: Enabled

当我们检查接口时,我们会看到 Individual: false

DellOS10-SW1# show lacp interface ethernet 1/1/1 | grep Individual
  Individual: false
DellOS10-SW1# show lacp interface ethernet 1/1/2 | grep Individual
  Individual: false


 

案例 2.PortChannel 1 已启动。LACP 已启动。接口以太网 1/1/1 物理上已启动,以太网 1/1/2 物理上已关闭。

 

 

假设 PortChannel 在服务器端为 Up。接口以太网 1/1/1 物理上已启动,以太网 1/1/2 物理上已关闭。此处的端口以太网 1/2 不会过渡到独立端口
 


我们可以看到 Eth 1/1/1 在物理上是 Up,Eth 1/1/2 是 Down。  以太网 1/2 不是独立端口
DellOS10-SW1# show port-channel summary
Flags:  D - Down    I - member up but inactive    P - member up and active
        U - Up (port-channel)    F - Fallback Activated    IND - LACP Individual
--------------------------------------------------------------------------------
Group Port-Channel           Type     Protocol  Member Ports
--------------------------------------------------------------------------------
1    port-channel1    (UF)    Eth      DYNAMIC   1/1/1(P) 1/1/2(D)

PortChannel 1 是 vlan 1 的一部分。以太网 1/1 是 LACP 端口通道 1 的一部分。以太网 1/2 不是独立端口
DellOS10-SW1# show vlan
Codes: * - Default VLAN, M - Management VLAN, R - Remote Port Mirroring VLANs,
       @ - Attached to Virtual Network, P - Primary, C - Community, I - Isolated,
       S - VLAN-Stack VLAN
Q: A - Access (Untagged), T - Tagged
    NUM    Status    Description                     Q Ports
*   1      Active                                    A Eth1/1/3-1/1/8,1/1/10-1/1/56
                                                     A Po1,1000


 

案例 3.PortChannel 1 已启动。LACP 已启动。接口以太网 1/1/1 和以太网 1/1/2 在以太网 1/1/2 上物理上已启动,但 LACP 已关闭。


假设 PortChannel 在服务器端为 Up。接口以太网 1/1/1 物理上已启动,LACP 已启动。以太网 1/1/2 物理上处于运行状态,但 LACP 由于某种原因(如布线不当)而关闭。

这里端口以太网 1/1/2 过渡到独立端口


我们可以看到,Eth 1/1/1 在物理上处于运行状态,而 LACP 处于运行状态。Eth 1/1/2 物理上是运行的,但 LACP 是关闭的。  以太网 1/1/2 是独立端口。
 
DellOS10-SW1# show port-channel summary
Flags:  D - Down    I - member up but inactive    P - member up and active
        U - Up (port-channel)    F - Fallback Activated    IND - LACP Individual
--------------------------------------------------------------------------------
Group Port-Channel           Type     Protocol  Member Ports
--------------------------------------------------------------------------------
1    port-channel1    (U)     Eth      DYNAMIC   1/1/1(P) 1/1/2(IND)


PortChannel 1 是 vlan 1 的一部分。以太网 1/1 是 LACP 端口通道 1 的一部分。以太网 1/2 是独立端口,是 vlan 1 的一部分
DellOS10-SW1# show vlan
Codes: * - Default VLAN, M - Management VLAN, R - Remote Port Mirroring VLANs,
       @ - Attached to Virtual Network, P - Primary, C - Community, I - Isolated,
       S - VLAN-Stack VLAN
Q: A - Access (Untagged), T - Tagged
    NUM    Status    Description                     Q Ports
*   1      Active                                    A Eth1/1/2-1/1/8,1/1/10-1/1/56
                                                     A Po1,1000
                                              

已在端口通道 1 和以太网 1/1/2 上获知 MAC 地址
DellOS10-SW1# show mac address-table
#Codes: pv <vlan-id> - private vlan where the mac is originally learnt
VlanId        Mac Address           Type        Interface
1             xx:xx:xxx:xx:xx:xx      dynamic     port-channel1
1             yy:yy:yy:yy:yy:yy       dynamic     ethernet1/1/2

我们可以看到个人:已启用(加粗)。这表示已配置 LACP 个人
DellOS10-SW1# show lacp port-channel interface port-channel 1 | grep Individual
Individual: Enabled

我们来看看这些接口。对于 Eth 1/1/1,Individual 为 false。
 
DellOS10-SW1# show lacp interface ethernet 1/1/1 | grep Individual
  Individual: false

但是,对于 Eth 1/1/2,Individual 为 True。
DellOS10-SW1# show lacp interface ethernet 1/1/2 | grep Individual
  Individual: true



 

案例 4:PortChannel 1 已关闭。LACP 已关闭。两个接口以太网 1/1/1 和以太网 1/1/2 在物理上正常运行。


假设 PortChannel 从服务器端关闭。但是,服务器的物理 NIC 已启动。在这里,我们看到接口以太网 1/1/1 和 1/1/2 过渡到单个端口。它们都获得了 PortChannel 的中继/访问配置,并开始学习 mac 地址,就好像它们是两个独立的端口一样。 
 

 

我们可以看到 ,以太网 1/1/1 和以太网 1/1/2 都已过渡到 LACP Individual

 

DellOS10-SW1# show port-channel summary
Flags:  D - Down    I - member up but inactive    P - member up and active
        U - Up (port-channel)    F - Fallback Activated    IND - LACP Individual
--------------------------------------------------------------------------------
Group Port-Channel           Type     Protocol  Member Ports
--------------------------------------------------------------------------------
1    port-channel1    (D)     Eth      DYNAMIC   1/1/1(IND) 1/1/2(IND)


我们可以看到两个端口以太网 1/1/1 和以太网 1/1/2 以及 PortChannel 1 都是 vlan 1 的一部分。

 

DellOS10-SW1# show vlan
Codes: * - Default VLAN, M - Management VLAN, R - Remote Port Mirroring VLANs,
       @ - Attached to Virtual Network, P - Primary, C - Community, I - Isolated,
       S - VLAN-Stack VLAN
Q: A - Access (Untagged), T - Tagged
    NUM    Status    Description                     Q Ports
*   1      Active                                    A Eth1/1/1-1/1/8,1/1/10-1/1/56
                                                     A Po1,1000

 

我们可以看到,两个接口都学习了MAC地址。 

 

DellOS10-SW1# show mac address-table | grep ethernet
1             xx:xx:xx:xx:xx:xx   dynamic     ethernet1/1/2
1             yy:yy:yy:yy:yy:yy   dynamic     ethernet1/1/1

 


我们可以看到个人:在下面的输出中已启用。这表示已配置 LACP 个人

 

DellOS10-SW1# show lacp port-channel interface port-channel 1 | grep Individual
Individual: Enabled

 

当我们检查接口时,我们会看到 Individual: true

 

DellOS10-SW1# show lacp interface ethernet 1/1/1 | grep Individual
  Individual: true
DellOS10-SW1# show lacp interface ethernet 1/1/2 | grep Individual
  Individual: true


 

案例 5:PortChannel 1 已关闭。LACP 已关闭。接口以太网 1/1/1 物理上处于正常运行状态,以太网 1/1/2 处于关闭状态。


假设 PortChannel 已关闭。Eth 1/1/1 已启动,Eth 1/1/2 已关闭。这意味着连接到以太网 1/1/1 的服务器 NIC 已打开,连接到以太网 1/1/2 的 NIC 物理断开。
 


我们可以将以太网 1/1/1 视为单个接口,而 1/1/2 则关闭。以太网 1/1/1 转换到单个端口。

 

DellOS10-SW1# show port-channel summary

Flags:  D - Down    I - member up but inactive    P - member up and active
        U - Up (port-channel)    F - Fallback Activated    IND - LACP Individual
--------------------------------------------------------------------------------
Group Port-Channel           Type     Protocol  Member Ports
--------------------------------------------------------------------------------
1    port-channel1    (D)     Eth      DYNAMIC   1/1/1(IND) 1/1/2(D)


我们可以看到单个端口以太网 1/1/1 是 Vlan 1 的一部分。但此处未看到接口以太网 1/1/2

 

DellOS10-SW1# show vlan
Codes: * - Default VLAN, M - Management VLAN, R - Remote Port Mirroring VLANs,
       @ - Attached to Virtual Network, P - Primary, C - Community, I - Isolated,
       S - VLAN-Stack VLAN
Q: A - Access (Untagged), T - Tagged
    NUM    Status    Description                     Q Ports
*   1      Active                                    A Eth1/1/1,1/1/3-1/1/8,1/1/10-1/1/56
                                                     A Po1,1000

 

以太网 1/1/1 从服务器学习了 MAC 地址

 

DellOS10-SW1# show mac address-table | grep ether
1             xx:xx:xx:xx:xx:xx   dynamic     ethernet1/1/1

 

我们可以看到个人:在下面的输出中已启用。这表示已配置 LACP 个人。
 

DellOS10-SW1# show lacp port-channel interface port-channel 1 | grep Individual
Individual: Enabled


当我们检查接口 Eth 1/1/1 时,我们看到 Individual: true

 

DellOS10-SW1# show lacp interface ethernet 1/1/1 | grep Individual
  Individual: true


检查接口以太网 1/1/2 时,我们看到 Individual 字段为空,因为端口本身已关闭

 

DellOS10-SW1# show lacp interface ethernet 1/1/2 | grep Individual
  Individual:

 

    Affected Products

    PowerSwitch
    Article Properties
    Article Number: 000238082
    Article Type: How To
    Last Modified: 28 Oct 2024
    Version:  3
    Find answers to your questions from other Dell users
    Support Services
    Check if your device is covered by Support Services.