H3C配置IRF实现网络设备堆叠

news/发布时间2024/5/4 3:57:00

堆叠的概述

在此之前了解一下什么是堆叠,堆叠是指将多台交换机设备通过线缆连接后组合在一起,虚拟化成一台设备,是一种横向虚拟化技术。堆叠作为一种横向虚拟化技术,将多台设备在逻辑上虚拟成一台设备,可以简化网络的配置和管理。华三的虚拟化技术叫IRF,锐捷的虚拟化技术叫VSU,华为虚拟化技术叫iStack(盒式交换机)和CSS(框式交换机),本文以H3C的IRF为实验进行配置。


H3C堆叠的配置

H3C官方配置文档:https://www.h3c.com/cn/d_202205/1609013_30005_0.htm
实验拓扑图:
image

H3C IRF配置思路

  1. 准备两台交换机
  2. 通过40G接口(Forty接口)直连交换机
  3. 将主交换机接口编号为1备用交换机接口编号变更为2
  4. 通过irf配置实现两台交换机逻辑上成为一台

IRF基础配置

Switch0配置

[H3C]sysname Switch0
[Switch0]irf member 1 priority 32
[Switch0]interface FortyGigE 1/0/53
[Switch0-FortyGigE1/0/53]shutdown
[Switch0-FortyGigE1/0/53]quit
[Switch0-irf-port1/1]port group interface FortyGigE 1/0/53
[Switch0]interface FortyGigE 1/0/53
[Switch0-FortyGigE1/0/53]undo shutdown
[Switch0]write force
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
[Switch0]irf-port-configuration active

Switch1配置

# 将switch系统编号修改成2
[Switch1]irf member 1 renumber 2
Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]:y
Please reboot the device for the new member ID to take effect.
[Switch1]quit
# 更改编号后保存并重启
<Switch1>reboot
Start to check configuration with next startup configuration file, please wait.........DONE!
Current configuration may be lost after the reboot, save current configuration? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
This command will reboot the device. Continue? [Y/N]:y
# 将接口加入到堆叠端口
[Switch1]interface FortyGigE 2/0/53
[Switch1-FortyGigE2/0/53]shutdown 
[Switch1-FortyGigE2/0/53]quit
[Switch1]irf-port 2/1
[Switch1-irf-port2/1]irf-port 2/2
[Switch1-irf-port2/2]port group interface FortyGigE 2/0/53
You must perform the following tasks for a successful IRF setup: 
Save the configuration after completing IRF configuration. 
Execute the "irf-port-configuration active" command to activate the IRF ports. 
[Switch1-irf-port2/2]quit
[Switch1]interface FortyGigE 2/0/53
[Switch1-FortyGigE2/0/53]undo shutdown
#!!!一定要先执行保存
[Switch1-FortyGigE2/0/53]write force
#激活irf后,这台交换机将会自动重启
[Switch1]irf-port-configuration active

诊断命令

查看irf设备成员列表

<Switch0>dis irf
MemberID    Role    Priority  CPU-Mac         Description*1        Master  32        505e-4cd7-0104  ---+2        Standby 1         505e-4f4c-0204  ---
--------------------------------------------------* indicates the device is the master.+ indicates the device through which the user logs in.The bridge MAC of the IRF is: 505e-4cd7-0100Auto upgrade                : yesMac persistent              : 6 minDomain ID                   : 0
<Switch0>

查看irf链路信息

<Switch0>dis irf link
Member 1IRF Port  Interface                             Status1         FortyGigE1/0/53                       UP    2         disable                               --    
Member 2IRF Port  Interface                             Status1         disable                               --    2         FortyGigE2/0/53                       UP    
<Switch0>

查看irf拓扑情况

<Switch0>dis irf topology Topology Info-------------------------------------------------------------------------IRF-Port1                IRF-Port2          MemberID    Link       neighbor      Link       neighbor    Belong To2           DIS        ---           UP         1           505e-4cd7-01041           UP         2             DIS        ---         505e-4cd7-0104

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

如若内容造成侵权/违法违规/事实不符,请联系编程大学网进行投诉反馈email:xxxxxxxx@qq.com,一经查实,立即删除!

相关文章

小小逻辑判断符的错误使用,资损几万块

小小逻辑判断符,资损几万块分享是最有效的学习方式。 博客:https://blog.ktdaddy.com/故事 这是一个真实事件,三年前老猫负责公司的支付资产业务。为了响应上级号召,加强国央企之间的合作,公司新谈了一个支付对接的渠道(当然这个支付渠道其实很冷门的,也是为了对接而对接…

MySQL 函数

汇总函数 rollup rollup是 SQL 关键字,在 MySQL 中得用with rollup。它是group by子句的扩展,用于统计后增加一行汇总数据。 举例,现有库存表,我们按仓库名称分组,统计每个仓库的产品总量,最后来一个汇总。 mysql> SELECT * FROM inventory; +----+---------------+--…

《线性代数的本质》笔记(01-03)

前言: 本系列为《线性代数的本质》的笔记,作者为3Blue1Brown大神,视频的b站链接为 https://www.bilibili.com/video/BV1ys411472E/?spm_id_from=333.999.0.0&vd_source=cb7d5dd830bc59a85c459b0b14a2e685 看了这个系列视频后我受益匪浅,为了方便后续回顾所以整理成了文…

Deutsch Lernen

Hallo.贴个德语键位表。

[转帖]活久见,TCP连接互串了

https://plantegg.github.io/2020/11/18/TCP%E8%BF%9E%E6%8E%A5%E4%B8%BA%E5%95%A5%E4%BA%92%E4%B8%B2%E4%BA%86/ 背景 应用每过一段时间总是会抛出几个连接异常的错误,需要查明原因。 排查后发现是TCP连接互串了,这个案例实在是很珍惜,所以记录一下。 抓包 业务结构: 应用…

MySQL查询

1.order by排序 ASC(ascend): 升序 默认升序 DESC(descend):降序 ORDER BY 子句在SELECT语句的结尾。