15 华三华为链路聚合综述

1 链路聚合简介

以太网链路聚合通过将多条以太网物理链路捆绑在一起形成一条以太网逻辑链路,实现增加链路带宽的目的,同时这些捆绑在一起的链路通过相互动态备份,可以有效地提高链路的可靠性。

2 成员端口的状态

聚合组内的成员端口具有以下三种状态:

· 选中(Selected)状态:此状态下的成员端口可以参与数据的转发,处于此状态的成员端口称为“选中端口”。

· 非选中(Unselected)状态:此状态下的成员端口不能参与数据的转发,处于此状态的成员端口称为“非选中端口”。

· 独立(Individual)状态:此状态下的成员端口可以作为普通物理口参与数据的转发。满足以下条件时,如果成员端口在经过LACP(Link Aggregation Control Protocol,链路聚合控制协议)超时时间之后未收到LACP,则该成员端口会被置为该状态:

¡ 聚合接口配置为边缘端口。

¡ 处于选中/非选中状态的成员端口经过一次down、up后,该成员端口将被置为独立状态

链路聚合分为静态聚合和动态聚合两种模式,它们各自的优点如下所示:

· 静态聚合模式:一旦配置好后,端口的选中/非选中状态就不会受网络环境的影响,比较稳定。

· 动态聚合模式:通过LACP协议实现,能够根据对端和本端的信息调整端口的选中/非选中状态,比较灵活。

处于静态聚合模式下的聚合组称为静态聚合组,处于动态聚合模式下的聚合组称为动态聚合组。

4 配置设备ID

[SW-2024-0508]lacp  sy
[SW-2024-0508]lacp  system-m
[SW-2024-0508]lacp  system-mac ?
  H-H-H  MAC address

[SW-2024-0508]lacp  system-?
  system-mac       Specify the LACP system MAC address
  system-number    Specify the LACP system number
  system-priority  Specify system priority

[SW-2024-0508]lacp  system-pr
[SW-2024-0508]lacp  system-priority  ?
  INTEGER<0-65535>  System priority value

[SW-2024-0508]lacp  system-priority
[SW-2024-0508]interface  Bridge-Aggregation  ?
  <1-1024>  Bridge-Aggregation interface number

[SW-2024-0508]interface  Bridge-Aggregation  int
[SW-2024-0508]interface  Bridge-Aggregation  1
[SW-2024-0508-Bridge-Aggregation1]quit
[SW-2024-0508]int
[SW-2024-0508]interface  rou
[SW-2024-0508]interface  Route-Aggregation 2
[SW-2024-0508-Route-Aggregation2]quit

Arduino

5 配置二层静态链路聚合

#
interface Bridge-Aggregation34
#
interface NULL0
#
interface FortyGigE1/0/53
 port link-mode bridge
#
interface FortyGigE1/0/54
 port link-mode bridge
#
interface GigabitEthernet1/0/1
 port link-mode bridge
 combo enable fiber
#
interface GigabitEthernet1/0/2
 port link-mode bridge
 combo enable fiber
 port link-aggregation group 34
#
interface GigabitEthernet1/0/3
 port link-mode bridge
 combo enable fiber
 port link-aggregation group 34
#
interface GigabitEthernet1/0/4
 port link-mode bridge
 combo enable fiber
 port link-aggregation group 34
#

Arduino


[S5820-SW1]display  interface  Bridge-Aggregation 34
Bridge-Aggregation34
Current state: UP
IP packet frame type: Ethernet II, hardware address: 34eb-02c3-0100
Description: Bridge-Aggregation34 Interface
Bandwidth: 1000000 kbps
1Gbps-speed mode, full-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
PVID: 1
Port link-type: Access
 Tagged VLANs:   None
 Untagged VLANs: 1
Last clearing of counters: Never
 Last 300 second input:  0 packets/sec 0 bytes/sec 0%
 Last 300 second output:  0 packets/sec 0 bytes/sec 0%
 Input (total):  0 packets, 0 bytes
        0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
 Input (normal):  0 packets, 0 bytes
        0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
 Input:  0 input errors, 0 runts, 0 giants, 0 throttles
        0 CRC, 0 frame, 0 overruns, 0 aborts
        0 ignored, 0 parity errors
 Output (total): 0 packets, 0 bytes
        0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
 Output (normal): 0 packets, 0 bytes
        0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
 Output: 0 output errors, 0 underruns, 0 buffer failures
        0 aborts, 0 deferred, 0 collisions, 0 late collisions
        0 lost carrier, 0 no carrier

 

Arduino

[S5820-SW1]dis link-aggregation member-port  GigabitEthernet  1/0/3
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
       D -- Synchronization, E -- Collecting, F -- Distributing,
       G -- Defaulted, H -- Expired

GigabitEthernet1/0/3:
Aggregate Interface: Bridge-Aggregation34
Port Number: 4
Port Priority: 32768
Oper-Key: 1
[S5820-SW1]dis link-aggregation member-port  GigabitEthernet  1/0/4
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
       D -- Synchronization, E -- Collecting, F -- Distributing,
       G -- Defaulted, H -- Expired

GigabitEthernet1/0/4:
Aggregate Interface: Bridge-Aggregation34
Port Number: 5
Port Priority: 32768
Oper-Key: 1
[S5820-SW1]dis link-aggregation member-port  GigabitEthernet  1/0/1
The interface does not belong to any link aggregation group.
[S5820-SW1]dis link-aggregation member-port  GigabitEthernet  1/0/2
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
       D -- Synchronization, E -- Collecting, F -- Distributing,
       G -- Defaulted, H -- Expired

GigabitEthernet1/0/2:
Aggregate Interface: Bridge-Aggregation34
Port Number: 3
Port Priority: 32768
Oper-Key: 1
[S5820-SW1]

Arduino

[S5820-SW1]display  link-aggregation  summary
Aggregation Interface Type:
BAGG -- Bridge-Aggregation, BLAGG -- Blade-Aggregation, RAGG -- Route-Aggregation, SCH-B -- Schannel-Bundle
Aggregation Mode: S -- Static, D -- Dynamic
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Actor System ID: 0x8000, 34eb-02c3-0100

AGG        AGG   Partner ID              Selected  Unselected  Individual  Share
Interface  Mode                          Ports     Ports       Ports       Type
--------------------------------------------------------------------------------
BAGG34     S     None                    1         2           0           Shar
[S5820-SW1]

Arduino


[S5820-SW1]display  link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port: A -- Auto
Port Status: S -- Selected, U -- Unselected, I -- Individual
Flags:  A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
        D -- Synchronization, E -- Collecting, F -- Distributing,
        G -- Defaulted, H -- Expired

Aggregate Interface: Bridge-Aggregation34
Aggregation Mode: Static
Loadsharing Type: Shar
  Port             Status  Priority Oper-Key
--------------------------------------------------------------------------------
  GE1/0/2          S       32768    1
  GE1/0/3          U       32768    1
  GE1/0/4          U       32768    1
