华为数通---配置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 enabledWtr-time is: 30 sec.Load-Balance Instance: 10 There is no protected-vlan reference-instanceDeviceID: 4c1f-cc8e-66bb  Control-vlan ID: 10Member                  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 enabledWtr-time is: 30 sec.Load-Balance Instance: 10 There is no protected-vlan reference-instanceDeviceID: 4c1f-cc8e-66bb  Control-vlan ID: 10Member                  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 enabledWtr-time is: 30 sec.Load-Balance Instance: 10 There is no protected-vlan reference-instanceDeviceID: 4c1f-cc8e-66bb  Control-vlan ID: 10Member                  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-configurationinstance 10 vlan 500active region-configuration
#
interface GigabitEthernet0/0/1port link-type trunkport trunk allow-pass vlan 10 100 500stp disable
#
interface GigabitEthernet0/0/2port link-type trunkport trunk allow-pass vlan 10 100 500stp disable
#
smart-link group 1load-balance instance 10 slaverestore enablesmart-link enableport GigabitEthernet0/0/1 masterport GigabitEthernet0/0/2 slavetimer wtr 30flush send control-vlan 10 password simple huawei-123
#
return
  • SwitchB的配置文件

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

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

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

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

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

相关文章

KUKA机器人如何自定义数值型变量?

KUKA机器人如何自定义数值型变量? 在KUKA机器人系统中如何自定义数值型变量来实现工件计数、计时等功能? 具体方法可参考以下内容: 如下图所示,找到SYSTEM—CONFIG.DAT文件,进入(需要管理员权限), 如下图所示,在第10行自定义一个int型的变量a, 如下图所示,自定义完成…

Ribbon组件的负载均衡原理

原因背景 spring cloud的底层负载均衡是采用Ribbon组件&#xff0c;我们将user-service服务注册到eureka-server中&#xff0c;那么当我们在另一个服务的代码层面请求远程调用API接口http://user-service/users/5时&#xff0c;程序代码如何解析远程调用的user-service服务名转…

springboot集成cxf

<?xml version"1.0" encoding"UTF-8"?> <project xmlns"http://maven.apache.org/POM/4.0.0"xmlns:xsi"http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation"http://maven.apache.org/POM/4.0.0 http://ma…

Dockerfile介绍

1. DockerFile介绍 dockerfile是用来构建docker镜像的文件&#xff01;命令参数脚本&#xff01; 构建步骤&#xff1a; 1、编写一个dockerfile文件 2、docker build 构建成为一个镜像 3、docker run运行镜像 4、docker push发布镜像&#xff08;DockerHub、阿里云镜像仓库…

Django模板,Django中间件,ORM操作(pymysql + SQL语句),连接池,session和cookie, 缓存

day04 django进阶-知识点 今日概要&#xff1a; 模板中间件ORM操作&#xff08;pymysql SQL语句&#xff09;session和cookie缓存&#xff08;很多种方式&#xff09; 内容回顾 请求周期 路由系统 最基本路由关系动态路由&#xff08;含正则&#xff09;路由分发不同的app中…

《论文阅读》用于情绪回复生成的情绪正则化条件变分自动编码器 Affective Computing 2021

《论文阅读》用于情绪回复生成的情绪正则化条件变分自动编码器 前言简介模型结构实验结果总结前言 今天为大家带来的是《Emotion-Regularized Conditional Variational Autoencoder for Emotional Response Generation》 出版:IEEE Transactions on Affective Computing 时间…

ZKP Understanding Nova (2) Relaxed R1CS

Understanding Nova Kothapalli, Abhiram, Srinath Setty, and Ioanna Tzialla. “Nova: Recursive zero-knowledge arguments from folding schemes.” Annual International Cryptology Conference. Cham: Springer Nature Switzerland, 2022. Nova: Paper Code 2. Unders…

安装TensorFlow2.12.0

文章目录 一、安装Anaconda步骤 1: 下载Anaconda步骤 2: 运行安装程序步骤 3: 选择安装路径步骤 4: 完成安装步骤 5: 启动Anaconda Navigator步骤 6: 创建和管理环境二、安装TensorFlow​(一)Anaconda修改国内镜像源(二)安装CPU版TensorFlow2.12.0(三)查看TensorFlow版本…

openGauss学习笔记-147 openGauss 数据库运维-备份与恢复-逻辑备份与恢复之gs_dump

文章目录 openGauss学习笔记-147 openGauss 数据库运维-备份与恢复-逻辑备份与恢复之gs_dump147.1 背景信息147.2 注意事项147.3 语法147.4 参数说明147.4.1 通用参数&#xff1a;147.4.2 转储参数&#xff1a;147.4.3 连接参数&#xff1a; 147.5 说明147.6 示例 openGauss学习…

