当前位置: 首页 > ai >正文

Smart Link+Monitor Link组网

1.技术背景及原理

一般情况下,Smart Link只能感知与其接口直连的链路故障。将Monitor Link配置在Smart Link的上游设备上,可使Smart Link迅速感知上游链路故障,进行链路切换。Smart Link与Monitor Link配合使用,扩大了Smart Link的应用场景范围,使组网构建更为灵活。

2.实验拓扑

3.基础配置

[SW1]dis cu
#
sysname SW1
#
vlan batch 10 20 100
#
interface GigabitEthernet0/0/1port link-type trunkport trunk allow-pass vlan 10 20 100
#
interface GigabitEthernet0/0/2port link-type trunkport trunk allow-pass vlan 10 20 100
#
interface GigabitEthernet0/0/3port link-type accessport default vlan 10
#
interface GigabitEthernet0/0/4port link-type accessport default vlan 20
#
[SW2]dis cu
#
sysname SW2
#
vlan batch 10 20 100
#
interface GigabitEthernet0/0/1port link-type trunkport trunk allow-pass vlan 10 20 100stp disablesmart-link flush receive control-vlan 100 password simple huawei@123
#
interface GigabitEthernet0/0/2port link-type trunkport trunk allow-pass vlan 10 20 100stp disablesmart-link flush receive control-vlan 100 password simple huawei@123
#
monitor-link group 1port GigabitEthernet0/0/1 uplinkport GigabitEthernet0/0/2 downlink 1
#
[SW3]dis cu
#
sysname SW3
#
vlan batch 10 20 100
#
interface GigabitEthernet0/0/1port link-type trunkport trunk allow-pass vlan 10 20 100stp disablesmart-link flush receive control-vlan 100 password simple huawei@123
#
interface GigabitEthernet0/0/2port link-type trunkport trunk allow-pass vlan 10 20 100stp disablesmart-link flush receive control-vlan 100 password simple huawei@123
#
monitor-link group 1port GigabitEthernet0/0/2 uplinkport GigabitEthernet0/0/1 downlink 1
#
[SW4]dis cu
#
sysname SW4
#
vlan batch 10 20 100
#
stp region-configurationinstance 20 vlan 20active region-configuration
#
interface GigabitEthernet0/0/1port link-type trunkport trunk allow-pass vlan 10 20 100stp disable
#
interface GigabitEthernet0/0/2port link-type trunkport trunk allow-pass vlan 10 20 100stp disable
#
interface GigabitEthernet0/0/3port link-type accessport default vlan 10
#
interface GigabitEthernet0/0/4port link-type accessport default vlan 20
#
smart-link group 1load-balance instance 20 slaverestore enablesmart-link enableport GigabitEthernet0/0/1 masterport GigabitEthernet0/0/2 slavetimer wtr 30flush send control-vlan 100 password simple huawei@123
#

4.重点配置

[SW3]monitor-link  group  1 
[SW3-mtlk-group1]port GigabitEthernet 0/0/2 uplink 
[SW3-mtlk-group1]port GigabitEthernet 0/0/1 downlink  
[SW3]int GigabitEthernet 0/0/1  
[SW3-GigabitEthernet0/0/1]smart-link flush receive  control-vlan 100 password  simple huawei@123
[SW3]int GigabitEthernet 0/0/2 
[SW3-GigabitEthernet0/0/2]smart-link flush receive  control-vlan 100 password  simple huawei@123

[SW2]monitor-link  group  1 
[SW2-mtlk-group1]port GigabitEthernet 0/0/1 uplink 
[SW2-mtlk-group1]port GigabitEthernet 0/0/2 downlink  
[SW2]int GigabitEthernet 0/0/1  
[SW2-GigabitEthernet0/0/1]smart-link flush receive  control-vlan 100 password  simple huawei@123
[SW2]int GigabitEthernet 0/0/2 
[SW2-GigabitEthernet0/0/2]smart-link flush receive  control-vlan 100 password  simple huawei@123

[SW4-mst-region]di th
#
stp region-configuration
 instance 20 vlan 20
 active region-configuration
#
[SW4-smlk-group1]di th
#
smart-link group 1
 load-balance instance 20 slave
 restore enable
 smart-link enable
 port GigabitEthernet0/0/1 master
 port GigabitEthernet0/0/2 slave
 timer wtr 30
 flush send control-vlan 100 password simple huawei@123
#

5.实验现象

负载分担已经实现

将SW2的上行链路shutdown

[SW2]int g0/0/1
[SW2-GigabitEthernet0/0/1]shutdown 

再看SW3的G0/0/1抓包情况,流量走备份链路

http://www.xdnf.cn/news/3072.html

相关文章:

  • 【solidity基础】一文说清楚合约函数的大小事
  • HFI笔记
  • 数据库与大数据技术教程资料
  • 麒麟(Kylin)系统下安装MySQL 8.4.5(离线版)
  • 09 Python字典揭秘:数据的高效存储
  • 基于Docker的内网穿透实战:frp 0.68 + Nginx最佳实践
  • SQL Server数据库提权的几种方法——提权教程
  • Spring Data JPA 提供的功能在性能方面有哪些需要注意的地方?
  • 完美解决 mobile-ffmpeg Not overwriting - exiting
  • Ubuntu ZLMediakit的标准配置文件(rtsp->rtmp->hls)
  • 用于实时辐射场渲染的3D高斯溅射——3D Gaussian Splatting for Real-Time Radiance Field Rendering
  • 2025华东杯B题华东杯数学建模思路代码成品讲解工序安排问题
  • 芯片软错误概率探究:基于汽车芯片安全设计视角
  • 机器学习,深度学习
  • 直播美颜SDK是什么?跨平台美颜SDK开发与接入全解析
  • iOS HTTPS 抓包踩坑记:几种方案尝试与替代工具记录
  • 硬件工程师面试常见问题(10)
  • Tailwind CSS实战技巧:从核心类到高效开发
  • Kafka的Topic分区数如何合理设置?
  • 基于LangChain构建最小智能体(Agent)实现指南
  • nvm for windows 安装低版本 node 丢失 npm 安装
  • 智驾赛道的诺曼底登陆,Momenta上海车展雄起
  • [4301]新版码点餐外卖配送餐饮小程序系统
  • 碳化硅(SiC)MOSFET桥式电路应用中米勒钳位功能的重要性
  • 卫星变轨轨迹和推力模拟(单一引力源)MATLAB
  • python实战项目67:空气质量在线检测平台js逆向
  • CCM/TCM在STM32中的含义和用途
  • Arduino程序结构详解与嵌入式开发对比指南
  • 电容的作用
  • Java学习手册:Spring MVC 架构与实现