[S5820-SW1

Arduino

[S5820-SW1]display  interface  Bridge-Aggregation  ?
  <34-34>  Bridge-Aggregation interface number
  >        Redirect it to a file
  >>       Redirect it to a file in append mode
  brief    Brief information of status and configuration for interface(s)
  |        Matching output
  <cr>

[S5820-SW1]display  interface  Bridge-Aggregation  b
[S5820-SW1]display  interface  Bridge-Aggregation  brief
Brief information on interfaces in bridge mode:
Link: ADM - administratively down; Stby - standby
Speed: (a) - auto
Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface            Link Speed   Duplex Type PVID Description
BAGG34               UP   3G(a)   F(a)   A    1

[S5820-SW1]dis
[S5820-SW1]display  li
[S5820-SW1]display  line
[S5820-SW1]display  link-aggregation s
[S5820-SW1]display  link-aggregation summary
Aggregation Interface Type:
BAGG -- Bridge-Aggregation, BLAGG -- Blade-Aggregation, RAGG -- Route-Aggregation, SCH-B -- Schannel-Bundle
Aggregation Mode: S -- Static, D -- Dynamic
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Actor System ID: 0x8000, 34eb-02c3-0100

AGG        AGG   Partner ID              Selected  Unselected  Individual  Share
Interface  Mode                          Ports     Ports       Ports       Type
--------------------------------------------------------------------------------
BAGG34     S     None                    3         0           0           Shar
[S5820-SW1]

Arduino

6 三层动态路由聚合配置

修改路由模式

<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]int
[H3C-GigabitEthernet1/0/2]port link-mode  route
[H3C-GigabitEthernet1/0/2]%May  9 22:09:18:900 2024 H3C IFNET/3                                                                     /PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0                                                                     /2 changed to down.
%May  9 22:09:18:900 2024 H3C IFNET/5/LINK_UPDOWN: Line protoco                                                                     l state on the interface GigabitEthernet1/0/2 changed to down.

[H3C-GigabitEthernet1/0/2]q%May  9 22:09:20:942 2024 H3C IFNET/                                                                     3/PHY_UPDOWN: Physical state on the interface GigabitEthernet1/                                                                     0/2 changed to up.
%May  9 22:09:20:942 2024 H3C IFNET/5/LINK_UPDOWN: Line protoco                                                                     l state on the interface GigabitEthernet1/0/2 changed to up.
ui%May  9 22:09:22:202 2024 H3C LLDP/6/LLDP_CREATE_NEIGHBOR: Ne                                                                     arest bridge agent neighbor created on port GigabitEthernet1/0/                                                                     2 (IfIndex 3), neighbor's chassis ID is 36b8-9947-0100, port ID                                                                      is GigabitEthernet1/0/3.

[H3C-GigabitEthernet1/0/1]port link-mode  route
[H3C-GigabitEthernet1/0/1]%May  9 22:09:37:399 2024 H3C IFNET/3                                                                     /PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0                                                                     /1 changed to down.
%May  9 22:09:37:399 2024 H3C IFNET/5/LINK_UPDOWN: Line protoco                                                                     l state on the interface GigabitEthernet1/0/1 changed to down.

[H3C-GigabitEthernet1/0/1]%May  9 22:09:39:437 2024 H3C IFNET/3                                                                     /PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0                                                                     /1 changed to up.
%May  9 22:09:39:438 2024 H3C IFNET/5/LINK_UPDOWN: Line protoco                                                                     l state on the interface GigabitEthernet1/0/1 changed to up.

[H3C-GigabitEthernet1/0/1]qu%May  9 22:09:41:182 2024 H3C LLDP/                                                                     6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor created o                                                                     n port GigabitEthernet1/0/1 (IfIndex 2), neighbor's chassis ID                                                                      is 36b8-9947-0100, port ID is GigabitEthernet1/0/2.

[H3C]interface  GigabitEthernet  11/0/4
                                 ^
 % Wrong parameter found at '^' position.
[H3C]interface  GigabitEthernet  1/0/4
[H3C-GigabitEthernet1/0/4]dis
[H3C-GigabitEthernet1/0/4]display  th
[H3C-GigabitEthernet1/0/4]display  this
#
interface GigabitEthernet1/0/4
 port link-mode bridge
 combo enable fiber
#
return
[H3C-GigabitEthernet1/0/4]port link-mode  route
[H3C-GigabitEthernet1/0/4]%May  9 22:10:04:954 2024 H3C IFNET/3                                                                     /PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0                                                                     /4 changed to down.
%May  9 22:10:04:954 2024 H3C IFNET/5/LINK_UPDOWN: Line protoco                                                                     l state on the interface GigabitEthernet1/0/4 changed to down.

[H3C-GigabitEthernet1/0/4]%May  9 22:10:06:994 2024 H3C IFNET/3                                                                     /PHY_UPDOWN: Physical state on the interface GigabitEthernet1/0                                                                     /4 changed to up.
%May  9 22:10:06:994 2024 H3C IFNET/5/LINK_UPDOWN: Line protoco                                                                     l state on the interface GigabitEthernet1/0/4 changed to up.
dis
[H3C-GigabitEthernet1/0/4]display %May  9 22:10:08:169 2024 H3C                                                                      LLDP/6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor cre                                                                     ated on port GigabitEthernet1/0/4 (IfIndex 5), neighbor's chass                                                                     is ID is 36b8-9947-0100, port ID is GigabitEthernet1/0/4.

 th
[H3C-GigabitEthernet1/0/4]display  this
#
interface GigabitEthernet1/0/4
 port link-mode route
 combo enable fiber
#
return
[H3C-GigabitEthernet1/0/4]

Arduino

三层聚合操作

[H3C]interface  ?
  Bridge-Aggregation   Bridge-Aggregation interface
  FortyGigE            FortyGigE interface
  GigabitEthernet      GigabitEthernet interface
  LoopBack             LoopBack interface
  M-GigabitEthernet    MGE interface
  NULL                 NULL interface
  Route-Aggregation    Route-Aggregation interface
  Ten-GigabitEthernet  Ten-GigabitEthernet interface
  Tunnel               Tunnel interface
  Tunnel-Bundle        Tunnel-Bundle interface
  Vlan-interface       VLAN interface
  range                Configure an interface range

[H3C]interface  ro
[H3C]interface  Route-Aggregation  12
[H3C-Route-Aggregation12]quit
[H3C]int
[H3C]interface  g
[H3C]interface  GigabitEthernet  1/0/1
[H3C-GigabitEthernet1/0/1]po
[H3C-GigabitEthernet1/0/1]por
[H3C-GigabitEthernet1/0/1]port li
[H3C-GigabitEthernet1/0/1]port link-r
[H3C-GigabitEthernet1/0/1]port link-?
  link-aggregation  Link aggregation group
  link-mode         Switch the specified interface to layer2 or layer3 ethernet

[H3C-GigabitEthernet1/0/1]port link-a
[H3C-GigabitEthernet1/0/1]port link-aggregation  ?
  group  Specify aggregation group number

[H3C-GigabitEthernet1/0/1]port link-aggregation  g
[H3C-GigabitEthernet1/0/1]port link-aggregation  group  12
[H3C-GigabitEthernet1/0/1]%May  9 22:12:46:431 2024 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/1 changed to down.
%May  9 22:12:46:431 2024 H3C IFNET/3/IF_WARN: The jumboframe of the aggregate interface Route-Aggregation12 is not supported on the member port GigabitEthernet1/0/1
%May  9 22:12:46:432 2024 H3C LAGG/6/LAGG_ACTIVE: Member port GE1/0/1 of aggregation group RAGG12 changed to the active state.
%May  9 22:12:46:435 2024 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/1 changed to up.
%May  9 22:12:46:435 2024 H3C IFNET/3/PHY_UPDOWN: Physical state on the interface Route-Aggregation12 changed to up.
%May  9 22:12:46:435 2024 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface Route-Aggregation12 changed to up.

[H3C-GigabitEthernet1/0/1]dis
[H3C-GigabitEthernet1/0/1]display  th
[H3C-GigabitEthernet1/0/1]display  this
#
interface GigabitEthernet1/0/1
 port link-mode route
 combo enable fiber
 port link-aggregation group 12