HTTP、HTTPS、SSL协议以及报文讲解

目录 HTTP/HTTPS介绍 HTTP/HTTPS基本信息 HTTP请求与应答报文 HTTP请求报文 HTTP响应报文 SSL协议 SSL单向认证 SSL双向认证 HTTP连接建立与传输步骤 HTTP访问全过程相关报文&#xff08;以访问www.download.cucdccom为例子&#xff09; DNS报文解析 TCP三次握手连…

【Flink系列六】Flink里面的状态一致性

状态一致性 有状态的流处理&#xff0c;内部每个算子任务都可以有自己的状态&#xff0c;对于流处理器内部来说&#xff0c;所谓的状态一致性&#xff0c;其实就是我们所说的计算结果要保证准确。一条数据不应该丢失&#xff0c;也不应该重复计算。再遇到有故障时可以恢复状态…

RabbitMQ 常见面试题

目录 1.前置知识1.1.什么是 MQ&#xff1f;它有什么作用&#xff1f;1.2.什么是消费者生产者模型&#xff1f;1.3.AMQP 是什么&#xff1f; 2.RabbitMQ 入门2.1.什么是 RabbitMQ&#xff1f;有什么特点&#xff1f;2.2.RabbitMQ 的核心概念有哪些&#xff1f;2.2.1.生产者 (Pro…

css 元素前后添加图标(::before 和 ::after 的妙用)

<template><div class"container"><div class"label">猜你喜欢</div></div> </template><style lang"scss" scoped> .label {display: flex;&::before,&::after {content: "";widt…

《实战:如何使用Vue2.0开发一个npm组件库》- 6、Vue2.x 组件 webpack3 升 webpack5

升级 package.json 删除冗余依赖 "extract-text-webpack-plugin": "^3.0.2","vue-loader": "^13.0.5", "vue-template-compiler": "^2.4.4", "webpack": "^3.6.0", "webpack-dev-serv…

LLM之RAG实战(二):使用LlamaIndex + Metaphor实现知识工作自动化

最先进的大型语言模型&#xff08;LLM&#xff09;&#xff0c;如ChatGPT、GPT-4、Claude 2&#xff0c;具有令人难以置信的推理能力&#xff0c;可以解锁各种用例——从洞察力提取到问答&#xff0c;再到通用工作流自动化。然而&#xff0c;他们检索上下文相关信息的能力有限。…

[论文阅读]BEVFusion

BEVFusion BEVFusion: A Simple and Robust LiDAR-Camera Fusion Framework BEVFusion&#xff1a;简单而强大的激光雷达相机融合框架 论文网址&#xff1a;BEVFusion 论文代码&#xff1a;BEVFusion 简读论文 论文背景&#xff1a;激光雷达和摄像头是自动驾驶系统中常用的两…

UE Http笔记

c参考链接 UE4 开发如何使用 Http 请求_wx61ae2f5191643的技术博客_51CTO博客 虚幻引擎:UEC如何对JSON文件进行读写?-CSDN博客 UE4 HTTP使用 官方免费插件 VaRest 在代码插件创建的VaRest - 虚幻引擎商城 UE5在蓝图中使用Varest插件Get&#xff0c;Post两种常见请求方式…

webpack学习-3.管理输出

webpack学习-3.管理输出 1.简单练手2.设置 HtmlWebpackPlugin3.清理 /dist 文件夹4.manifest5.总结 1.简单练手 官网的第一个预先准备&#xff0c;是多入口的。 const path require(path);module.exports {entry: {index: ./src/index.js,print: ./src/print.js,},output: …

axios调接口传参特殊字符丢失的问题(encodeURI 和 encodeURIComponent)

1、axios调接口特殊字符丢失的问题 项目开发过程中遇到一个接口传参&#xff0c;参数带特殊字符&#xff0c;axios调接口特殊字符丢失的问题 例如接口&#xff1a; get/user/detail/{name} name是个参数直接调接口的时候拼到接口上&#xff0c;get/user/detail/test123#$%&am…

计算机网络中的通信子网:架构、协议与技术简介

在计算机网络中&#xff0c;通信子网是负责实现主机之间以及主机与终端之间数据传输的核心部分。它由一系列硬件设备和通信协议组成&#xff0c;为上层应用提供可靠、高效和透明的数据传输服务。本文将详细介绍通信子网的架构、协议与技术。 一、通信子网的架构 星型拓扑 星…