华为数通---配置Smart Link负载分担案例

定义

Smart Link,又叫做备份链路。一个Smart Link由两个接口组成,其中一个接口作为另一个的备份。Smart Link常用于双上行组网,提供可靠高效的备份和快速的切换机制。 

目的

下游设备连接到上游设备,当使用单上行方式时,若出现单点故障,会造成业务中断。若采用双上行方式,将一台下游设备同时连接到两台上游设备,可降低单点故障对网络的影响,提高了可靠性。

组网需求

如下图所示,为了保证网络的可靠性,用户侧网络采用双上行方式组网。由于组网上存在多个VLAN的数据流量,为使链路得到充分利用,用户希望两条上行链路均进行数据流量的转发。组网要求业务中断时间控制在毫秒级。 

 

配置思路 

 采用如下的思路配置Smart Link功能:

  • 在SwitchA上进行配置,将需要进行负载分担的VLAN 500映射到实例10。
  • 在SwitchA上配置Smart Link组,将对应接口加入Smart Link组中。
  • 在SwitchA上配置负载分担功能,实例10映射的VLAN数据从备份链路进行转发。
  • 在SwitchA上使能回切功能,使得故障恢复后,流量切换到相对稳定的原主链路上。
  • 在SwitchA上使能发送Flush报文功能。
  • 在SwitchB、SwitchC和SwitchD三台设备对应接口上使能Flush报文接收功能。
  • 在SwitchA上使能Smart Link组功能。
操作步骤 

(1)配置VLAN信息

# 在SwitchA上创建VLAN,并配置接口允许相应VLAN通过。SwitchB、SwitchC和SwitchD的配置与SwitchA相似,详见配置文件。

<Huawei>system-view 
[Huawei]sysname SwitchA
[SwitchA]vlan batch 10 100 500
[SwitchA]interface GigabitEthernet 0/0/1
[SwitchA-GigabitEthernet0/0/1]port link-type trunk 
[SwitchA-GigabitEthernet0/0/1]port trunk allow-pass vlan 10 100 500
[SwitchA-GigabitEthernet0/0/1]quit
[SwitchA]interface GigabitEthernet 0/0/2
[SwitchA-GigabitEthernet0/0/2]port link-type trunk 
[SwitchA-GigabitEthernet0/0/2]port trunk allow-pass vlan 10 100 500
[SwitchA-GigabitEthernet0/0/2]quit

(2)在SwitchA上配置VLAN映射

[SwitchA]stp region-configuration 
[SwitchA-mst-region]instance 10 vlan 500
[SwitchA-mst-region]active region-configuration 
[SwitchA-mst-region]quit

(3)将去使能STP功能的上行接口加入Smart Link组并指定为主接口或从接口

# 配置SwitchA

[SwitchA]interface GigabitEthernet 0/0/1	
[SwitchA-GigabitEthernet0/0/1]stp disable 
[SwitchA-GigabitEthernet0/0/1]quit
[SwitchA]interface GigabitEthernet 0/0/2	
[SwitchA-GigabitEthernet0/0/2]stp disable 
[SwitchA-GigabitEthernet0/0/2]quit
[SwitchA]smart-link group 1
[SwitchA-smlk-group1]port GigabitEthernet 0/0/1 master
[SwitchA-smlk-group1]port GigabitEthernet 0/0/2 slave 

(4)在SwitchA上配置负载分担功能

[SwitchA-smlk-group1]load-balance instance 10 slave

(5)使能回切功能并设置回切时间

# 配置SwitchA。

[SwitchA-smlk-group1]restore enable 
[SwitchA-smlk-group1]timer wtr 30

(6)使能发送Flush报文功能

# 配置SwitchA,并指定发送Flush报文的密码为SHA加密方式。

[SwitchA-smlk-group1]flush send control-vlan 10 password simple huawei-123

(7)使能接收Flush报文功能

# 配置SwitchB,并指定接收Flush报文的密码为SHA加密方式。

[SwitchB]interface GigabitEthernet 0/0/1
[SwitchB-GigabitEthernet0/0/1]smart-link flush receive control-vlan 10 password 
simple huawei-123
[SwitchB-GigabitEthernet0/0/1]stp disable 
[SwitchB-GigabitEthernet0/0/1]quit
[SwitchB]interface GigabitEthernet 0/0/2
[SwitchB-GigabitEthernet0/0/2]smart-link flush receive control-vlan 10 password 
simple huawei-123
[SwitchB-GigabitEthernet0/0/2]stp disable 
[SwitchB-GigabitEthernet0/0/2]quit

 # 配置SwitchC,并指定接收Flush报文的密码为SHA加密方式。