#
return
[H3C-GigabitEthernet1/0/1]quit
[H3C]int
[H3C]interface  g
[H3C]interface  GigabitEthernet  1/0/2
[H3C-GigabitEthernet1/0/2]po
[H3C-GigabitEthernet1/0/2]port li
[H3C-GigabitEthernet1/0/2]port link-?
  link-aggregation  Link aggregation group
  link-mode         Switch the specified interface to layer2 or layer3 ethernet

[H3C-GigabitEthernet1/0/2]port link-a
[H3C-GigabitEthernet1/0/2]port link-aggregation  g
[H3C-GigabitEthernet1/0/2]port link-aggregation  group  ?
  INTEGER<1-1024>  Link aggregation group number

[H3C-GigabitEthernet1/0/2]port link-aggregation  group  12
[H3C-GigabitEthernet1/0/2]%May  9 22:13:23:496 2024 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/2 changed to down.
%May  9 22:13:23:496 2024 H3C IFNET/3/IF_WARN: The jumboframe of the aggregate interface Route-Aggregation12 is not supported on the member port GigabitEthernet1/0/2
%May  9 22:13:23:496 2024 H3C LAGG/6/LAGG_ACTIVE: Member port GE1/0/2 of aggregation group RAGG12 changed to the active state.
%May  9 22:13:23:498 2024 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/2 changed to up.

[H3C-GigabitEthernet1/0/2]dis
[H3C-GigabitEthernet1/0/2]display  th
[H3C-GigabitEthernet1/0/2]display  this
#
interface GigabitEthernet1/0/2
 port link-mode route
 combo enable fiber
 port link-aggregation group 12
#
return
[H3C-GigabitEthernet1/0/2]quit
[H3C]int
[H3C]interface  g
[H3C]interface  GigabitEthernet  1/0/4
[H3C-GigabitEthernet1/0/4]po
[H3C-GigabitEthernet1/0/4]port li
[H3C-GigabitEthernet1/0/4]port link-a
[H3C-GigabitEthernet1/0/4]port link-aggregation  g
[H3C-GigabitEthernet1/0/4]port link-aggregation  group  12
[H3C-GigabitEthernet1/0/4]%May  9 22:13:44:926 2024 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/4 changed to down.
%May  9 22:13:44:926 2024 H3C IFNET/3/IF_WARN: The jumboframe of the aggregate interface Route-Aggregation12 is not supported on the member port GigabitEthernet1/0/4
%May  9 22:13:44:927 2024 H3C LAGG/6/LAGG_ACTIVE: Member port GE1/0/4 of aggregation group RAGG12 changed to the active state.
%May  9 22:13:44:929 2024 H3C IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet1/0/4 changed to up.

[H3C-GigabitEthernet1/0/4]dis
[H3C-GigabitEthernet1/0/4]display  th
[H3C-GigabitEthernet1/0/4]display  this
#
interface GigabitEthernet1/0/4
 port link-mode route
 combo enable fiber
 port link-aggregation group 12
#
return
[H3C-GigabitEthernet1/0/4]

Arduino

测试

[H3C]display  interface  r
[H3C]display  interface  ro
[H3C]display  interface  Route-Aggregation  12
Route-Aggregation12
Current state: UP
Line protocol state: UP
Description: Route-Aggregation12 Interface
Bandwidth: 3000000 kbps
Maximum transmission unit: 1500
Internet protocol processing: Disabled
IP packet frame type: Ethernet II, hardware address: 36b8-9fd1-                                                                     0202
IPv6 packet frame type: Ethernet II, hardware address: 36b8-9fd                                                                     1-0202
Last clearing of counters: Never
 Last 300 second input rate: 0 bytes/sec, 0 bits/sec, 0 packets                                                                     /sec
 Last 300 second output rate: 0 bytes/sec, 0 bits/sec, 0 packet                                                                     s/sec
 Input: 0 packets, 0 bytes, 0 drops
 Output: 0 packets, 0 bytes, 0 drops

[H3C]dis
[H3C]display  int
[H3C]display  interface  rou
[H3C]display  interface  Route-Aggregation b
[H3C]display  interface  Route-Aggregation brief
Brief information on interfaces in route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface            Link Protocol Primary IP      Description                                                                      
RAGG12               UP   UP       --

[H3C]dis
[H3C]display  li
[H3C]display  li
[H3C]display li
[H3C]display line
[H3C]display link-aggregation s
[H3C]display link-aggregation summary
Aggregation Interface Type:
BAGG -- Bridge-Aggregation, BLAGG -- Blade-Aggregation, RAGG --                                                                      Route-Aggregation, SCH-B -- Schannel-Bundle
Aggregation Mode: S -- Static, D -- Dynamic
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Actor System ID: 0x8000, 36b8-9fd1-0200

AGG        AGG   Partner ID              Selected  Unselected                                                                       Individual  Share
Interface  Mode                          Ports     Ports                                                                            Ports       Type
---------------------------------------------------------------                                                                     -----------------
RAGG12     S     None                    3         0                                                                                0           Shar
[H3C]dis
[H3C]display  li
[H3C]display  line
[H3C]display  link-aggregation tr
[H3C]display  link-aggregation tr
[H3C]display  link-aggregation tr
[H3C]display  link-aggregation tr
[H3C]display  link-aggregation  ?
  load-sharing  Link aggregation load sharing
  member-port   Display member(s) of link aggregation group
  summary       Summary information
  verbose       Display verbose information of link aggregation                                                                      group

[H3C]display  link-aggregation  ver
[H3C]display  link-aggregation  verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port: A -- Auto
Port Status: S -- Selected, U -- Unselected, I -- Individual
Flags:  A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation                                                                     ,
        D -- Synchronization, E -- Collecting, F -- Distributin                                                                     g,
        G -- Defaulted, H -- Expired

Aggregate Interface: Route-Aggregation12
Aggregation Mode: Static
Loadsharing Type: Shar
  Port             Status  Priority Oper-Key
---------------------------------------------------------------                                                                     -----------------
  GE1/0/1          S       32768    1
  GE1/0/2          S       32768    1
  GE1/0/4          S       32768    1
[H3C]dis
[H3C]display  li
[H3C]display  line
[H3C]display  link-aggregation br
[H3C]display  link-aggregation ?
  load-sharing  Link aggregation load sharing
  member-port   Display member(s) of link aggregation group
  summary       Summary information
  verbose       Display verbose information of link aggregation                                                                      group

[H3C]display  link-aggregation lo
[H3C]display  link-aggregation load-sharing
                                            ^
 % Incomplete command found at '^' position.
[H3C]display  link-aggregation g
[H3C]

Arduino

7 动态链路聚合

思路

1) 进入系统视图。

system-view

(2) 创建二层聚合接口,并进入二层聚合接口视图。

interface bridge-aggregation interface-number [ lite ]

创建二层聚合接口后,系统将自动生成同编号的二层聚合组,且该聚合组缺省工作在静态聚合模式下。

指定lite参数时,将创建精简型二层聚合接口;如果不指定lite参数,则创建普通二层聚合接口

(3) 配置聚合组工作在动态聚合模式下。

link-aggregation mode dynamic

缺省情况下,聚合组工作在静态聚合模式下。

(4) 退回系统视图。

quit

(5) 将二层以太网接口加入聚合组。

a. 进入二层以太网接口视图。

interface interface-type interface-number

b. 将二层以太网接口加入聚合组。

port link-aggregation group { group-id [ force ] | auto [ group-id ] }

多次执行此步骤可将多个二层以太网接口加入聚合组。

