12 华三的二层链路聚合
配置思路
1. 配置二层静态聚合组
(1) 进入系统视图。
system-view
(2) 创建二层聚合接口,并进入二层聚合接口视图。
interface bridge-aggregation interface-number [ lite ]
创建二层聚合接口后,系统将自动生成同编号的二层聚合组,且该聚合组缺省工作在静态聚合模式下。
指定lite参数时,将创建精简型二层聚合接口;如果不指定lite参数,则创建普通二层聚合接口
(3) 退回系统视图。
quit
(4) 将二层以太网接口加入聚合组。
a. 进入二层以太网接口视图。
interface interface-type interface-number
b. 将二层以太网接口加入聚合组。
port link-aggregation group group-id [ force ]
多次执行此步骤可将多个二层以太网接口加入聚合组。指定force参数时,会将聚合口上的属性配置同步给该接口。
(5) (可选)配置端口优先级。
link-aggregation port-priority priority
缺省情况下,端口优先级为32768。
AI 解析
华三的二层链路聚合是指华三交换机通过将多个物理链路绑定在一起,形成一个逻辑链路,从而提高链路的带宽和可靠性。二层链路聚合也被称为端口聚合或链路聚合。华三的二层链路聚合支持IEEE 802.3ad标准,可以将最多16个物理链路绑定在一起,形成一个逻辑链路组。
通过二层链路聚合,华三交换机可以将多个物理链路看作一个逻辑链路来使用。这样可以提供更高的带宽,提高数据传输速率和吞吐量。另外,当其中一个物理链路出现故障时,其他链路可以继续工作,提高了链路的可靠性和冗余性。
华三的二层链路聚合支持LACP(链路聚合控制协议),可以实现链路的动态聚合和自动故障转移。LACP可以协调多个交换机之间的链路聚合,使得链路聚合的配置和维护更加简单和灵活。
华三的二层链路聚合还支持静态链路聚合,可以手动配置链路聚合。静态链路聚合不需要LACP协议的支持,可以适用于一些对链路聚合进行更精细控制的场景。
总之,华三的二层链路聚合可以提供更高的带宽和可靠性,提高网络的性能和稳定性。
配置设备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
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
#
[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
[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]
[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]
[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
[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]
链路聚合的维护
详细作用 | 查询命令 |
---|---|
显示聚合接口的相关信息 | display interface [ { bridge-aggregation |
显示本端系统的设备ID | display lacp system-id |
显示全局或聚合组内采用的聚合负载分担类型 | display link-aggregation load-sharing mode[ interface [ { bridge-aggregation |
显示成员端口上链路聚合的详细信息 | display link-aggregation member-port [ interface-list |
显示所有聚合组的摘要信息 | display link-aggregation summary |
显示聚合组成员端口的选中状态及原因 | display link-aggregation troubleshooting [ { bridge-aggregation |
显示已有聚合接口所对应聚合组的详细信息 | display link-aggregation verbose [ { bridge-aggregation |
清除聚合接口上的统计信息 | reset counters interface [ { bridge-aggregation |
清除成员端口上的LACP统计信息 | reset lacp statistics [ interface interface-list ] |