[SwitchC]interface GigabitEthernet 0/0/1
[SwitchC-GigabitEthernet0/0/1]smart-link flush receive control-vlan 10 password 
simple huawei-123
[SwitchC-GigabitEthernet0/0/1]stp disable 
[SwitchC-GigabitEthernet0/0/1]quit
[SwitchC]interface GigabitEthernet 0/0/2
[SwitchC-GigabitEthernet0/0/2]smart-link flush receive control-vlan 10 password 
simple huawei-123	
[SwitchC-GigabitEthernet0/0/2]stp disable 
[SwitchC-GigabitEthernet0/0/2]quit

 # 配置SwitchD,并指定接收Flush报文的密码为SHA加密方式。

[SwitchD]interface GigabitEthernet 0/0/1
[SwitchD-GigabitEthernet0/0/1]smart-link flush receive control-vlan 10 password 
simple huawei-123
[SwitchD-GigabitEthernet0/0/1]stp disable 
[SwitchD-GigabitEthernet0/0/1]quit
[SwitchD]interface GigabitEthernet 0/0/2
[SwitchD-GigabitEthernet0/0/2]smart-link flush receive control-vlan 10 password 
simple huawei-123
[SwitchD-GigabitEthernet0/0/2]stp disable 
[SwitchD-GigabitEthernet0/0/2]quit

(8)在SwitchA使能Smart Link组功能

[SwitchA-smlk-group1]smart-link enable
[SwitchA-smlk-group1]quit

(9)验证配置结果

# 使用display smart-link group命令查看SwitchA上的Smart Link组信息。如果显示如下信息,则表示配置成功。

  • Smart Link组功能已经使能
  • 回切时间为30秒
  • 控制VLAN编号为10
  • 接口GE0/0/1为主接口且处于Active状态,接口GE0/0/2为从接口且处于Inactive,并且配置了负载分担功能。
[SwitchA]display smart-link group 1
Smart Link group 1 information :
  Smart Link group was enabled
  Wtr-time is: 30 sec.
  Load-Balance Instance: 10 
  There is no protected-vlan reference-instance
  DeviceID: 4c1f-cc8e-66bb  Control-vlan ID: 10
  Member                  Role   State    Flush Count Last-Flush-Time
  ----------------------------------------------------------------------

  GigabitEthernet0/0/1    Master Active   1           2023/12/07 15:57:28 UTC-08
:00 
  GigabitEthernet0/0/2    Slave  Inactive 0           0000/00/00 00:00:00 UTC+00
:00 

 # 使用shutdown命令关闭接口GE0/0/1,可以看到接口GE0/0/1已经处于Inactive状态,接口GE0/0/2为Active状态。

[SwitchA]interface GigabitEthernet 0/0/1
[SwitchA-GigabitEthernet0/0/1]shutdown
[SwitchA-GigabitEthernet0/0/1]display smart-link group 1
Smart Link group 1 information :
  Smart Link group was enabled
  Wtr-time is: 30 sec.
  Load-Balance Instance: 10 
  There is no protected-vlan reference-instance
  DeviceID: 4c1f-cc8e-66bb  Control-vlan ID: 10
  Member                  Role   State    Flush Count Last-Flush-Time
  ----------------------------------------------------------------------

  GigabitEthernet0/0/1    Master Inactive 1           2023/12/07 15:57:28 UTC-08
:00 
  GigabitEthernet0/0/2    Slave  Active   0           0000/00/00 00:00:00 UTC+00
:00 

 # 使用undo shutdown命令开启接口GE0/0/1。

[SwitchA-GigabitEthernet0/0/1]undo shutdown

 # 等待30秒后,可以看到接口GE0/0/1处于Active状态,接口GE0/0/2为Inactive状态。

[SwitchA-GigabitEthernet0/0/1]display smart-link group 1
Smart Link group 1 information :
  Smart Link group was enabled
  Wtr-time is: 30 sec.
  Load-Balance Instance: 10 
  There is no protected-vlan reference-instance
  DeviceID: 4c1f-cc8e-66bb  Control-vlan ID: 10
  Member                  Role   State    Flush Count Last-Flush-Time
  ----------------------------------------------------------------------

  GigabitEthernet0/0/1    Master Active   2           2023/12/07 16:03:41 UTC-08
:00 
  GigabitEthernet0/0/2    Slave  Inactive 0           0000/00/00 00:00:00 UTC+00
:00 

 # 假设PC1所属的VLAN为VLAN100,PC2所属的VLAN为VLAN500,PC1和PC2都能访问Internet。

配置文件 
  • SwitchA的配置文件

#
sysname SwitchA
#
vlan batch 10 100 500
#
stp region-configuration
 instance 10 vlan 500
 active region-configuration
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 10 100 500
 stp disable
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 10 100 500
 stp disable