指定force参数时,会将聚合口上的属性配置同步给该接口。

指定auto参数时,会开启端口的半自动聚合功能。当配置半自动聚合后,建议用户不要修改自动创建的聚合组及其成员端口的配置,避免影响半自动聚合功能。

(6) 配置端口的LACP工作模式。

LACP(链路聚合控制协议)是一种基于IEEE 802.3ad标准的协议,它主要用于实现链路动态聚合,即将多条物理链路聚合成一条带宽更高的逻辑链路。

LACP模式主要有三种:

主动模式(Active Mode):在这种模式下,网络设备会主动发送LACP请求帧(LACPDU),并等待对端设备的回应。如果对端设备也支持LACP,并且配置为被动模式,则会回应LACPDU来建立链路聚合。

被动模式(Passive Mode):在这种模式下,网络设备只接收LACP请求帧,并根据请求进行相应的回应。被动模式的设备通常不主动发送LACPDU,而是等待对端设备在主动模式下发送请求来建立链路聚合。

静态模式(Static Mode):这是一种不依赖于LACP协议的链路聚合方式。在静态模式下,管理员手动配置链路聚合,而不需要LACP协议的握手过程。静态模式适用于一些不支持LACP的设备,或者在特定情况下需要避免LACP协议的使用。

在你的问题中,lacp mode passive指的是将LACP协议设置为被动模式。在这种模式下,设备不会主动发送LACP请求帧,而是等待对端设备的LACP请求帧来进行回应和链路聚合。

¡ 配置端口的LACP工作模式为PASSIVE。

lacp mode passive

¡ 配置端口的LACP工作模式为ACTIVE。

undo lacp mode

缺省情况下,端口的LACP工作模式为ACTIVE。

(7) (可选)配置端口优先级。

link-aggregation port-priority priority

缺省情况下,端口优先级为32768。

(8) (可选)配置端口的LACP超时时间为短超时(3秒)。

lacp period short

缺省情况下,端口的LACP超时时间为长超时(90秒)。

请不要在ISSU升级前配置LACP超时时间为短超时,否则在ISSU升级期间会出现网络流量中断。有关ISSU升级的详细介绍请参见“基础配置指导”中的“ISSU配置”。

8  二层动态链路聚合

#
 sysname SW2-51890
#
interface Bridge-Aggregation234
 link-aggregation mode dynamic
#
interface GigabitEthernet1/0/5
 port link-mode bridge
 combo enable fiber
 shutdown
 link-aggregation port-priority 100
 lacp mode passive
 port link-aggregation group 234
#
interface GigabitEthernet1/0/6
 port link-mode bridge
 combo enable fiber
 link-aggregation port-priority 100
 lacp mode passive
 port link-aggregation group 234
#
interface GigabitEthernet1/0/7
 port link-mode bridge
 combo enable fiber
 shutdown
 link-aggregation port-priority 100
 lacp mode passive
 port link-aggregation group 234

Arduino

interface Bridge-Aggregation234:定义了一个名为"Bridge-Aggregation234"的逻辑链路聚合接口。

link-aggregation mode dynamic:设置链路聚合模式为动态,意味着链路聚合可以自动建立。

interface GigabitEthernet1/0/5interface GigabitEthernet1/0/6interface GigabitEthernet1/0/7:分别是三个不同的千兆以太网接口配置。

port link-mode bridge:设置端口的工作模式为桥接模式,这通常用于交换机或路由器上的端口,使其可以作为网络交换的一部分。

combo enable fiber:启用combo端口,允许使用光纤或铜缆,具体取决于插入的模块。

shutdown:关闭接口,使其不活动。

link-aggregation port-priority 100:设置链路聚合的端口优先级为100,这可能用于链路聚合控制,如故障转移。

lacp mode passive:设置LACP(链路聚合控制协议)的工作模式为被动,意味着接口将不会主动尝试建立链路聚合,但会响应其他接口的聚合请求。

port link-aggregation group 234:将这些端口加入到编号为234的链路聚合组中。

9 三层动态链路聚合

[SW1-5128]interface  range GigabitEthernet  1/0/5 to GigabitEthernet 1/0/7
[SW1-5128-if-range]port link-mode  route
[SW1-5128-if-range]

Arduino

[SW1-5128]interface range GigabitEthernet 1/0/5 to GigabitEthernet 1/0/7:这个命令开始一个接口范围的配置,涵盖了从GigabitEthernet 1/0/5到GigabitEthernet 1/0/7的所有接口。

[SW1-5128-if-range]port link-mode route:这个命令将接口的链路模式设置为“route”。在网络设备上,通常有两种链路模式:桥接模式(bridge)和路由模式(route)。路由模式通常用于路由器接口,允许设备对通过该接口的流量进行路由选择。

[SW1-5128]interface  Route-Aggregation ?
  <1-1024>  Route-Aggregation interface number

[SW1-5128]interface  Route-Aggregation 123
[SW1-5128-Route-Aggregation123]link-aggregation
[SW1-5128-Route-Aggregation123]link-aggregation  ?
  load-sharing   Link aggregation load sharing
  mode           Specify mode of the link aggregation group
  selected-port  Specify Selected ports
[SW1-5128-Route-Aggregation123]link-aggregation  mode  dynamic
[SW1-5128-Route-Aggregation123]

Arduino

[SW1-5128]interface Route-Aggregation ?:这个命令尝试进入一个名为“Route-Aggregation”的接口配置模式,并询问可用的接口编号。

<1-1024>:这表示您可以输入一个介于1到1024之间的数字来选择一个特定的聚合接口编号。

[SW1-5128]interface Route-Aggregation 123:这个命令尝试选择编号为123的聚合接口进行配置。

[SW1-5128-Route-Aggregation123]link-aggregation:这个命令进入链路聚合配置模式。

[SW1-5128-Route-Aggregation123]link-aggregation ?:这个命令列出了链路聚合配置的可用选项。

load-sharing:这个选项可能用于配置链路聚合的负载共享方式。

mode:这个选项用于指定链路聚合组的工作模式。

selected-port:这个选项可能用于指定哪些端口将被包含在链路聚合中。

[SW1-5128-Route-Aggregation123]link-aggregation mode dynamic:这个命令将链路聚合的模式设置为动态,意味着链路聚合可以自动建立。

[SW1-5128]interface  range GigabitEthernet  1/0/5 to GigabitEthernet  1/0/7
[SW1-5128-if-range]link-aggregation  port-priority  123
[SW1-5128-if-range]lacp  mode  ?
  passive  Enable LACP only if the interface receives LACPDUs from the opposite
           device
[SW1-5128-if-range]lacp  mode  passive
[SW1-5128-if-range]port link-aggregation ?
  group  Specify aggregation group number
[SW1-5128-if-range]port link-aggregation group  123

Arduino

[SW1-5128]interface range GigabitEthernet 1/0/5 to GigabitEthernet 1/0/7:这个命令开始配置一系列接口,从GigabitEthernet 1/0/5到GigabitEthernet 1/0/7。

[SW1-5128-if-range]link-aggregation port-priority 123:这个命令为链路聚合设置端口优先级为123。端口优先级通常用于决定链路聚合的控制路径,当有多个端口可以成为聚合的一部分时。

[SW1-5128-if-range]lacp mode ?:这个命令列出了LACP(链路聚合控制协议)的可用模式。

passive:这是列出的一个模式选项,表示接口将处于被动模式,意味着它将响应其他设备的LACP请求,但不会主动发送LACP请求。

[SW1-5128-if-range]lacp mode passive:这个命令将链路聚合的模式设置为被动。

