华为框式交换机S12700E系列配置CSS集群

news2024/9/24 3:19:46

搭建集群环境

a.为两台交换机上电,按照数据规划分别对两台框式交换机进行配置
<HUAWEI> system-view 
[HUAWEI] sysname Switch1
[Switch1] set css id 1 
[Switch1] set css priority 150  //框1的集群优先级配置为150
[Switch1] interface css-port 1
[Switch1-css-port1] port interface xgigabitethernet 4/0/1 to xgigabitethernet 4/0/2 enable
[Switch1-css-port1] quit
[Switch1] interface css-port 2
[Switch1-css-port2] port interface xgigabitethernet 5/0/1 to xgigabitethernet 5/0/2 enable
[Switch1-css-port2] quit
[Switch1] display css status saved  //查看集群配置是否正确  
CSS port media-type: SFP+                                                              
Current Id   Saved Id     CSS Enable   CSS Mode    Priority    Master force      
------------------------------------------------------------------------------  
1            1            Off          LPU         150         Off   

[Switch1] css enable  //集群配置确认正确后,使能集群,重启设备,为保证框ID成为主交换机,先重启Switch1
Warning: The CSS configuration will take effect only after the system is rebooted. The next CSS mode is CSS card. Reboot now? [Y/N]:y
<HUAWEI> system-view 
[HUAWEI] sysname Switch2
[Switch2] set css id 2  //框2的集群优先级使用缺省值,不需要配置。
[Switch2] interface css-port 1
[Switch2-css-port1] port interface xgigabitethernet 4/0/1 to xgigabitethernet 4/0/2 enable
[Switch2-css-port1] quit
[Switch2] interface css-port 2
[Switch2-css-port2] port interface xgigabitethernet 5/0/1 to xgigabitethernet 5/0/2 enable
[Switch2-css-port2] quit
[Switch2] display css status saved //查看集群配置是否正确
CSS port media-type: SFP+                                                              
Current Id   Saved Id     CSS Enable   CSS Mode    Priority    Master Force                
------------------------------------------------------------------------------ 
1            2            Off          LPU         1           Off     
[Switch2] css enable  //集群配置确认正确后,使能集群,重启设备
Warning: The CSS configuration will take effect only after the system is rebooted. The next CSS mode is CSS card. Reboot now? [Y/N]:y
b.交换机重启后,查看集群是否组建成功

#通过交换机框上主控板的集群指示灯查看集群状态。

Switch1主控板上ACT灯绿色常亮,表示该主控板为集群系统主用主控板,Switch1为主交换机。

Switch2主控板上ACT灯绿色闪烁,表示该主控板为集群系统备用主控板,Switch2为备交换机。

#通过任意主控板上的Console口登录集群系统,使用命令行查看集群组建是否成功。

根据集群优先级,优先级大的Switch1会成为集群系统的主框,执行命令display device查看设备状态时,集群系统名为Switch1。

<Switch1> display device
Chassis 1 (Master Switch)                                                       
S12700E-8's Device status:                                                          
Slot  Sub Type         Online    Power      Register       Status     Role   
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
1     -   LST7X24BX6E0 Present   PowerOn    Registered     Normal     NA        
2     -   LST7X24BX6E0 Present   PowerOn    Registered     Normal     NA        
3     -   -            Present   PowerOn    Unregistered   -          NA        
9     -   LST7MPUE0000 Present   PowerOn    Registered     Normal     Master    
10    -   LST7MPUE0000 Present   PowerOn    Registered     Normal     Slave     
PWR1  -   -            Present   PowerOn    Registered     Normal     NA        
CMU1  -   EH1D200CMU00 Present   PowerOn    Registered     Normal     Master    
FAN1  -   -            Present   PowerOn    Registered     Normal     NA        
FAN2  -   -            Present   PowerOn    Registered     Normal     NA        
Chassis 2 (Standby Switch)                                                      
S12700E-8's Device status:                                                          
Slot  Sub Type         Online    Power      Register       Status     Role   
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -   
1     -   LST7X24BX6E0 Present   PowerOn    Registered     Normal     NA        
2     -   LST7X24BX6E0 Present   PowerOn    Registered     Normal     NA        
3     -   -            Present   PowerOn    Unregistered   -          NA        
9     -   LST7MPUE0000 Present   PowerOn    Registered     Normal     Master    
10    -   LST7MPUE0000 Present   PowerOn    Registered     Normal     Slave      
PWR1  -   -            Present   PowerOn    Registered     Normal     NA        
CMU2  -   EH1D200CMU00 Present   -          Unregistered   -          NA        
FAN1  -   -            Present   PowerOn    Registered     Normal     NA        
FAN2  -   -            Present   PowerOn    Registered     Normal     NA         
<Switch1> display css status 
CSS Enable switch On 
Chassis Id   CSS Enable   CSS Status      CSS Mode    Priority    Master Force   
------------------------------------------------------------------------------   
1            On           Master          LPU         150         Off            
2            On           Standby         LPU         1           Off   
<Switch1> display css channel all    //查看集群链路拓扑是否与硬件连接一致
CSS link-down-delay: 500ms 

                Chassis 1               ||               Chassis 2              