#
smart-link group 1
 load-balance instance 10 slave
 restore enable
 smart-link enable
 port GigabitEthernet0/0/1 master
 port GigabitEthernet0/0/2 slave
 timer wtr 30
 flush send control-vlan 10 password simple huawei-123
#
return
  • SwitchB的配置文件

#
sysname SwitchB
#
vlan batch 10 100 500
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 10 100 500
 stp disable
 smart-link flush receive control-vlan 10 password simple huawei-123
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 10 100 500
 stp disable
 smart-link flush receive control-vlan 10 password simple huawei-123
return
  • SwitchC的配置文件

#
sysname SwitchC
#
vlan batch 10 100 500
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 10 100 500
 stp disable
 smart-link flush receive control-vlan 10 password simple huawei-123
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 10 100 500
 stp disable
 smart-link flush receive control-vlan 10 password simple huawei-123
#
return
  • SwitchD的配置文件

#
sysname SwitchD
#
vlan batch 10 100 500
#
interface GigabitEthernet0/0/1
 port link-type trunk
 port trunk allow-pass vlan 10 100 500
 stp disable
 smart-link flush receive control-vlan 10 password simple huawei-123
#
interface GigabitEthernet0/0/2
 port link-type trunk
 port trunk allow-pass vlan 10 100 500
 stp disable
 smart-link flush receive control-vlan 10 password simple huawei-123
#
return

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

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

算能 MilkV Duo开发板实战——opencv-mobile (迷你版opencv库)的移植和应用

前言 OpenCV是一种开源的计算机视觉和机器学习软件库&#xff0c;旨在提供一组通用的计算机视觉工具。它用于图像处理、目标识别、人脸识别、机器学习等领域&#xff0c;广泛应用于计算机视觉任务。 OpenCV-Mobile是OpenCV库的轻量版本&#xff0c;专为移动平台&#xff08;A…

服务器感染了.DevicData-D-XXXXXXXX勒索病毒,如何确保数据文件完整恢复?

引言&#xff1a; 勒索病毒成为网络安全的严峻挑战&#xff0c;而最新的.DevicData-D-XXXXXXXX勒索病毒更是引起广泛关注。本文将深入介绍.DevicData-D-XXXXXXXX勒索病毒的特征&#xff0c;提供恢复被其加密的数据文件的方法&#xff0c;并分享预防措施&#xff0c;以确保您的数…

单细胞seurat-细胞比例分析-画图详细教程

大家好&#xff0c;今天我们来画单细胞中最简单的细胞比例图~ 1.老规矩&#xff0c;先加载pbmc数据 dir.create("~/gzh/细胞比例") setwd("~/gzh/细胞比例")subset_datareadRDS("~/gzh/pbmc3k_final.rds") table(stringr::str_split(string c…

Bounding boxes augmentation for object detection

Different annotations formats Bounding boxes are rectangles that mark objects on an image. There are multiple formats of bounding boxes annotations. Each format uses its specific representation of bouning boxes coordinates 每种格式都使用其特定的边界框坐标…

TCP聊天