[SW1-5128-if-range]port link-aggregation ?:这个命令列出了端口链路聚合的可用配置选项。

group:这是列出的一个选项,用于指定端口应该属于哪个链路聚合组。

[SW1-5128-if-range]port link-aggregation group 123:这个命令将当前配置的接口范围(GigabitEthernet 1/0/5到GigabitEthernet 1/0/7)分配到编号为123的链路聚合组。

10 华为Eth-Trunk(链路聚合)

1、Eth-Trunk(链路聚合技术 )

1)eth-trunk可以把多个独立的物理接口绑定在一起,作为一个大带宽的逻辑接口使用。

2、Eth-Trunk优势:

1)增加设备之间的互联带宽

2)提高设备之间的可靠性

3)对流量负载均衡,提高链路利用率

3、Eth-Trunk链路聚合模式

1)手工模式

2)LACP模式

4、手工模式:如下图

1)手工模式下3条活动链路都参与数据转发并分担流量

2)当一条链路故障时,在剩余的2条活动链路中分担流量

5、Eth-Trunk接口配置流程

1)创建eth-trunk

2)选择链路聚合模式

3)在eth-trunk中加入成员接口

6、配置手工模式Eth-trunk

拓扑

需求

1)对交换机之间的链路进行链路捆绑,增加互联带宽

2)确保同 VLAN的 PC 之间互通

配置步骤

1)PC配置IP地址

2)所有交换机创建vlan10 和vlan20

3)交换机和PC互联的接口设置为access ,并加入指定的vlan

4)创建Eth-Trunk

5)配置Eth-Trunk的工作模式为手工模式

6)Eth-Trunk中加入成员接口

配置命令

**SW1配置:**
[SW1]vlan batch 10 20   
[SW1]interface G0/0/3 
[SW1-G0/0/3]port link-type access    
[SW1-G0/0/3]port default vlan 10 
 
[SW1-G0/0/3]interface G0/0/4
[SW1-G0/0/4]port link-type access    
[SW1-G0/0/4]port default vlan 20  
[SW1-G0/0/4]quit

[SW1]interface eth-trunk 1   //创建并进入 eth-trunk 1
[SW1-Eth-Trunk1]mode manual load-balance   //配置手工模式
[SW1-Eth-Trunk1]trunkport g0/0/1   //加入成员端口
[SW1-Eth-Trunk1]trunkport g0/0/2   //加入成员端口
[SW1-Eth-Trunk1]port link-type trunk      //配置 eth-trunk 类型为 trunk
[SW1-Eth-Trunk1]port trunk allow-pass vlan 10 20   //允许 vlan10和vlan20

**SW2配置:**
[SW2]vlan batch 10 20   
[SW2]interface G0/0/3 
[SW2-G0/0/3]port link-type access    
[SW2-G0/0/3]port default vlan 10  
[SW2-G0/0/3]interface G0/0/4
[SW2-G0/0/4]port link-type access    
[SW2-G0/0/4]port default vlan 20  

[SW2]interface eth-trunk 1
[SW2-Eth-Trunk1]mode manual load-balance
[SW2-Eth-Trunk1]trunkport g0/0/1
[SW2-Eth-Trunk1]trunkport g0/0/2
[SW2-Eth-Trunk1]port link-type trunk     
[SW2-Eth-Trunk1]port trunk allow-pass vlan 10 20  

验证与测试:
pc1 ping pc3  通
pc2 ping pc4  通

Haskell

7、LACP模式:如下图:

1)LACP模式也称为M:N模式

2)M条活动链路,N条备份链路

3)当活动链路出现故障时,备份链路才进行转发

8、LACP模式工作原理

确定主动端

确定活动链路

LACP抢占功能

9、确定LACP主动端

1)通过比较两端交换机的系统优先级来确定LACP主动端

2)系统优先级数值越小越优先,默认值是32768

3)如果系统优先级相同,则比较两端设备的MAC地址,越小越优先

10、确定LACP活动链路

1)通过系统优先级选举出LACP主动端后,以主动端的接口优先级来选择活动接口

2)接口优先级数值越小越优先,默认值是32768

3)如果主动端设备的接口优先级相同,则根据接口号的大小来选举活动端口,(接口号越小越优先)

11、配置LACP模式Eth-trunk

拓扑
需求

-PC1和PC3属于vlan 10、PC2和PC4属于vlan 20

-设备之间配置lacp模式的链路聚合,并确保同vlan之间的主机可以互通

配置步骤

1)PC配置IP地址

2)所有的交换机都创建vlan10 20

3) 交换机和pc互联的接口做成access ,并且加入指定的vlan

4)设置交换机的lacp 优先级,确定主动端设备

5) 配置链路聚合

-创建链路聚合组,组号为1

-配置链路聚合的工作模式lacp

-在链路聚合中添加成员接口

-设置接口trunk模式

-设置活动端口(活动链路)的上限阈值为2

-开启lacp 抢占

配置命令

**SW1配置:**
[SW1]vlan batch 10 20
[SW1]int g0/0/4
[SW1-GigabitEthernet0/0/4]port link-type access
[SW1-GigabitEthernet0/0/4]port default vlan 10
[SW1-GigabitEthernet0/0/4]int g0/0/5
[SW1-GigabitEthernet0/0/5]port link-type access
[SW1-GigabitEthernet0/0/5]port default vlan 20
[SW1-GigabitEthernet0/0/5]quit

[SW1]lacp priority 100    //配置lacp的系统优先级(越小越优先)
[SW1]interface eth-trunk 1   //创建链路聚合组1
[SW1-Eth-Trunk1]mode lacp-static   //链路聚合的工作模式是lacp
[SW1-Eth-Trunk1]trunkport  g 0/0/1  to  0/0/3   //在链路聚合组中添加成员接口
[SW1-Eth-Trunk1]port link-type trunk     //设置trunk模式
[SW1-Eth-Trunk1]port trunk allow-pass vlan 10 20    //允许vlan10 20 流量通过
[SW1-Eth-Trunk1]max active-linknumber 2   //设置活动端口的上限阈值为2  
[SW1-Eth-Trunk1]lacp preempt enable   //开启抢占功能

**SW2配置:**
[SW2]vlan batch  10  20
[SW2]int g0/0/4
[SW2-GigabitEthernet0/0/4]port link-type access
[SW2-GigabitEthernet0/0/4]port default vlan 10
[SW2-GigabitEthernet0/0/4]int g0/0/5
[SW2-GigabitEthernet0/0/5]port link-type access
[SW2-GigabitEthernet0/0/5]port default vlan 20
[SW2-GigabitEthernet0/0/5]quit
[SW2]int eth-trunk 1
[SW2-Eth-Trunk1]mode lacp-static
[SW2-Eth-Trunk1]trunkport g 0/0/1 to 0/0/3
[SW2-Eth-Trunk1]max active-linknumber 2
[SW2-Eth-Trunk1]port link-type trunk
[SW2-Eth-Trunk1]port trunk allow-pass vlan 10 20
[SW2-Eth-Trunk1]lacp preempt enable

**测试与验证:**
pc1 ping  pc3  通
pc1 ping  pc4  通

[SW1]display eth-trunk 1    //显示链路聚合信息                     
Preempt Delay Time: 30     //抢占延迟30秒        
System Priority: 100     //系统优先级:100                  
Least Active-linknumber: 1  Max Active-linknumber: 2 (最大活跃链路:2)                         
Operate status: up  (状态:up)                  
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri  PortNo
GigabitEthernet0/0/1   Selected 1GE      32768    2  (lacp给本段接口分配的序号)
GigabitEthernet0/0/2   Selected 1GE      32768    3     
GigabitEthernet0/0/3   Unselect 1GE      32768    4
 
 备注:  Selected :被选择的接口      
       Unselect :位被选择的接口
       PortPri : 端口lacp优先级
       PortNo  : lacp 协议给成员口分配的编号