================================================================================
Num [CSS port]       [LPU Port]         ||    [LPU Port]            [CSS port]  
 1     1/1    XGigabitEthernet1/4/0/1      XGigabitEthernet2/4/0/1      2/1     
 2     1/1    XGigabitEthernet1/4/0/2      XGigabitEthernet2/4/0/2      2/1     
 3     1/2    XGigabitEthernet1/5/0/1      XGigabitEthernet2/5/0/1      2/2     
 4     1/2    XGigabitEthernet1/5/0/2      XGigabitEthernet2/5/0/2      2/2     
                Chassis 2               ||               Chassis 1              
================================================================================
Num [CSS port]       [LPU Port]         ||    [LPU Port]            [CSS port]  
 1     2/1    XGigabitEthernet2/4/0/1      XGigabitEthernet1/4/0/1      1/1     
 2     2/1    XGigabitEthernet2/4/0/2      XGigabitEthernet1/4/0/2      1/1     
 3     2/2    XGigabitEthernet2/5/0/1      XGigabitEthernet1/5/0/1      1/2     
 4     2/2    XGigabitEthernet2/5/0/2      XGigabitEthernet1/5/0/2      1/2   
<Switch1> system-view 
[Switch1] sysname CORE   //为便于记忆,修改集群系统的设备名
c.集群组建完成,配置多主检测

集群组建完成后,为防止集群故障分裂导致多主影响业务,在两台交换机直接连接一条线缆,用于多主检测。线缆对应的接口分别为XGE1/1/0/10和XGE2/1/10

[CORE] interface xgigabitethernet 1/1/0/10 
[CORE-XGigabitEthernet1/1/0/10] mad detect mode direct 
Warning: This command will block the port, and no other configuration running on this port is recommended. Continue?[Y/N]:y [CORE-XGigabitEthernet1/1/0/10] quit
[CORE] interface xgigabitethernet 2/1/0/10 
[CORE-XGigabitEthernet2/1/0/10] mad detect mode direct 
Warning: This command will block the port, and no other configuration running on this port is recommended. Continue?[Y/N]:y [CORE-XGigabitEthernet2/1/0/10] return
<CORE> display mad verbose   //查看多主检测配置
Current MAD domain: 0               
Current MAD status: Detect             
Mad direct detect interfaces configured:        
 XGigabitEthernet1/1/0/10                
 XGigabitEthernet2/1/0/10               
Mad relay detect interfaces configured:          
Excluded ports(configurable):                 
Excluded ports(can not be configured):
d.在集群上配置Eth-Trunk接口
<CORE> system-view 
[CORE] interface eth-trunk 10  //创建与AGG1相连的Eth-Trunk接口
[CORE-Eth-Trunk10] mode lacp
[CORE-Eth-Trunk10] quit 
[CORE] interface xgigabitethernet 1/1/0/1 
[CORE-XGigabitEthernet1/1/0/1] eth-trunk 10 
[CORE-XGigabitEthernet1/1/0/1] quit 
[CORE] interface xgigabitethernet 2/1/0/2 
[CORE-XGigabitEthernet2/1/0/2] eth-trunk 10 
[CORE-XGigabitEthernet2/1/0/2] quit
[CORE] interface eth-trunk 20  //创建与AGG2相连的Eth-Trunk接口
[CORE-Eth-Trunk20] mode lacp
[CORE-Eth-Trunk20] quit 
[CORE] interface xgigabitethernet 1/1/0/2 
[CORE-XGigabitEthernet1/1/0/2] eth-trunk 20 
[CORE-XGigabitEthernet1/1/0/2] quit 
[CORE] interface xgigabitethernet 2/1/0/1 
[CORE-XGigabitEthernet2/1/0/1] eth-trunk 20 
[CORE-XGigabitEthernet2/1/0/1] quit

集群配置文件

# 
sysname CORE 
# 
interface Eth-Trunk10 
 mode lacp
