华三框式交换机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配置信息
相关推荐
2401_873479405 小时前
运营活动被薅羊毛怎么防?用IP查询+设备指纹联动封堵漏洞
java·网络·tcp/ip·github
郑寿昌5 小时前
边缘AI传感:架构革命与智能跃迁
架构
应用市场5 小时前
Android A/B 无缝更新机制深度剖析
android·网络
rosemary5125 小时前
SOME/IP初试
网络·网络协议·tcp/ip·someip
不知名的老吴5 小时前
认识Python网络套接字编程
网络
IPHWT 零软网络6 小时前
从 SIP 软交换到国密加密:OM1000‑A‑UC 国产化 IPPBX 的架构与实战价值
架构·信息与通信·信创·国产化·ippbx
Yang96116 小时前
鼎讯 SZT-2000A:铁路高速万兆网络一站式测试方案
网络
2601_957786776 小时前
短视频矩阵全链路自动化系统的技术架构与性能实测
矩阵·架构·自动化
星恒讯工业路由器7 小时前
星恒讯5G工业级通信模组选型指南:接口配置、工业防护与应用场景详解
网络·物联网·5g·信息与通信