【网络配置实战】堆叠的配置

1. 实验目的:

  1. 熟悉堆叠的应用场景
  2. 掌握堆叠的配置方法

2. 实验拓扑

实验拓扑如图所示。

【技术要点】

现网中公司需要对交换网络扩容,需要将SW1和SW2两台设备使用业务接口进行堆叠。(华为ensp模拟器不支持堆叠,此实验使用H3C的模拟器HCL)

3. 实验步骤

1)选择需要进行堆叠的业务接口,并且将端口shutdown

SW1的配置

<H3C>system-view

System View: return to User View with Ctrl+Z.

H3Csysname SW1

SW1interface Ten-GigabitEthernet 1/0/50

SW1-Ten-GigabitEthernet1/0/50shutdown

SW1-Ten-GigabitEthernet1/0/50quit

SW2的配置

<H3C>system-view

System View: return to User View with Ctrl+Z.

H3Csysname SW2

SW2interface Ten-GigabitEthernet 1/0/50

SW2-Ten-GigabitEthernet1/0/50shutdown

SW2-Ten-GigabitEthernet1/0/50quit

2)将SW1配置成堆叠后的主设备,配置对应的优先级,并将业务线缆加入虚拟的堆叠口

SW1irf member 1 priority 30 //配置设备的堆叠成员ID为1,堆叠优先级为30

SW1irf-port 1/1 //进入虚拟堆叠口

SW1-irf-port1/1port group interface Ten-GigabitEthernet 1/0/50//将物理接口加入到堆叠口

SW1-irf-port1/1quit

SW1irf-port-configuration active //激活堆叠配置

SW1interface Ten-GigabitEthernet 1/0/50

SW1-Ten-GigabitEthernet1/0/50undo shutdown //开启物理接口

SW1save //保存配置

3)将SW2业务线缆加入虚拟的堆叠线缆

SW2irf member 1 renumber 2 //配置堆叠成员ID为1(成员ID不能冲突)

Renumbering the member ID may result in configuration change or loss. Continue?Y/N:y

SW2irf-port 1/2 //进入虚拟堆叠口1/2

SW2-irf-port1/2port group interface Ten-GigabitEthernet 1/0/50//将物理接口加入到堆叠口

SW2-irf-port1/2quit

SW2irf-port-configuration active //激活堆叠配置

SW2interface Ten-GigabitEthernet 1/0/50

SW2-Ten-GigabitEthernet1/0/50undo shutdown

SW2-Ten-GigabitEthernet1/0/50quit

SW2save

4)SW1的配置

SW1quit

<SW1>reboot将设备重启,自动完成堆叠。

SW2的配置

SW1quit

<SW1>reboot

4)实验调试

查看堆叠配置

<SW1>display irf //查看堆叠配置

MemberID Role Priority CPU-Mac Description

*+1 Master 30 0caa-192d-0104 ---

2 Standby 1 0caa-1b49-0204 ---


* indicates the device is the master.

  • indicates the device through which the user logs in.

The bridge MAC of the IRF is: 0caa-192d-0100

Auto upgrade : yes

Mac persistent : 6 min

Domain ID : 0

可以看到堆叠ID为1的SW1为master,即主设备,堆叠ID为2的SW2为standby,即从设备。最终可以实现,将多台物理设备堆叠成一台逻辑设备。


持续更新更多文章!

相关推荐
xixiaoyunya2 小时前
制造业生产数据备份:在“不停产“前提下的自动化实践
网络·安全
Figo_Cheung2 小时前
Figo权重动力学:递归本体论与跨尺度演化的形式化基础——揭示:宇宙的演化,本质上就是一场由无数观测者共同参与的、永不停歇的、跨尺度的权重重构盛宴。
网络·人工智能·量子计算
第十人i2 小时前
Linux 系统初始化配置清单:新服务器快速部署
linux·服务器
j7~2 小时前
【Linux】三十八.C++ 手写 HTTP 服务器:裸 socket + fork 多进程,从 HTTP 报文解析到浏览器打开网页
linux·网络·网络协议·学习·http·网络编程
FW-Linker2 小时前
偏远山区户外直播网络优化:多链路聚合如何保障稳定低时延传输
网络·5g·智能路由器
蓝速科技3 小时前
会议室门牌签到功能选型与落地指南丨蓝速科技
大数据·运维·数据库·人工智能·科技
逐流人3 小时前
Containerd容器管理实战:从架构原理到nerdctlcrictl工具链
linux·运维·云原生·容器·云计算·containerd
Wang's Blog3 小时前
Java 项目实战: 外卖平台-后台退出功能与首页iframe架构
java·服务器·redis
Wang's Blog3 小时前
Java 项目实战: 外卖平台-软件开发流程与项目整体介绍
java·服务器·redis
X7766X3 小时前
暴雨重构国产大模型底层加速体系
服务器