Partner: (本段接口所连接的对端设备接口信息)
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri  **PortNo**
GigabitEthernet0/0/1   32768    4c1f-ccef-5a42  32768    4 (lacp给对端接口分配的序号)
GigabitEthernet0/0/2   32768    4c1f-ccef-5a42  32768    5 
GigabitEthernet0/0/3   32768    4c1f-ccef-5a42  32768    6

Haskell

链路聚合综合实验

[S1]interface Eth-Trunk 1

[SW1-Eth-Trunk1]mode lacp-static

[S1-Eth-Trunk1]trunkportGigabitEthernet 0/0/3 0/0/4

[S1-Eth-Trunk1]port link-typetrunk

[S1-Eth-Trunk1]port trunk allow-pass vlan all

[S2]interface Eth-Trunk 1

[SW2-Eth-Trunk1]mode lacp-static

[S2-Eth-Trunk1]trunkportGigabitEthernet 0/0/5 0/0/6

[S2-Eth-Trunk1]port link-typetrunk

[S2-Eth-Trunk1]port trunk allow-pass vlan ALL

[S3]interface Eth-Trunk 1

[SW3-Eth-Trunk1]mode lacp-static

[S3-Eth-Trunk1]trunkportGigabitEthernet 0/0/3 0/0/4

[S3-Eth-Trunk1]port link-typetrunk

[S3-Eth-Trunk1]port trunk allow-pass vlan all

[S4]interface Eth-Trunk 1

[SW4-Eth-Trunk1]mode lacp-static

[S4-Eth-Trunk1]trunkportGigabitEthernet 0/0/5 0/0/6

[S4-Eth-Trunk1]port link-typetrunk

[S4-Eth-Trunk1]port trunk allow-pass vlan all

[S5]interface Eth-Trunk 1

[SW5-Eth-Trunk1]mode lacp-static

[S5-Eth-Trunk1]trunkportGigabitEthernet 0/0/3 0/0/4

[S5-Eth-Trunk1]port link-typetrunk

[S5-Eth-Trunk1]port trunkallow-pass vlan all

[S5]interface Eth-Trunk 2

[SW5-Eth-Trunk2]mode lacp-static

[S5-Eth-Trunk2]trunkportGigabitEthernet 0/0/5 0/0/6

[S5-Eth-Trunk2]port link-typetrunk

[S5-Eth-Trunk2]port trunkallow-pass vlan all

[S5]interface Eth-Trunk 3

[SW5-Eth-Trunk3]mode lacp-static

[S5-Eth-Trunk3]trunkportGigabitEthernet 0/0/7 0/0/8

[S5-Eth-Trunk3]port link-typetrunk

[S5-Eth-Trunk3]port trunkallow-pass vlan all

[S6]interface Eth-Trunk 1

[SW6-Eth-Trunk1]mode lacp-static

[S6-Eth-Trunk1]trunkportGigabitEthernet 0/0/5 0/0/6

[S6-Eth-Trunk1]port link-typetrunk

[S6-Eth-Trunk1]port trunkallow-pass vlan all

[S6]interface Eth-Trunk 2

[SW6-Eth-Trunk2]mode lacp-static

[S6-Eth-Trunk2]trunkportGigabitEthernet 0/0/3 0/0/4

[S6-Eth-Trunk2]port link-typetrunk

[S6-Eth-Trunk2]port trunkallow-pass vlan all

[S6]interface Eth-Trunk 3

[SW6-Eth-Trunk3]mode lacp-static

[S6-Eth-Trunk3]trunkportGigabitEthernet 0/0/7 0/0/8

[S6-Eth-Trunk3]port link-typetrunk

[S6-Eth-Trunk3]port trunk allow-pass vlan all

Haskell

2)S1-S6创建vlan

[S1]vlan batch 10 20

[S2]vlan batch 10 20

[S3]vlan batch 10 20

[S4]vlan batch 10 20

[S5]vlan batch 10 20

[S6]vlan batch 10 20

Haskell

3)S1-S4端口加入vlan

[S1]interface GigabitEthernet0/0/1

[S1-GigabitEthernet0/0/1]portlink-type access

[S1-GigabitEthernet0/0/1]port default vlan 10

[S2]interface GigabitEthernet0/0/1

[S2-GigabitEthernet0/0/1]portlink-type access

[S2-GigabitEthernet0/0/1]port default vlan 20

[S3]interface GigabitEthernet0/0/1

[S3-GigabitEthernet0/0/1]portlink-type access

[S3-GigabitEthernet0/0/1]port default vlan 10

[S4]interface GigabitEthernet0/0/1

[S4-GigabitEthernet0/0/1]portlink-type access

[S4-GigabitEthernet0/0/1]port default vlan 20

Haskell

11华为设备的静态链路聚合

[Huawei]interface  Eth-Trunk  3
[Huawei-Eth-Trunk3]mo  
[Huawei-Eth-Trunk3]mode  m  
[Huawei-Eth-Trunk3]mode  manual  ?
  load-balance  Load balance working mode

[Huawei-Eth-Trunk3]mode ?
  lacp-static  Static working mode
  manual       Manual working mode

[Huawei-Eth-Trunk3]mode
                        ^
Error:Incomplete command found at '^' position.
[Huawei-Eth-Trunk3]quit
[Huawei]interface Eth-Trunk 3
[Huawei-Eth-Trunk3]tr  
[Huawei-Eth-Trunk3]trunkport ?
  GigabitEthernet  GigabitEthernet interface

[Huawei-Eth-Trunk3]trunkport g  
[Huawei-Eth-Trunk3]trunkport GigabitEthernet  ?
  <0-0>  Slot number

[Huawei-Eth-Trunk3]trunkport GigabitEthernet  

[SW1-Eth-Trunk1]port link-type trunk     //设置trunk模式
[SW1-Eth-Trunk1]port trunk allow-pass vlan 10 20    //允许vlan10 20 流量通过
[SW1-Eth-Trunk1]max active-linknumber 2   //设置活动端口的上限阈值为2  
[SW1-Eth-Trunk1]lacp preempt enable   //开启抢占功能

Haskell

您提供的文本是华为设备上链路聚合(Eth-Trunk)的配置示例。以下是对这些命令的解释:

[Huawei]interface Eth-Trunk 3:进入华为设备上的逻辑链路聚合接口3的配置模式。

[Huawei-Eth-Trunk3]mo:这个命令不完整,可能是想要输入mode来设置链路聚合的工作模式。

[Huawei-Eth-Trunk3]mode m:这个命令同样不完整,应该是想要指定链路聚合的工作模式,但具体模式未指定。

[Huawei-Eth-Trunk3]mode manual:设置链路聚合为手动模式,这意味着端口是被手动添加到聚合组中,而不是通过协议自动发现。

[Huawei-Eth-Trunk3]mode ?:列出了可用的链路聚合模式。

lacp-static:静态模式,通常用于LACP(链路聚合控制协议)。

manual:手动模式,端口需要手动配置为聚合的一部分。

Error:Incomplete command found at '^' position.:命令不完整,提示错误。

[Huawei-Eth-Trunk3]quit:退出当前配置模式。

[Huawei]interface Eth-Trunk 3:重新进入Eth-Trunk 3的配置模式。

[Huawei-Eth-Trunk3]tr:这个命令不完整,可能是想要输入trunkport来设置链路聚合的成员端口。