# 
interface Eth-Trunk20 
 mode lacp
# 
interface XGigabitEthernet1/1/0/1 
 eth-trunk 10 
# 
interface XGigabitEthernet1/1/0/2 
 eth-trunk 20 
# 
interface XGigabitEthernet1/1/0/10 
 mad detect mode direct 
# 
interface XGigabitEthernet2/1/0/1 
 eth-trunk 20 
# 
interface XGigabitEthernet2/1/0/2 
 eth-trunk 10 
# 
interface XGigabitEthernet2/1/0/10 
 mad detect mode direct 
# 
return

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1606737.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

后端-MySQL-week11 多表查询

tips: distinct————紧跟“select”之后&#xff0c;用于去重 多表查询 概述 一对多&#xff08;多对一&#xff09; 多对多 一对一 多表查询概述 分类 连接查询 内连接 外连接 自连接 必须起别名&#xff01; 联合查询-union&#xff0c;union all 子查询 概念 分类 …

家庭营销广告Criteo公司首次获得MRC零售媒体测量认证

家庭营销广告Criteo公司首次获得零售媒体测量MRC认证 商业媒体公司Criteo2024年3月28日宣布&#xff0c;它首次获得媒体评级委员会&#xff08;MRC&#xff09;的认证&#xff0c;在其企业零售媒体平台commerce Max和commerce Yield上&#xff0c;在桌面、移动网络和移动应用内…

Goland远程连接Linux进行项目开发

文章目录 1、Linux上安装go的环境&#xff12;、配置远程连接3、其他配置入口 跑新项目&#xff0c;有个confluent-Kafka-go的依赖在Windows上编译不通过&#xff0c;报错信息&#xff1a; undefined reference to __imp__xxx似乎是这个依赖在Windows上不支持&#xff0c;选择让…

阿里云ECS迁移至AWS EC2,九河云详细教程

在客户在求更大的海外市场&#xff0c;综合考虑后决定选择AWS云&#xff0c;但对迁移方面不太了解&#xff0c;甚至比较担心如果到AWS云是否业务要从0开始&#xff1f;本文九河云将为您介绍如何将阿里云ECS平滑迁移至AWS。 工具介绍 AWS Application Migration Service &…

pytorch-手写数字识别之全连接层实现

目录 1. 背景2. nn.Linear线性层2. 实现MLP网络3. train4. 完整代码 1. 背景 上一篇https://blog.csdn.net/wyw0000/article/details/137622977?spm1001.2014.3001.5502中实现手撸代码的方式实现了手写数字识别&#xff0c;本文将使用pytorch的API实现。 2. nn.Linear线性层…

安卓xml存储读取和sharedpreferences文件存储读取

起因今天有人问到我 xml文件存储读取和sharedpreferences读写该咋做&#xff0c;能不能帮忙写个案例&#xff0c;这里我简单写出一个案例&#xff0c;一下是全部的代码 一、首先引入 权限 <uses-permission android:name"android.permission.WRITE_EXTERNAL_STORAGE&q…

vscode和pycharm等idea编写protobuf文件格式化

想在pycharm或者goland等idea中开发protobuf文件的话&#xff0c;可以安装一个插件&#xff1a;protocol-buffers 安装之后&#xff0c;proto文件就会支持高亮和格式化了。 如果是vscode想要编写proto文件&#xff0c;可以安装另外一个插件&#xff1a;vscode-proto3 安装后&a…

大华相机C#学习之IDevice类

获取方式 Enumerator.GetDeviceByGigeIP() 通过IP地址获取设备对象。 private void test_Click(object sender, EventArgs e) {devicesEnumerator.EnumerateDevices();device Enumerator.GetDeviceByGigeIP("192.168.0.11"); } 常用属性 DeviceInfo 获取设备的信…

Spring Boot 目前还是最先进的吗?

当谈到现代Java开发框架时&#xff0c;Spring Boot一直处于领先地位。它目前不仅是最先进的&#xff0c;而且在Java生态系统中拥有着巨大的影响力。 1. 什么是Spring Boot&#xff1f; Spring Boot是由Spring团队开发的开源框架&#xff0c;旨在简化基于Spring的应用程序的开…

预判验证:阿里申请的“国货甄选”商标被驳回!

在3个多月前去年12月20日的时候&#xff0c;普推知产老杨预判阿里申请的“国货甄选”会以绝对理由驳回&#xff0c;大概率不能通过初审下证&#xff0c;《阿里申请“国货甄选”商标&#xff0c;会通过不&#xff01;》&#xff0c;检索多个申请含有“国货”商标名称做了驳回复审…

