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

全网超详细数据中心高可靠技术M-LAG接入OSPF网络实验介绍(V-STP)

1.实验拓扑

2.基本配置
a.接入配置

S1: # vlan batch 10 20 # interface GE1/0/1 port link-type access port default vlan 10 # interface GE1/0/2 port link-type access port default vlan 20 # interface GE1/0/3 port link-type trunk port trunk allow-pass vlan 10 20 # CE3: # bridge-domain 1000 vxlan vni 5010 # bridge-domain 2000 vxlan vni 5020 # interface GE1/0/1.10 mode l2 encapsulation dot1q vid 10 bridge-domain 1000 # interface GE1/0/1.20 mode l2 encapsulation dot1q vid 20 bridge-domain 2000 #
b.M-LA的底层OSPF配置
CE1: # interface GE1/0/5 undo portswitch ip address 10.1.14.1 255.255.255.0 # interface LoopBack0 ip address 1.1.1.1 255.255.255.255 # interface LoopBack1 ip address 11.1.1.1 255.255.255.255 # ospf 1 router-id 1.1.1.1 area 0.0.0.0 network 1.1.1.1 0.0.0.0 network 10.1.14.0 0.0.0.255 network 11.1.1.1 0.0.0.0 # CE2: # interface GE1/0/5 undo portswitch ip address 10.1.24.2 255.255.255.0 # interface LoopBack0 ip address 2.2.2.2 255.255.255.255 # interface LoopBack1 ip address 11.2.2.2 255.255.255.255 # ospf 1 router-id 2.2.2.2 area 0.0.0.0 network 2.2.2.2 0.0.0.0 network 10.1.24.2 0.0.0.0 network 11.2.2.2 0.0.0.0 # CE4: # interface GE1/0/1 undo portswitch ip address 10.1.14.4 255.255.255.0 # interface GE1/0/2 undo portswitch ip address 10.1.24.4 255.255.255.0 # interface LoopBack0 ip address 4.4.4.4 255.255.255.255 # ospf 1 router-id 4.4.4.4 area 0.0.0.0 network 4.4.4.4 0.0.0.0 network 10.1.14.0 0.0.0.255 network 10.1.24.0 0.0.0.255 #
c.M-LAG的DFS-Group建立(同时建立DAD链路)
CE1: # dfs-group 1 dual-active detection source ip 11.1.1.1 peer 11.2.2.2 priority 150 # CE2: # dfs-group 1 dual-active detection source ip 11.2.2.2 peer 11.1.1.1 #
d.M-LAG的peer-link配置
CE1: # interface Eth-Trunk1 mode lacp-static trunkport GE 1/0/3 to 1/0/4 peer-link 1 # CE2: # interface Eth-Trunk1 mode lacp-static trunkport GE 1/0/3 to 1/0/4 peer-link 1 #
e.配置M-LAG的V-STP
CE1; # stp mode rstp stp bridge-address 0000-5e00-0001 stp v-stp enable CE2; # stp mode rstp stp bridge-address 0000-5e00-0001 stp v-stp enable
f.配置M-LAG的成员接口
CE1: # interface Eth-Trunk10 port link-type trunk port trunk allow-pass vlan 10 20 mode lacp-static lacp system-id 0000-0000-0001 lacp priority 0 dfs-group 1 m-lag 12 # CE2: # interface Eth-Trunk10 port link-type trunk port trunk allow-pass vlan 10 20 mode lacp-static lacp system-id 0000-0000-0001 lacp priority 0 dfs-group 1 m-lag 12 # CE3: # interface Eth-Trunk10 port link-type trunk port trunk allow-pass vlan 10 20 mode lacp-static #
g.配置双活网关
CE1: # interface Vlanif10 ip address 192.168.1.254 255.255.255.0 mac-address 0000-5e00-0010 # interface Vlanif20 ip address 192.168.2.254 255.255.255.0 mac-address 0000-5e00-0020 # CE2: # interface Vlanif10 ip address 192.168.1.254 255.255.255.0 mac-address 0000-5e00-0010 # interface Vlanif20 ip address 192.168.2.254 255.255.255.0 mac-address 0000-5e00-0020 #
3.结果验证
a.OSPF邻居建立

b.检查M-LAG的peer-link是否建立

c.查看V-STP的情况:

d.查看M-LAG的成员接口建立情况

e.查看故障场景是否ping通(此处仅举例:成员链路断了)

正常情况:

断了后:

http://www.jsqmd.com/news/450216/

相关文章:

  • 解锁文献综述新境界:书匠策AI,你的学术写作超级助手
  • 第三篇:Excel公式函数技巧|告别手动计算,精准不出错
  • 沉金PCB是什么?高端电路板为何首选它
  • 微收付受邀亮相第十届广东国际水处理设备展览会数字化方案赋能水处理行业实体升级
  • python+AI基于ai技术智能导诊的人脸识别医院挂号预约管理系统
  • OpenClaw配对失败原因及解决
  • 数据结构 栈
  • Comsol模拟黑磷各向异性吸收
  • Transformer进阶技术全景解析系列(第二篇:百万级长上下文——突破序列长度的“魔法”)
  • 部署Redis集群
  • 如何将OpenClaw部署到本地并配置企业微信?
  • Flutter 三方库 layerx_generator 的鸿蒙化适配指南 - 掌控代码模型资产、精密架构治理实战、鸿蒙级生成专家
  • Temu跨境电商怎么做:2026年3月从0到1实操指南
  • 收藏 | AI新手/程序员必看:轻松入门大模型与AI Agents,开启智能新篇章!
  • 《深度拆解:高通 Fastboot 刷机脚本及核心分区功能详解》
  • 基于Java springboot高校门诊管理系统挂号药品出入库(源码+文档+运行视频+讲解视频)
  • 2026金三银四转行网络安全,应该选哪个方向?
  • 交错并联Boost PFC仿真电路模型,控制方法采用输出电压外环,电感电流内环的双闭环PI控制...
  • LeetCode 1888 使二进制字符串交替的最少翻转次数
  • Seata 系列-1:基础概念
  • 论文写作新神器:书匠策AI,文献综述的“智慧魔法师”
  • Transformer进阶技术全景解析系列(第一篇:高效注意力机制——让Transformer“轻装上阵”)
  • 生物钟编码:基因定制开发效率表
  • 基于Java Swing + MySQL的学生住宿管理系统的设计与实现
  • 基于Java springboot高校洗浴预约管理系统(源码+文档+运行视频+讲解视频)
  • electron 安装教程
  • 基于Java springboot高校科研信息管理系统(源码+文档+运行视频+讲解视频)
  • 啪嗒一声按下空格键,Simulink模型开始跑起来了。显示器上跳动的波形让我突然想起刚接触下垂控制时被交叉耦合支配的恐惧——直到发现解耦控制这剂良药
  • 性能优化在测试资源节约中的价值实现
  • 电动汽车备用能力的市场机制分析与策略优化:实例探讨充电合约、电价响应及市场设计的影响