华为CE交换机堆叠配置

配置堆叠

操作场景

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

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

 

必备事项

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

操作步骤

  1. 使用本地PC连接到主交换机的Console口,执行下述命令:
<S1_LSW_EOR01>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 //返回用户视图。
<S1_LSW_EOR01>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
<S1_LSW_EOR01>reboot //重启交换机。
Warning: The system will reboot. Continue? [Y/N]:y //确认。

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

<S1_LSW_EOR02>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
<S1_LSW_EOR02>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
<S1_LSW_EOR02>reboot //重启交换机。
Warning: The system will reboot. Continue? [Y/N]:y 

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

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

<S1_LSW_EOR01>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。

<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 #返回。
<S1_LSW_EOR01>save #保存配置。

6、配置交换机S1_LSW_EOR02。 

<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
<S1_LSW_EOR02>save

 

 

  • 7
    点赞
  • 61
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值