算法练习第20天|回溯算法 77.组合问题 257. 二叉树的所有路径

1.什么是回溯算法&#xff1f; 回溯法也可以叫做回溯搜索法&#xff0c;它是一种搜索的方式。其本质是穷举&#xff0c;穷举所有可能&#xff0c;然后选出我们想要的答案。 2.为什么要有回溯算法? 那么既然回溯法并不高效为什么还要用它呢&#xff1f; 因为有的问题能暴力…

24位AD分辨率、256Ksps*16通道国产数据采集卡、uV级采集、支持IEPE

24位AD分辨率、256Ksps*16通道、uV级采集、USB数据传输、支持IEPE、C、LABVIEW、MATLAB、Python等多编程语言&#xff0c;提供例程&#xff0c;支持二次开发。 XM7016-以太网采集卡 XM7016是一款以太网型高速数据采集卡&#xff0c;具有16通道真差分输入&#xff0c;24位分辨率…

【SAP HANA 15】SQL锁表 (查询,解锁)

锁表查看 --锁表检查语句 SELECT C.CONNECTION_ID,PS.STATEMENT_STRINGFROM M_CONNECTIONS C JOIN M_PREPARED_STATEMENTS PSON C.CONNECTION_ID PS.CONNECTION_ID AND C.CURRENT_STATEMENT_ID PS.STATEMENT_IDWHERE C.CONNECTION_STATUS RUNNINGAND C.CONNECTION_TYPE Re…

Eureka基础介绍和使用

目录 一.理论基础 二.父项目 2.1 新建父项目 2.2 管理依赖 三.子项目 3.1 新建子项目 3.2 注册中心Server依赖和启动类和配置文件 3.3 生产者Client 依赖和启动类和配置文件 3.5 消费者Custmer依赖和配置类、启动类和配置文件 四.心跳 五.公共资源项目 5.1新建实体…

详细分析Mysql常用函数(附Demo)

目录 前言1. 聚合函数2. 字符串函数3. 日期函数4. 条件函数5. 数值函数6. 类型转换函数 前言 由于实战中经常运用&#xff0c;索性来一个总结文 创建一个名为 employees 的表&#xff0c;包含以下字段&#xff1a; employee_id&#xff1a;员工ID&#xff0c;整数类型 first…

张大哥笔记:0成本创业的小吃配方项目

作为一个在互联网行业沉浸了10年的创业老兵&#xff0c;我最深的体会就是&#xff1a;想要快速赚钱&#xff0c;就要去做与钱密切相关的项目&#xff0c;而最接近金钱的就是贩卖赚钱的机会。那么我们应该赚谁的钱呢&#xff1f;答案是赚那些想要赚钱的人的钱。 近日我刷到了一…

使用python-can和cantools实现arxml报文解析、发送和接收的完整指南

文章目录 背景一、硬件支持二、环境准备1、python解释器安装2、python库安装 三、 收发案例四、 方法拓展1、canoe硬件调用2、回调函数介绍 结论 背景 在汽车行业中&#xff0c;CAN (Controller Area Network) 总线是用于车辆内部通信的关键技术。arxml文件是一种用于描述CAN消…

【JAVA进阶篇教学】第三篇:JDK8中Stream API使用

博主打算从0-1讲解下java进阶篇教学&#xff0c;今天教学第三篇&#xff1a;JDK8中Stream API使用。 Java 8 中的 Stream API 提供了一种便捷、高效的方式来处理集合数据&#xff0c;它支持函数式编程风格的操作&#xff0c;包括过滤、映射、归约等。Stream API 可以大大简化集…

Docker容器逃逸-特权模式-危险挂载-Procfs

Docker容器逃逸-特权模式-危险挂载 Docker这个概念&#xff1a; Docker 容器与虚拟机类似&#xff0c;但二者在原理上不同&#xff0c;容器是将操作系统层虚拟化&#xff0c;虚拟机则是虚拟化硬件&#xff0c;因此容器更具有便携性、高效地利用服务器。 ‍ Docker会遇到的安…

C++学习————第七天(初始化列表、static,友元,内部类)

今天已经是C学习第七天&#xff0c;希望这篇文章能够给大家带来更多的帮助&#xff0c;相应文章都放在C学习专栏里面。 C学习————第五天&#xff08;构造函数 析构函数 拷贝构造函数&#xff09;-CSDN博客 C学习————第六天 &#xff08;运算符重载 const成员 取地址&…