[Huawei-Eth-Trunk3]trunkport ?:列出了添加端口到链路聚合的可用选项。

GigabitEthernet:提示输入GigabitEthernet接口。

[Huawei-Eth-Trunk3]trunkport GigabitEthernet ?:提示输入具体的GigabitEthernet接口编号。

<0-0>:提示输入插槽编号。

[SW1-Eth-Trunk1]port link-type trunk:在另一个设备上,设置端口链路类型为trunk模式。

[SW1-Eth-Trunk1]port trunk allow-pass vlan 10 20:配置trunk端口允许VLAN 10和VLAN 20的流量通过。

[SW1-Eth-Trunk1]max active-linknumber 2:设置链路聚合中活动端口的最大数量为2。

[SW1-Eth-Trunk1]lacp preempt enable:启用LACP抢占功能,允许该设备在LACP协商中作为主导设备。

请注意,这些命令需要根据实际的网络环境和需求进行调整。链路聚合的配置需要确保两端的设备都支持相应的协议,并且配置一致。此外,VLAN的配置也需要确保网络中其他设备允许相应的VLAN流量通过。

12 华为设备的动态链路聚合

[Huawei]lacp  priority  100
<Huawei>u t m
Info: Current terminal monitor is off.
[Huawei]interface  Eth-Trunk  34
[Huawei-Eth-Trunk34]mode  lacp-static

[Huawei-Eth-Trunk34]trunkport GigabitEthernet  0/0/1
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-Eth-Trunk34]trunkport GigabitEthernet 0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-Eth-Trunk34]trunkport GigabitEthernet 0/0/5
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-Eth-Trunk34]max ?
  active-linknumber              Max active linknumber in link aggregation
                                 group
  bandwidth-affected-linknumber  The maximum number of the affect-bandwidth
                                 links

[Huawei-Eth-Trunk34]max active-linknumber  3
[Huawei-Eth-Trunk34]lacp  preempt  ?
  delay   Delay time of preemption
  enable  Enable preemption
[Huawei-Eth-Trunk34]lacp  preempt  enable
[Huawei-Eth-Trunk34]display  eth-trunk  34
Eth-Trunk34's state information is:
Local:
LAG ID: 34                  WorkingMode: STATIC                               
Preempt Delay Time: 30      Hash arithmetic: According to SIP-XOR-DIP         
System Priority: 100        System ID: 4c1f-cc0e-4cd0                         
Least Active-linknumber: 1  Max Active-linknumber: 3                          
Operate status: up          Number Of Up Port In Trunk: 3                     
--------------------------------------------------------------------------------
ActorPortName          Status   PortType PortPri PortNo PortKey PortState Weight
GigabitEthernet0/0/1   Selected 1GE      32768   2      8753    10111100  1     
GigabitEthernet0/0/2   Selected 1GE      32768   3      8753    10111100  1     
GigabitEthernet0/0/4   Selected 1GE      32768   5      8753    10111100  1     
GigabitEthernet0/0/5   Unselect 1GE      32768   6      8753    10100000  1     

Partner:
--------------------------------------------------------------------------------
ActorPortName          SysPri   SystemID        PortPri PortNo PortKey PortState
GigabitEthernet0/0/1   32768    4c1f-cc56-3336  32768   2      8753    10111100
GigabitEthernet0/0/2   32768    4c1f-cc56-3336  32768   3      8753    10111100
GigabitEthernet0/0/4   32768    4c1f-cc56-3336  32768   5      8753    10111100
GigabitEthernet0/0/5   32768    4c1f-cc56-3336  32768   6      8753    10100000

Haskell

[Huawei]lacp priority 100:设置链路聚合控制协议(LACP)的系统优先级为100。优先级较高的设备在聚合过程中将扮演更主导的角色。

<Huawei>u t m:这个命令的意图不明确,可能是一个错误的输入或不完整的命令。

Info: Current terminal monitor is off.:提示当前终端监控已关闭。

[Huawei]interface Eth-Trunk 34:进入逻辑链路聚合接口34的配置模式。

[Huawei-Eth-Trunk34]mode lacp-static:设置链路聚合的工作模式为静态LACP模式。

[Huawei-Eth-Trunk34]trunkport GigabitEthernet 0/0/1[Huawei-Eth-Trunk34]trunkport GigabitEthernet 0/0/2[Huawei-Eth-Trunk34]trunkport GigabitEthernet 0/0/5:将GigabitEthernet 0/0/1、0/0/2和0/0/5端口添加到Eth-Trunk 34中。

[Huawei-Eth-Trunk34]max active-linknumber 3:设置链路聚合中活动端口的最大数量为3。

[Huawei-Eth-Trunk34]lacp preempt enable:启用LACP抢占功能,允许该设备在LACP协商中快速成为主导设备。

[Huawei-Eth-Trunk34]display eth-trunk 34:显示Eth-Trunk 34的状态信息。

显示的输出信息提供了Eth-Trunk 34的详细信息:

LAG ID:链路聚合组的ID,这里是34。

WorkingMode:工作模式,这里是STATIC,表示静态LACP模式。

Preempt Delay Time:抢占延迟时间,这里是30秒。

Hash arithmetic:哈希算法,这里是根据源IP地址(SIP)、目标IP地址(DIP)和端口号进行的XOR运算。

System Priority:系统优先级,这里是100。

System ID:系统ID,用于区分不同的设备。

Least Active-linknumber:链路聚合中最少活动链路数量,这里是1。

Max Active-linknumber:链路聚合中最大活动链路数量,这里是3。

Operate status:操作状态,这里是up,表示链路聚合是激活的。

Number Of Up Port In Trunk:链路聚合中激活端口的数量,这里是3。

12  华三链路聚合的维护

详细作用

查询命令

显示聚合接口的相关信息

display interface [ { bridge-aggregation | route-aggregation } [ interface-number ] ] [ brief [ description | down ] ]

显示本端系统的设备ID

display lacp system-id

显示全局或聚合组内采用的聚合负载分担类型

display link-aggregation load-sharing mode[ interface [ { bridge-aggregation | route-aggregation } interface-number ] ]

显示成员端口上链路聚合的详细信息

display link-aggregation member-port [ interface-list | auto ]

显示所有聚合组的摘要信息

display link-aggregation summary

显示聚合组成员端口的选中状态及原因

display link-aggregation troubleshooting [ { bridge-aggregation | route-aggregation } [ interface-number  ] ]

显示已有聚合接口所对应聚合组的详细信息

display link-aggregation verbose [ { bridge-aggregation | route-aggregation } [ interface-number ] ] [ all-configuration ]

清除聚合接口上的统计信息

reset counters interface [ { bridge-aggregation | route-aggregation } [ interface-number ] ]

清除成员端口上的LACP统计信息

reset lacp statistics [ interface interface-list ]

S300, S500, S2700, S5700, S6700 产品文档 (huawei.com)

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mfbz.cn/a/611616.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

深入理解Docker容器镜像

深入理解Docker容器镜像 1 容器是什么&#xff1a;特殊的进程 容器其实是一种沙盒技术。顾名思义&#xff0c;沙盒就是能够像一个集装箱一样&#xff0c;把你的应用“装”起来的技术。这样&#xff0c;应用与应用之间&#xff0c;就因为有了边界而不至于相互干扰&#xff1b;而…

聊天室项目思路

发起群聊&#xff1a; 从好友表选取人发送到服务器&#xff0c;服务器随机生成不重复的群号&#xff0c;存储在数据库&#xff0c;同时建立中间表&#xff0c;处理用户与群聊的关系 申请入群&#xff1a; 输入群号&#xff0c;发消息给服务器&#xff0c;服务器查询是否存在…

