华为CE交换机堆叠配置

您所在的位置:网站首页 华为交换机双主检测 华为CE交换机堆叠配置

华为CE交换机堆叠配置

2024-07-13 23:30| 来源: 网络整理| 查看: 265

配置堆叠

操作场景

堆叠是指将多台交换机设备组合在一起,虚拟化成一台交换设备。通过交换机堆叠,可以实现网络高可靠性和网络大数据量转发,同时简化网络管理。

注意:待堆叠的交换机之间没有连接堆叠线。如果提前连接好堆叠线再进行堆叠配置,可能会导致网络环路。

 

必备事项

已提前获取串口线。已获取交换机的堆叠数据规划。

操作步骤

使用本地PC连接到主交换机的Console口,执行下述命令: system-view #进入系统视图。 [~S1_LSW_EOR01]stack #进入堆叠视图。 [~S1_LSW_EOR01-stack]stack member 1 priority 100 //配置交换机优先级为100,堆叠成员ID为1,堆叠成员ID若冲突,堆叠后将重新自动配置。 Info: The operation will take effect after reboot [*S1_LSW_EOR01-stack]stack member 1 domain 10 //配置交换机堆叠域ID为10,同一个网络内不同堆叠需选择不同域ID。 Info: The operation will take effect after reboot. [*S1_LSW_EOR01-stack]quit //退出当前配置。 [*S1_LSW_EOR01]commit //提交配置。 [~S1_LSW_EOR01]interface stack-port 1/1 //进入堆叠端口视图。 [*S1_LSW_EOR01-Stack-Port1/1]port member-group interface 10GE 1/0/1 to 1/0/2 //添加成员端口10GE 1/0/1 与10GE 1/0/2至堆叠端口。 [*S1_LSW_EOR01-Stack-Port1/1]quit //退出当前配置界面。 [*S1_LSW_EOR01]commit //提交配置。 [~S1_LSW_EOR01]return //返回用户视图。 save //保存当前配置。 Warning: The current configuration will be written to the device. Continue? [Y/N]:y //确认。 Info: Please input the file name(*.cfg, *.zip, *.dat)[vrpcfg.zip]vrpcfg.zip reboot //重启交换机。 Warning: The system will reboot. Continue? [Y/N]:y //确认。

2、用串口线连接备交换机,进行堆叠配置。此处以堆叠端口是10GE 1/0/1与10GE 1/0/2为例。

system-view #进入系统视图。 [~S1_LSW_EOR02]stack #进入堆叠视图。 [~S1_LSW_EOR02-stack]stack member 1 priority 50 Info: The operation will take effect after reboot [*S1_LSW_EOR02-stack]stack member 1 domain 10 Info: The operation will take effect after reboot. [*S1_LSW_EOR02-stack]quit [*S1_LSW_EOR02]commit [~S1_LSW_EOR02]interface stack-port 1/1 [*S1_LSW_EOR02-Stack-Port1/1]port member-group interface 10GE 1/0/1 to 1/0/2 [*S1_LSW_EOR02-Stack-Port1/1]quit [*S1_LSW_EOR02]commit [~S1_LSW_EOR02]return save Warning: The current configuration will be written to the device. Continue? [Y/N]:y Info: Please input the file name(*.cfg, *.zip, *.dat)[vrpcfg.zip]vrpcfg.zip reboot //重启交换机。 Warning: The system will reboot. Continue? [Y/N]:y

3、根据交换机堆叠数据规划连接堆叠线缆 。

4、查询堆叠配置。等待5分钟左右,在主交换机上执行如下命令,查询堆叠配置,Role为“Master”的设备为主设备。

display stack -------------------------------------------------------------------------------- MemberID Role MAC Priority DeviceType Description -------------------------------------------------------------------------------- 1 Master 006c-2003-0740 100 CE5855-48T4S2Q-EI #主交换机 +2 Standby 006c-2003-0780 50 CE5855-48T4S2Q-EI #备交换机

5、配置双主检测。堆叠成功后,配置双主检测,可以检测并处理堆叠分裂时网络中出现的双主冲突。

配置交换机S1_LSW_EOR01。

system-view #进入系统视图 [~S1_LSW_EOR01]interface ge1/0/48 #进入ge1/0/48接口视图 [~S1_LSW_EOR01-GE1/0/48]dual-active detect mode direct #配置业务口的双主检测功能。 Warning: The interface will block common data packets, except BPDU packets. Continue? [Y/N]:Y #输入Y确认。 [*S1_LSW_EOR01-GE1/0/48]commit #提交配置。 [~S1_LSW_EOR01-GE1/0/48]return #返回。 save #保存配置。

6、配置交换机S1_LSW_EOR02。 

system-view [~S1_LSW_EOR02]interface ge1/0/48 [~S1_LSW_EOR02-GE1/0/48]dual-active detect mode direct Warning: The interface will block common data packets, except BPDU packets. Continue? [Y/N]:Y [*S1_LSW_EOR02-GE1/0/48]commit [~S1_LSW_EOR02-GE1/0/48]return save

 

 



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3