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

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.

H3C\]sysname SW1 \[SW1\]interface Ten-GigabitEthernet 1/0/50 \[SW1-Ten-GigabitEthernet1/0/50\]shutdown \[SW1-Ten-GigabitEthernet1/0/50\]quit

SW2的配置

<H3C>system-view

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

H3C\]sysname SW2 \[SW2\]interface Ten-GigabitEthernet 1/0/50 \[SW2-Ten-GigabitEthernet1/0/50\]shutdown \[SW2-Ten-GigabitEthernet1/0/50\]quit

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

SW1\]irf member 1 priority 30 //配置设备的堆叠成员ID为1,堆叠优先级为30 \[SW1\]irf-port 1/1 //进入虚拟堆叠口 \[SW1-irf-port1/1\]port group interface Ten-GigabitEthernet 1/0/50//将物理接口加入到堆叠口 \[SW1-irf-port1/1\]quit \[SW1\]irf-port-configuration active //激活堆叠配置 \[SW1\]interface Ten-GigabitEthernet 1/0/50 \[SW1-Ten-GigabitEthernet1/0/50\]undo shutdown //开启物理接口 \[SW1\]save //保存配置

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

SW2\]irf member 1 renumber 2 //配置堆叠成员ID为1(成员ID不能冲突) Renumbering the member ID may result in configuration change or loss. Continue?\[Y/N\]:y \[SW2\]irf-port 1/2 //进入虚拟堆叠口1/2 \[SW2-irf-port1/2\]port group interface Ten-GigabitEthernet 1/0/50//将物理接口加入到堆叠口 \[SW2-irf-port1/2\]quit \[SW2\]irf-port-configuration active //激活堆叠配置 \[SW2\]interface Ten-GigabitEthernet 1/0/50 \[SW2-Ten-GigabitEthernet1/0/50\]undo shutdown \[SW2-Ten-GigabitEthernet1/0/50\]quit \[SW2\]save

4)SW1的配置

SW1\]quit \reboot将设备重启,自动完成堆叠。

SW2的配置

SW1\]quit \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,即从设备。最终可以实现,将多台物理设备堆叠成一台逻辑设备。


持续更新更多文章!

相关推荐
蜡笔小炘9 分钟前
LVS -- 利用防火墙标签(FireWall Mark)解决轮询错误
服务器·数据库·lvs
生活很暖很治愈19 分钟前
Linux——孤儿进程&进程调度&大O(1)调度
linux·服务器·ubuntu
JoySSLLian32 分钟前
手把手教你安装免费SSL证书(附宝塔/Nginx/Apache配置教程)
网络·人工智能·网络协议·tcp/ip·nginx·apache·ssl
HalvmånEver35 分钟前
Linux:线程同步
linux·运维·服务器·线程·同步
喵叔哟36 分钟前
06-ASPNETCore-WebAPI开发
服务器·后端·c#
Zach_yuan37 分钟前
自定义协议:实现网络计算器
linux·服务器·开发语言·网络
岁杪杪41 分钟前
关于运维:LINUX 零基础
运维·服务器·php
猫头虎1 小时前
如何解决 OpenClaw “Pairing required” 报错:两种官方解决方案详解
网络·windows·网络协议·macos·智能路由器·pip·scipy
tianyuanwo1 小时前
企业级NTP客户端配置指南:基于内部NTP服务器的实践
运维·服务器·ntp客户端
芷栀夏1 小时前
CANN开源实战:基于DrissionPage构建企业级网页自动化与数据采集系统
运维·人工智能·开源·自动化·cann