首页 > 其他分享 >H3C配置IRF实现网络设备堆叠

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

时间:2024-04-14 11:33:04浏览次数:21  
标签:H3C Switch1 Switch0 53 IRF 网络设备 configuration irf

堆叠的概述

在此之前了解一下什么是堆叠,堆叠是指将多台交换机设备通过线缆连接后组合在一起,虚拟化成一台设备,是一种横向虚拟化技术。堆叠作为一种横向虚拟化技术,将多台设备在逻辑上虚拟成一台设备,可以简化网络的配置和管理。华三的虚拟化技术叫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-0100
 Auto upgrade                : yes
 Mac persistent              : 6 min
 Domain ID                   : 0
<Switch0>

查看irf链路信息

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

查看irf拓扑情况

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

标签:H3C,Switch1,Switch0,53,IRF,网络设备,configuration,irf
From: https://www.cnblogs.com/mo-x/p/18133836

相关文章

  • windmill Airplane&Superblocks&Retool&Prefect&Airflow 可选工具
    现在调度工具是越来越多了,而且集成的能力也越来越强大了windmill是一个很不错的workflow调度平台功能很强大特性可扩展的执行runtime,支持跨语言代码执行强大的调度器,支持基于低代码以及yaml模式通过appbuilder使用低代码或者js框架开发面向数据的dashboards智能依赖以......
  • 【交换机】华三交换机端口加入vlan命令_h3c交换机vlan配置划分命令
    h3c交换机vlan配置划分命令一、基本设置1.console线连接成功2.进入系统模式system-view//提示符由变为[H3C]3.更改设备名称[H3C]sysnameTEST4.查看所有配置信息[H3C]displaycurrent-configuration//displaythis为查看当前路径下的设备信息5.创建并进入VLAN......
  • H3C S3600 交换机配置SSH登录
    S3600这款交换机比较旧了,版本为V3生成服务器端的RSA和DSA密钥对时完成SSH登录的必要操作#生成RSA和DSA密钥对。[Switch]public-keylocalcreatersa[Switch]public-keylocalcreatedsa#设置用户接口上的认证模式为AAA认证。[Switch]user-interfacevty04[Switch-......
  • Airflow 搭建
    安装采用pip安装#下面的安装方式是通过pip采用清华源来安装,一般安装的版本比较低pipinstallapache-airflow-ihttps://pypi.tuna.tsinghua.edu.cn/simple采用anaconda安装--推荐anacoand/miniforge安装方式参考这里condainstallapache-airflow初始化数据库airflo......
  • 使用miniforge平替anaconda,重建airflow服务
    背景因公司通知不能使用anaconda,可以采用miniforge作为开源平替,因之前环境搭建使用的就是anaconda,当前需要卸载并替换成miniforge。那为什么一定要用这个呢,其实也不是一定,而是用这个搭建环境比较省事,如果没用这个,我当前环境的python版本过低,解决这个问题耗费的时间会更久,所以最......
  • H3C-V7防火墙透明部署案例(华三)
    1.配置需求如下组网图所示,在原有的网络中增加防火墙来提高网络安全性,但又不想对原有网络配置进行改动,所以需要防火墙采用透明模式部署;其中GigabitEthernet1/0/1接口接原有路由器的下联口,GigabitEthernet1/0/3接口接原有的交换机上联口。2.组网图3.配置步骤3.1配置连接路由......
  • H3C-V7交换机NTP服务器、客户端配置方法(华三)
    1.配置需求1.1SwitchA、B、C均是V7交换机,需要把SwitchA设置为NTP时钟服务器,SwitchB做为SwitchA的客户端,同步时间;1.2由于SwitchC与SwitchA路由不可达,无法直接从SwitchA同步时间。需要将SwitchB做为SwitchC的服务器,让SwitchC同步时间。2.组网图3.配置步骤3.1配置SWA为NTP服务......
  • Grafana+Prometheus监控网络设备
    使用Grafana+Prometheus监控网络设备在Linux下安装Granfna+Prometheus集成环境通过snmp协议监控网络设备安装前提Granfa软件包Grafana官方地址:https://grafana.com/Grafana官方文档地址:https://grafana.com/docs/Grafana官方下载地址:https://grafana.com/grafana/download?......
  • H3C 配置IPv6 DHCP服务器
    H3C交换机配置DHCPv6服务器官方文档:https://www.h3c.com/cn/d_202303/1810058_30005_0.htmIPv6地址计算器:https://www.838dz.com/calculator/5233.html配置调试场景将Router模拟为运营商链路将Switch模拟为DHCPv6服务器实现PC可以从Switch上获取ipv6地址实现上网拓扑......
  • 通过Telnet访问网络设备
            要通过Telnet访问网络设备,需要通过Console端口对网络设备进行基本配置,例如,IP地址、子网掩码、用户名和登录密码等。本实验以路由器为例,交换机远程管理只是接口名字不同而已,路由器用物理接口,交换机用SVI接口进行管理。1、实验目的通过本实验可以掌握:路由器......