华为交换机堆叠配置和注意的点

news/2024/6/3 18:02:01 标签: 华为

交换机堆叠的主要作用,第一为网络做一个冗余的作用,交换机性能在原理的基础上提升了一倍。

 华为一台交换机有两个堆叠口,默认是0/1  0/2    这个0代表的就是我们端口的第一个序列号0/0/1  0/0/2 . 如果要链接另外一台交换机 前面的0 要改成1,这样才能区分出来堆叠后端口区分。这里的0和1就是堆叠口里面的堆叠成员ID  这个很重要 不然堆叠失败

我第一次没改堆叠ID配置了堆叠口链接线后提升冲突了

交换机一直跳这个, 

逻辑堆叠端口是专用于堆叠的逻辑端口,需要和物理成员端口绑定。堆叠的每台成员交换机上支持两个逻辑堆叠端口,分别为stack-port n/1和stack-port n/2,其中n为成员交换机的堆叠ID。

注意的点:本设备的stack-port 0/1必须链接邻设备的stack-port 1/2,不然堆叠组建不成功。

SWA配置web

# 更名
[Huawei]sysname SWA

# 最好先shutdown接口
[SWA]interface GigabitEthernet 0/0/23
[SWA-GigabitEthernet0/0/23]shutdown
[SWA-GigabitEthernet0/0/23]interface GigabitEthernet 0/0/24
[SWA-GigabitEthernet0/0/24]shutdown
[SWA-GigabitEthernet0/0/24]quit

# SWA默认number0
[SWA]interface stack-port 0/1              
[SWA-stack-port0/1]port interface GigabitEthernet 0/0/23 enable
[SWA-stack-port0/1]quit
[SWA]interface stack-port 0/2
[SWA-stack-port0/2]port  interface GigabitEthernet 0/0/24 enable
[SWA-stack-port0/2]quit

# 开启23和24接口,保存配置
[SWA]interface GigabitEthernet 0/0/23
[SWA-GigabitEthernet0/0/23]undo shutdown
[SWA-GigabitEthernet0/0/23]interface GigabitEthernet 0/0/24
[SWA-GigabitEthernet0/0/24]undo shutdown
[SWA-GigabitEthernet0/0/24]quit
[SWA]quit
<SWA>save
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 0.
Save the configuration successfully.

SWB配置svg

# 更名
[Huawei]sysname SWB

# 关闭接口
[SWB]interface GigabitEthernet 0/0/23
[SWB-GigabitEthernet0/0/23]shutdown
[SWB-GigabitEthernet0/0/23]interface GigabitEthernet 0/0/24
[SWB-GigabitEthernet0/0/24]shutdown
[SWB-GigabitEthernet0/0/24]quit

# 修改为员号
[SWB]stack slot 0 renumber 1

# 默认100,华为是1-255,值越大优先级越高会被推举为Master
[SWB]stack slot 0 priority 10    
[SWB]interface stack-port 1/1 
[SWB-stack-port0/1]port  interface GigabitEthernet 1/0/23 enable 
[SWB-stack-port0/1]quit
[SWB]interface stack-port 1/2
[SWB-stack-port0/2]port interface  GigabitEthernet 1/0/24 enable 
[SWB-stack-port0/2]quit

# 开启23和24接口,保存配置
[SWB]interface GigabitEthernet 1/0/23
[SWB-GigabitEthernet0/0/23]undo shutdown
[SWB-GigabitEthernet0/0/23]interface GigabitEthernet 1/0/24
[SWB-GigabitEthernet0/0/24]undo shutdown
[SWB-GigabitEthernet0/0/24]quit
[SWB]quit
<SWB>sava
The current configuration will be written to the device.
Are you sure to continue?[Y/N]y
Info: Please input the file name ( *.cfg, *.zip ) [vrpcfg.zip]:
Now saving the current configuration to the slot 0.
Save the configuration successfully.

最后重启两台交换机
正常状况下就配置好了,重启后可查看在一台交换机上接口数量是否增长一倍测试

[SWA]display interface brief  

 


http://www.niftyadmin.cn/n/1765373.html

相关文章

OSPF7种状态机停留实验

1.OSPF状态主要分为哪几种&#xff1f; down(没有启用OSPF的状态机&#xff1b;邻居失效后变为该状态)init&#xff08;初始化状态&#xff0c;第一次收到对端发来的HELLO包&#xff08;包含对瑞ID&#xff09;时&#xff0c;将对端的状态设置为init&#xff09;2way&#xff…

main()与_tmain()的区别

区别 tmain()是Unicode版本的的main()&#xff0c;所以main()与_tmain()其实就是同一个东西。 _tmain这个符号多见于VC创建的控制台工程中&#xff0c;这个是为了保证移植Unicode而加入的&#xff08;一般_t、_T、T()这些东西都和Unicode有关系&#xff09;&#xff0c;对于使…

解决Ubuntu下genymotion出现Unable to load VirtualBox engine问题

问题&#xff1a; Ubuntu安装完成GenyMotion&#xff0c;启动出现下面提示: Unable to load VirtualBox engine.Make sure that it is properly installed before starting Genymotion. 解决办法&#xff1a; 1、在虚拟终端输入virtualbox会提示&#xff1a; WARNING: The vb…

MFC Ribbon界面如何添加dialog

之前没有用过Ribbon&#xff0c;都是基于单个的dialog使用MFC。现在为了更加美观和易用&#xff0c;试着去用Ribbon&#xff0c;Toolbar、标题栏那些还比较容易&#xff0c;但是怎么在下方再添加其他的控件&#xff1f;比如Picture Control等。 Questions: 新建的Dialog如何显…

解决ssh连接远程机器时提示“ssh_exchange_identification: Connection closed by remote host”或 Connection refused

不少人在ssh连接远程机器时遇到过ssh_exchange_identification: Connection closed by remote host的问题&#xff0c;在网上找了一堆教程试了都不行&#xff0c;博主总结了常见的几种解决方法&#xff08;以Ubuntu18.04为例&#xff09;。 可能原因1&#xff1a;没装openssh-s…

#ifndef, #define, #endif作用

条件指示符#ifndef 的最主要目的是防止头文件的重复包含和编译 参考以下两个链接&#xff1a; #ifndef/#define/#endif使用详解 头文件为什么要加#ifndef #define #endif 其实“被重复引用”是指一个头文件在同一个cpp文件中被include了多次&#xff0c;这种错误常常是由于i…

vscode下调试ROS项目,节点调试,多节点调试,roslauch调试

本文包含vscode下环境包括调试环境的搭建、节点或launch文件运行、单节点调试、多节点/launch文件&#xff08;roslaunch&#xff09;调试&#xff0c;及各个过程中最常见的问题及解决方法。 1. 相关插件安装 ROS插件。C配置&#xff1a;安装c/c 及 C Intellisense 这两个插件…

ubuntu 14.04安装新版vscode,无法启动、无响应、not responding、无法打开终端的解决方法

ubuntu 14.04 下新版的vscode存在各种问题&#xff0c;如&#xff1a; 无法启动、无响应、not responding&#xff0c;或者启动后无法打开终端&#xff0c;提示&#xff1a; The terminal process failed to launch: A native exception occurred during launch (/lib64/libst…