华三框式交换机IRF堆叠配置四(LACP MAD检测)

一、前言

IRF是 H3C 自主研发的软件虚拟化技术,IRF2是横向虚拟化。它的核心思想是将多台设备连接在一起,进行必要的配置后,虚拟化成一台设备。使用这种虚拟化技术可以集合多台设备的硬件资源和软件处理能力,实现多台设备的协同工作、统一管理和不间断维护。

为便于描述,文中将虚拟设备统称为 IRF。因此本文中 IRF 包含两层含义:一是指 IRF 堆叠技术本身,二是指由 IRF 技术构建而成的虚拟设备。

二、IRF堆叠配置

组网拓扑

企业网络规模迅速扩大,当前核心交换机转发能力已经不能满足需求,现需要在保护现有投资的基础上将网络转发能力提高一倍,并要求网络易管理、易维护。

  1. 为了将SwitchA的转发能力提高一倍,需要另外增加一台设备SwitchB。即在SwitchA 和SwitchB上配置 IRF 功能。
  2. 为了防止万一 IRF 链路故障导致 IRF 分裂、网络中存在两个配置冲突的 IRF,需要启用 MAD检测功能。采用 LACP MAD 检测方式来监测 IRF 的状态。

配置思路

两台框式交换机IRF堆叠,配置思路如下:

  1. 在独立运行模式下,完成 IRF配置。

  2. 启动 IRF 模式,连接 IRF 物理接口。

  3. 配置 MAD 检测功能。

配置步骤

注意事项: 如果采用先将设备切换到 IRF 模式,再绑定 IRF 端口的方式搭建 IRF。请在完成 IRF 端口等参数配置后,执行save命令保存当前配置,再执行 irf-port-configuration active 命令手工激活 IRF 端口的配置,才能形成 IRF。

步骤 1SwitchA IRF堆叠配置。

  1. 配置 SwitchA 的成员编号为1、优先级为32,创建 IRF 端口 1/2,加入物理端口。

    [SwitchA] irf member 1
    [SwitchA] irf priority 32
    [SwitchA] irf-port 1/2
    [SwitchA-irf-port2] port group interface ten-gigabitethernet 3/0/1
    [SwitchA-irf-port2] quit

  2. 将当前配置保存到下次启动配置文件。

    [SwitchA] quit
    <SwitchA> save

  3. 设备的运行模式切换到 IRF 模式。

    <SwitchA> system-view
    [Sysname] chassis convert mode irf
    The device will switch to IRF mode and reboot. Continue? [Y/N]:y
    You are recommended to save the current running configuration and specify the configuration
    file for the next startup. Continue? [Y/N]:y
    Please input the file name(*.cfg)[flash:/startup.cfg]
    (To leave the existing filename unchanged, press the enter key):
    flash:/startup.cfg exists, overwrite? [Y/N]:y
    Validating file. Please wait...
    Saved the current configuration to mainboard device successfully.
    Do you want to convert the content of the next startup configuration file flash:
    /startup.cfg to make it available in IRF mode? [Y/N]:y
    Now rebooting, please wait...

  4. 设备重启后SwitchA组成了只有一台成员设备的 IRF。

步骤 2SwitchB IRF堆叠配置。

  1. 配置SwitchB 的成员编号为 2,创建 IRF 端口1/2,加入物理端口。

    [SwitchB] irf member 2
    [SwitchB] irf-port 2/1
    [SwitchB-irf-port1] port group interface ten-gigabitethernet 3/0/1
    [SwitchB-irf-port1] quit

  2. 将当前配置保存到下次启动配置文件。

    [SwitchB] quit
    <SwitchB> save

  3. 将设备的运行模式切换到 IRF 模式。

    <SwitchB> system-view
    [SwitchB] chassis convert mode irf
    The device will switch to IRF mode and reboot. Continue? [Y/N]:y
    You are recommended to save the current running configuration and specify the configuration
    file for the next startup. Continue? [Y/N]:y
    Please input the file name(*.cfg)[flash:/startup.cfg]
    (To leave the existing filename unchanged, press the enter key):
    flash:/startup.cfg exists, overwrite? [Y/N]:y
    Validating file. Please wait...
    Saved the current configuration to mainboard device successfully.
    Do you want to convert the content of the next startup configuration file flash:
    /startup.cfg to make it available in IRF mode? [Y/N]:y
    Now rebooting, please wait...

  4. 设备 B 重启后与设备 A 形成 IRF。

步骤 3LACP MAD配置。

  1. 核心交换机SwitchA创建一个动态聚合接口,并开启 LACP MAD 检测功能,并在聚合接口中添加成员端口,用于 SwitchA 和 SwitchB 实现 LACP MAD 检测。

    [SwitchA] interface bridge-aggregation 2
    [SwitchA-Bridge-Aggregation2] link-aggregation mode dynamic
    [SwitchA-Bridge-Aggregation2] mad enable
    You need to assign a domain ID (range: 0-4294967295)
    [Current domain ID is: 1]:
    The assigned domain ID is: 1
    [SwitchA-Bridge-Aggregation2] quit
    [SwitchA] interface gigabitethernet 1/4/0/2
    [SwitchA-GigabitEthernet1/4/0/2] port link-aggregation group 2
    [SwitchA-GigabitEthernet1/4/0/2] quit
    [SwitchA] interface gigabitethernet 2/4/0/2
    [SwitchA-GigabitEthernet2/4/0/2] port link-aggregation group 2

  2. 接入交换机SwitchC创建一个动态聚合接口,并在聚合接口中添加成员端口,用于LACP MAD检测。

    [SwitchC] interface bridge-aggregation 2
    [SwitchC-Bridge-Aggregation2] link-aggregation mode dynamic
    [SwitchC-Bridge-Aggregation2] quit
    [SwitchC] interface gigabitethernet 4/0/1
    [SwitchC-GigabitEthernet4/0/1] port link-aggregation group 2
    [SwitchC-GigabitEthernet4/0/1] quit
    [SwitchC] interface gigabitethernet 4/0/2
    [SwitchC-GigabitEthernet4/0/2] port link-aggregation group 2

步骤 4完成上述配置后,查看IRF堆叠配置情况。

复制代码
display irf                                //查看所有成员设备的相关信息
display irf link                           //查看IRF链路信息
display irf configuration                  //查看成员编号
display mad verbose                        //查看MAD配置信息
相关推荐
feng14567 小时前
稳定性-资金安全和资损防控
运维·网络·安全
奇妙之二进制7 小时前
zmq源码分析之IO线程绑定时机
开发语言·网络
多年小白7 小时前
AI 日报 - 2026年4月25日(周六)
网络·人工智能·科技·深度学习·ai
生成论实验室8 小时前
生命降U:从分子共鸣到觉知涌现
人工智能·科技·架构·生活·信息与通信
Johnstons8 小时前
网络诊断工具怎么选:从监控告警到抓包定位的完整方法论
服务器·网络·php·es·抓包分析·网络诊断工具选型与排障方法
惊鸿若梦一书生8 小时前
《Python 高阶教程》016|偏函数与柯里化:把复杂调用拆成更简单的组合
linux·网络·python
四方云8 小时前
基于大模型的AI外呼系统:架构演进与企业落地实践
人工智能·架构
lularible8 小时前
PTP协议精讲(3.7):传输层实现——PTP报文的“高速公路“
网络·网络协议·开源·嵌入式·ptp
珠海西格电力8 小时前
零碳园区管理系统如何守护能源与数据安全?
大数据·人工智能·分布式·架构·能源
Wave8458 小时前
嵌入式底层核心架构详解 (Cortex-M3)
stm32·架构