一、项目创建 二、代码 Client类 package tcp; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.Socket; import java.util.Scanner; public class Client { public sta…

Elasticsearch- 环境-Windows集群部署和环境-Linux单节点部署和Linux集群部署-03

Elasticsearch环境 环境-简介 单机 & 集群 单台 Elasticsearch 服务器提供服务&#xff0c;往往都有最大的负载能力&#xff0c;超过这个阈值&#xff0c;服务器性能就会大大降低甚至不可用&#xff0c;所以生产环境中&#xff0c;一般都是运行在指定服务器集群中。除了…

STM32 cubeMX 呼吸灯实验

文章代码使用 HAL 库。 文章目录 一、1.PWM原理二、LED 原理图三、使用cubemx 配置 led四、PWM 相关函数五、PWM占空比占空比计算六、PWM 呼吸灯重要代码总结 呼吸灯 一、1.PWM原理 PWM全称为脉冲宽度调制&#xff08;Pulse Width Modulation&#xff09;&#xff0c;是一种常…

软著项目推荐 深度学习验证码识别 - 机器视觉 python opencv

文章目录 0 前言1 项目简介2 验证码识别步骤2.1 灰度处理&二值化2.2 去除边框2.3 图像降噪2.4 字符切割2.5 识别 3 基于tensorflow的验证码识别3.1 数据集3.2 基于tf的神经网络训练代码 4 最后 0 前言 &#x1f525; 优质竞赛项目系列&#xff0c;今天要分享的是 &#x…

php循环遍历删除文件下文件和目录

前言 今天在写一个demo的时候需要循环删除目录下文件。如下想删temp下文件和目录。 具体实现 private function deleteDir($dirPath){if (is_dir($dirPath)) {$contents scandir($dirPath);// 如果是空目录if (count($contents) 2) {rmdir($dirPath);return;}// 不是空目录f…

windows MYSQL下载和自定路径安装,以及解决中文乱码问题。

文章讲的很详细&#xff0c;请耐心往下看。 一、mysql下载 下载网址&#xff1a;https://www.mysql.com/downloads/ 表示不登录&#xff0c;直接下载。 以上就把安装包下载完了。下载是8.0.35版本。 二、接下来看怎么安装 1.双击安装包&#xff0c;进行安装。 注意&#x…

【论文阅读笔记】M3Care: Learning with Missing Modalities in Multimodal Healthcare Data

本文介绍了一种名为“MCare”的模型&#xff0c;旨在处理多模态医疗保健数据中的缺失模态问题。这个模型是端到端的&#xff0c;能够补偿病人缺失模态的信息&#xff0c;以执行临床分析。MCare不是生成原始缺失数据&#xff0c;而是在潜在空间中估计缺失模态的任务相关信息&…

【web安全】文件包含漏洞详细整理

前言 菜某的笔记总结&#xff0c;如有错误请指正。 本文用的是PHP语言作为案例 文件包含漏洞的概念 开发者使用include&#xff08;&#xff09;等函数&#xff0c;可以把别的文件中的代码引入当前文件中执行&#xff0c;而又没有对用户输入的内容进行充分的过滤&#xff0…

算法通关村第十八关-青铜挑战回溯是怎么回事

大家好我是苏麟 , 今天聊聊回溯是怎么个事 . 回溯是最重要的算法思想之一&#xff0c;主要解决一些暴力枚举也搞不定的问题&#xff0c;例如组合、分割、子集、排列&#xff0c;棋盘等。从性能角度来看回溯算法的效率并不高&#xff0c;但对于这些暴力都搞不定的算法能出结果就…

区分node,npm,nvm

目录 一&#xff0c;nodejs二&#xff0c;npm三&#xff0c;nvm 区分node&#xff0c;npm&#xff0c;nvm 几年前学习前端的时候学习的就是htmlcssjs 三件套。 现在只学习这些已经不能满足需要了。 一&#xff0c;nodejs nodejs是编程语言javascript运行时环境。&#xff08;比…

【复杂gRPC之Java调用go】

1 注意点 一般上来说如果java调用java的话&#xff0c;我们可以使用springcloud来做&#xff0c;而面对这种跨语言的情况下&#xff0c;gRPC就展现出了他的优势。 代码放在这了&#xff0c;请结合前面的go服务器端一起使用 https://gitee.com/guo-zonghao/java-client-grpc /…

阿里云实时数据仓库HologresFlink

1. 实时数仓Hologres特点 专注实时场景&#xff1a;数据实时写入、实时更新&#xff0c;写入即可见&#xff0c;与Flink原生集成&#xff0c;支持高吞吐、低延时、有模型的实时数仓开发&#xff0c;满足业务洞察实时性需求。亚秒级交互式分析&#xff1a;支持海量数据亚秒级交…

量子算力引领未来!玻色量子出席第二届CCF量子计算大会

​8月19日至20日&#xff0c;中国计算机学会&#xff08;CCF&#xff09;主办的第二届CCF量子计算大会暨中国量子计算峰会&#xff08;CQCC 2023&#xff09;在中国合肥成功举办。本届大会以“量超融合&#xff0c;大国算力”为主题&#xff0c;设有量子计算软件、硬件、应用生…

机器学习应用 | 使用 MATLAB 进行异常检测(上)

异常检测任务&#xff0c;指的是检测偏离期望行为的事件或模式&#xff0c;可以是简单地检测数值型数据中&#xff0c;是否存在远超出正常取值范围的离群值&#xff0c;也可以是借助相对复杂的机器学习算法识别数据中隐藏的异常模式。 在不同行业中&#xff0c;异常检测的典型…

智能优化算法应用:基于材料生成算法无线传感器网络(WSN)覆盖优化 - 附代码

智能优化算法应用&#xff1a;基于材料生成算法无线传感器网络(WSN)覆盖优化 - 附代码 文章目录 智能优化算法应用&#xff1a;基于材料生成算法无线传感器网络(WSN)覆盖优化 - 附代码1.无线传感网络节点模型2.覆盖数学模型及分析3.材料生成算法4.实验参数设定5.算法结果6.参考…

Tomcat头上有个叉叉

问题原因&#xff1a; 这是因为它就是个空的tomcat,并没有导入项目运行 解决方案&#xff1a; war模式&#xff1a;发布模式&#xff0c;正式发布时用&#xff0c;将WEB工程以war包的形式上传到服务器 war exploded模式&#xff1a;开发时用&#xff0c;将WEB工程的文件夹直接…