H3C交换机堆叠操作

H3C交换机堆叠操作

本文使用HCL模拟器进行演示。

首先创建好如图所示的两个交换机,把两台交换机的光口进行相连。

H3C交换机堆叠操作_第1张图片

​ 交换机命名无所谓,后面会在系统内专门命名。连接的两个口一定要是光口并且对应连接,因为堆叠之后对线路带宽要求很高,电口的带宽不够。下方是光口连接图。
H3C交换机堆叠操作_第2张图片

做好之后我们进入D01的 命令行终端。进入之后当有文本输出之后按Ctrl+C或Ctrl+D之后按Enter进入命令行终端输入界面。

Press ENTER to get started.
****************************************************************************
* Copyright (c) 2004-2022 New H3C Technologies Co., Ltd. All rights reserved
* Without the owner's prior written consent,
* no decompiling or reverse-engineering shall be allowed.
****************************************************************************

<H3C>%Feb 12 11:48:05:254 2023 H3C SHELL/5/SHELL_LOGIN: Console logged in fr

<H3C>
<H3C>
<H3C>
<H3C>
<H3C>

类似这样。

然后进入系统视图。

sy //简写
system-view

然后对设备进行命名。

sysname D01 //命名为D01

设置设备优先级,堆叠的主设备首先根据优先级来判定。

irf member 1 priority 32
irf member 1(slot号,可以进行变更) priority 32(最高32,最好进行设置)

刚刚的设置可以通过 display irf 查看

display irf
//显示结果
MemberID    Role    Priority  CPU-Mac         Description
 *+1        Master  32        4627-3e1b-0604  ---
--------------------------------------------------
 * indicates the device is the master.
 + indicates the device through which the user logs in.

 The bridge MAC of the IRF is: 4627-3e1b-0600
 Auto upgrade                : yes
 Mac persistent              : 6 min
 Domain ID                   : 0

进入 我们连接好的 1/0/49-50 万兆口

interface range Ten-GigabitEthernet 1/0/49 to Ten-GigabitEthernet 1/0/50

将端口停止启动

shutdown

退出端口视图

quit

进入堆叠端口1/2

irf-port 1/2

把49和50端口加入组

port group interface Ten-GigabitEthernet 1/0/49
port group interface Ten-GigabitEthernet 1/0/50

退出irf端口视图

quit

进入端口视图

interface range Ten-GigabitEthernet 1/0/49 to Ten-GigabitEthernet 1/0/50

启动两个万兆端口

undo shutdown

退出端口视图

quit

保存配置

save force

激活IRF端口配置

irf-port-configuration active

第二台

进入系统视图

sy
system-view

对设备进行命名

sysname D02

变更slot号

irf member 1 renumber 2

然后yes就号

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.

然后退出系统视图重启设备

reboot

重启过程及选择

<D04>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
Now rebooting, please wait....%Feb 10 14:18:07:645 2023 D04 DEV/5/SYSTEM_REBOOT: System is rebooting now.
..Cryptographic algorithms tests passed.
Line con3 is available.


Press ENTER to get started.

可以通过 display version 查看slot号是否已变更

display version
//显示结果
Slot 2:
S6850 with 2 Processors
BOARD TYPE: S6850
DRAM:  3072M bytes
FLASH: 1024M bytes
PCB 1 Version: VER.C
Bootrom Version: 908
CPLD 1 Version: 002
CPLD 2 Version: 002
Release Version: H3C S6850
Patch Version: None
Reboot Cause: User reboot
[SubSlot 0] 48SFP Plus+4QSFP Plus

进入系统视图,变更优先级

irf member 2 priority 16
//记得比D01的优先级低

然后进入系统视图,进入49/50端口

interface range Ten-GigabitEthernet 2/0/49 to Ten-GigabitEthernet 2/0/50

关闭49/50端口

shutdown

进入逻辑端口

irf-port 2/1

把49和50加入逻辑端口

port group interface Ten-GigabitEthernet 2/0/49
port group interface Ten-GigabitEthernet 2/0/50

退出逻辑端口视图

quit

进入49/50端口视图

interface range Ten-GigabitEthernet 2/0/49 to Ten-GigabitEthernet 2/0/50

启动49/50端口

undo shutdown

退出到系统视图

quit

保存配置

save force

激活IRF端口配置

irf-port-configuration active

可以通过 display irf 查看目前的堆叠表

display irf
//显示结果
MemberID    Role    Priority  CPU-Mac         Description
  *1        Master  32        4627-3e1b-0604  ---
  +2        Standby 16        4627-460e-0704  ---
--------------------------------------------------
 * indicates the device is the master.
 + indicates the device through which the user logs in.

 The bridge MAC of the IRF is: 4627-3e1b-0600
 Auto upgrade                : yes
 Mac persistent              : 6 min
 Domain ID                   : 0

看到这个就说明堆叠好了。

你可能感兴趣的:(网络服务及私有云搭建,网络)