如何使用openEuler 22.03 配置mail.rc给邮箱发送邮件

目录 需求环境总体步骤梳理详细步骤1. 安装mailx软件包&#xff08;centos默认安装&#xff0c;openEuler不默认安装&#xff09;2. 检查是否能ping得到smtp服务器3. 在qq邮箱开启smtp设置4. 修改/etc/mail.rc文件5. 测试 可能遇到的问题 需求 希望检查每日的备份和系统运行记…

[MRCTF2020]Ez_bypass1 and [网鼎杯 2020 青龙组]AreUSerialz1()php语言基础学习,以及序列化概念的基本了解

1.[MRCTF2020]Ez_bypass1 &#xff08;1&#xff09;打开环境后它是一串很长并且看起来非常混乱的代码&#xff0c;看不懂那咱就先不管&#xff0c;直接查看源码 &#xff08;2&#xff09;看了之后可以发现它涉及到很多东西 首先就是要进行一个仔细的代码审计&#xff0c;分…

代码随想录算法训练营第六十三天|84.柱状图中最大的矩形

代码随想录算法训练营第六十三天|84.柱状图中最大的矩形 84.柱状图中最大的矩形 给定 n 个非负整数&#xff0c;用来表示柱状图中各个柱子的高度。每个柱子彼此相邻&#xff0c;且宽度为 1 。 求在该柱状图中&#xff0c;能够勾勒出来的矩形的最大面积。 示例 1: 输入&…

调试代码问题汇总

1.最常见的就是数据库密码不对。根据调试视频将你的数据库密码设置正确&#xff0c;数据库密码是数字的优先直接连如果不成功可以加个双引号或者单引号。 提示&#xff1a;java.sql.SQLException: Access denied for user rootlocalhost (using password: YES) 2.原本配置好的…

我觉得POC应该贴近实际

今天我看到一位老师给我一份测试数据。 这是三个国产数据库。算是分布式的。其中有两个和我比较熟悉&#xff0c;但是这个数据看上去并不好。看上去第一个黄色的数据库数据是这里最好的了。但是即使如此&#xff0c;我相信大部分做数据库的人都知道。MySQL和PostgreSQL平时拿出…

【算法基础实验】排序-最小优先队列MinPQ

优先队列 理论知识 MinPQ&#xff08;最小优先队列&#xff09;是一种常见的数据结构&#xff0c;用于有效管理一组元素&#xff0c;其中最小元素可以快速被检索和删除。这种数据结构广泛应用于各种算法中&#xff0c;包括图算法&#xff08;如 Dijkstra 的最短路径算法和 Pr…

RISCV 外部GCC 工具链安装@FreeBSD15

在交叉编译的时候&#xff0c;可以使用FreeBSD15默认的工具链&#xff1a;LLVM 也可以使用GCC工具链&#xff0c;GCC可以使用现成pkg包安装&#xff0c;也可以编译安装。 LLVM的特点是高移植性和高效&#xff0c;但学习成本高。GCC的特点是成熟稳定&#xff0c;但优化能力有限…

【系统架构师】-案例篇(五)企业应用系统集成与ESB

在航空业中&#xff0c;Ramp Coordination是指飞机从降落到起飞过程中所需要进行的各种业务活动的协调过程。通常每个航班都有一位员工负责Ramp Coordination&#xff0c;称之为RampCoordinator。由Ramp Coordinator协调的业务活动包括检查机位环境、卸货和装货等。 由于航班类…

2024C题生物质和煤共热解问题的研究 详细思路

背景 随着全球能源需求的不断增长和对可再生能源的追求&#xff0c;生物质和煤共热解作为一种潜在的能源转化技术备受关注。生物质是指可再生能源&#xff0c;源自植物和动物的有机物质&#xff0c;而煤则是一种化石燃料。** 在共热解过程中&#xff0c;生物质和煤在高温和缺氧…

数据库调优-SQL语句优化

2. SQL语句优化 sql 复制代码 # 请问这两条SQL语句有什么区别呢&#xff1f;你来猜一猜那条SQL语句执行查询效果更好&#xff01; select id from sys_goods where goods_name华为 HUAWEI 麦芒7 魅海蓝 6G64G 全网通; ​ select id from sys_goods where goods_id14967325985…

【科研】常用的实验结果评价指标(1) —— R2(R-square)是什么?

常用的实验结果评价指标&#xff08;1&#xff09; —— R2(R-square)&#xff0c;可能为负数吗&#xff1f;&#xff01; 提示&#xff1a;先说概念&#xff0c;后续再陆续上代码 文章目录 常用的实验结果评价指标&#xff08;1&#xff09; —— R2(R-square)&#xff0c;可能…

【电路笔记】-无源高通滤波器

无源高通滤波器 文章目录 无源高通滤波器1、概述2、一阶高通滤波器的频率响应3、高通滤波器示例4、二阶高通滤波器5、RC 差异化因素高通滤波器与低通滤波器电路完全相反,因为这两个组件已互换,滤波器输出信号现在从电阻器两端获取。 1、概述 由于低通滤波器只允许低于其截止…

Python中的多进程、多线程、协程

Python中的多线程、多进程、协程 一、概述 1. 多线程Thread &#xff08;threading&#xff09;&#xff1a; 优点&#xff1a;同一个进程中可以启动多个线程&#xff0c;充分利用IO时&#xff0c;cpu进行等待的时间缺点&#xff1a;相对于进程&#xff0c;多线程只能并发执…

Python写了for i in range(10)却只打印一遍?

题目&#xff1a;定义一个两个参数的重复打印函数&#xff0c;第一个参数指定要打印的字符串&#xff0c;第二个参数指定要重复打印的次数&#xff0c;在主程序中调用该函数&#xff0c;打印10遍你的学号姓名。 为什么调用函数后结果只打印了一遍? 看了题目感觉就很诡异&#…

AS-VJ900实时视频拼接系统产品介绍:两画面视频拼接方法和操作

目录 一、实时视频拼接系统介绍 &#xff08;一&#xff09;实时视频拼接的定义 &#xff08;二&#xff09;无缝拼接 &#xff08;三&#xff09;AS-VJ900功能介绍 1、功能 2、拼接界面介绍 二、拼接前的准备 &#xff08;一&#xff09;摄像机选择 &#xff08;二&a…

169.招式拆解 II(unordered_map)

刷算法题&#xff1a; 第一遍&#xff1a;1.看5分钟&#xff0c;没思路看题解 2.通过题解改进自己的解法&#xff0c;并且要写每行的注释以及自己的思路。 3.思考自己做到了题解的哪一步&#xff0c;下次怎么才能做对(总结方法) 4.整理到自己的自媒体平台。 5.再刷重复的类…

数据中心法

数据中心法是实现词法分析器的结构化方法。通过设计主表和子表分开存储状态转移信息&#xff0c;实现词法分析器的控制逻辑和数据结构分离。 主要解决了状态爆炸、难以维护和复杂性的问题。 状态爆炸是指当状态和转移较多时&#xff0c;单一使用一个表来存储所有的信息的话会导…

Paddle 实现DCGAN

传统GAN 传统的GAN可以看我的这篇文章&#xff1a;Paddle 基于ANN&#xff08;全连接神经网络&#xff09;的GAN&#xff08;生成对抗网络&#xff09;实现-CSDN博客 DCGAN DCGAN是适用于图像生成的GAN&#xff0c;它的特点是&#xff1a; 只采用卷积层和转置卷积层&#x…
最新文章