华为交换机 iStack 堆叠配置 2023/06/30 11:32 • Huawei • 阅读 5055 目录 实验背景实验拓扑操作步骤 实验背景 公司内部有三台 Huawei S5731S-H24T4XC 交换机,为实现跨设备的链路冗余备份,提高网络可靠性,同时简化网络配置和管理,将三台交换机配置堆叠,从逻辑上组合成一台交换设备。 交换机堆叠的部署指导可前往 https://info.support.huawei.com/network/virtual/index 进行查看。 参考文章:https://blog.csdn.net/weixin_42430824/article/details/110194401 实验拓扑 SW1、SW2 以及 SW3 三台接入交换机采用环形堆叠组网,其中 SW1 作为主交换机,SW2 作为备交换机。 操作步骤 1、配置 SW1 交换机,堆叠 ID 为 0,优先级设置为 200。 # 创建并进入逻辑堆叠端口,并将物理端口加入到逻辑堆叠端口中 <SW1>system-view [SW1]interface stack-port 0/1 [SW1-stack-port0/1]port interface XGigabitEthernet 0/0/1 enable [SW1]interface stack-port 0/2 [SW1-stack-port0/2]port interface XGigabitEthernet 0/0/2 enable # 系统提示堆叠功能会导致接口上的配置丢失,输入 y 继续执行 Warning: Enabling stack function may cause configuration loss on the interface. Continue? [Y/N]:y # 堆叠 ID 采用缺省值 0,并将主交换机的堆叠优先级修改为 200,大于其他成员交换机 [SW1]stack slot 0 priority 200 # 系统提示修改优先级会导致堆栈分裂,输入 y 继续执行 Warning: Do not frequently modify the priority because it will make the stack split. Continue? [Y/N]:y 2、配置 SW2 交换机,堆叠 ID 为 1,优先级设置为 150。 # 创建并进入逻辑堆叠端口,并将物理端口加入到逻辑堆叠端口中。 <SW2>system-view [SW2]interface stack-port 0/1 [SW2-stack-port0/1]port interface XGigabitEthernet 0/0/1 enable [SW2]interface stack-port 0/2 [SW2-stack-port0/2]port interface XGigabitEthernet 0/0/2 enable # 修改交换机的堆叠 ID 为 1 [SW2]stack slot 0 renumber 1 # 备交换机的堆叠优先级修改为 150 [SW2]stack slot 0 priority 150 3、配置 SW3 交换机,堆叠 ID 为 2,优先级为缺省值 100。 # 创建并进入逻辑堆叠端口,并将物理端口加入到逻辑堆叠端口中 <SW3>system-view [SW3]interface stack-port 0/1 [SW3-stack-port0/1]port interface XGigabitEthernet 0/0/1 enable [SW3]interface stack-port 0/2 [SW3-stack-port0/2]port interface XGigabitEthernet 0/0/2 enable # 修改交换机的堆叠 ID 为 2 [SW3]stack slot 0 renumber 2 4、通过 save 命令保存配置文件,然后将所有交换机设备下电。 5、通过线缆将交换机设备进行连接,注意当前设备的 stack-port 0/1 端口,需要连接到相邻设备的 stack-port 0/2 端口,否则堆叠组建不成功。 6、线缆连接完成后先将 SW1 上电,等待 SW1 启动完成后,再将 SW2 和 SW3 上电。 7、检查堆叠组建是否成功。 <SW1>display stack Stack mode: Service-port Stack topology type: Ring Stack system MAC: ccd7-3c13-3a80 MAC switch delay time: 10 min Stack reserved VLAN: 4093 Slot of the active management port: -- Slot Role MAC Address Priority Device Type ------------------------------------------------------------- 0 Master ccd7-3c13-3a80 200 S5731S-H24T4XC-A 1 Standby 1c3d-2fd3-6240 150 S5731S-H24T4XC-A 2 Slave 708c-b6ee-7de0 100 S5731S-H24T4XC-A 本文为原创文章,著作权归作者所有:来自「KOBIN 技术随笔」作者的原创作品,转载请标明出处。华为交换机 iStack 堆叠配置https://blog.kobin.cn/blog/network/n3/2769.html iStack交换机华为 赞 (1) 0 0 生成海报 发表回复 您的邮箱地址不会被公开。 必填项已用 * 标注*昵称: *邮箱: 网址: 记住昵称、邮箱和网址,下次评论免输入 提交 CAPTCHAis initialing...