ENSP Pro VXLAN EVPN分布式网关部署配置

2023-12-08 06:20

本文主要是介绍ENSP Pro VXLAN EVPN分布式网关部署配置,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

分布式网关

在BGP EVPN方式部署分布式网关的场景中,控制平面的流程包括VXLAN隧道建立、MAC地址动态学习;转发平面的流程包括同子网已知单播报文转发、同子网BUM报文转发、跨子网报文转发。该方式实现的功能全面,支持主机IP路由通告、主机MAC地址通告、主机ARP通告,可以直接使能ARP广播抑制功能。如果在VXLAN网络中采用分布式网关,推荐使用此方式。

对比集中式网关,分布式网关的arp条目比集中式网关的arp条目少,分布式网关只学习租户侧的arp条目,不学习网络侧的arp条目

拓扑

请添加图片描述

实验目的

全互联互通,underlay使用OSPF来使底层可达,后使用BGP EVPN传递Type 2(学习MAC和32位的主机路由),Type 3路由(动态发现VTEP,自动建立VXLAN隧道)
创建两个BD,1.0/24在BD1000,2.0/24在BD2000 网关分别为:192.168.1.254/24 192.168.2.254/24

业务接入点

TOR_S-1:vlan batch  10 20#interface GE1/0/1port link-type trunkport trunk allow-pass vlan 10 20#interface GE1/0/2port link-type access port default vlan 10#interface GE1/0/3port link-type access port default vlan 20
TOR_S-2:vlan batch  10 20#interface GE1/0/1port link-type trunkport trunk allow-pass vlan 10 20#interface GE1/0/3port link-type access port default vlan 10#interface GE1/0/2port link-type access port default vlan 20
leaf1_CE-3:bridge-domain 1000vxlan vni 5010#bridge-domain 2000vxlan vni 5020#interface GE1/0/3.10 mode l2encapsulation dot1q vid 10bridge-domain 1000#interface GE1/0/3.20 mode l2encapsulation dot1q vid 20bridge-domain 2000
leaf1_CE-4:bridge-domain 1000vxlan vni 5010#bridge-domain 2000vxlan vni 5020#interface GE1/0/3.10 mode l2encapsulation dot1q vid 10bridge-domain 1000#interface GE1/0/3.20 mode l2encapsulation dot1q vid 20bridge-domain 2000

underlay

leaf1_CE-3:interface LoopBack0ip address 1.1.1.1 255.255.255.255#interface LoopBack1ip address 11.11.11.11 255.255.255.255#interface GE1/0/1undo portswitchip address 10.1.1.1 255.255.255.252ospf network-type p2p#interface GE1/0/2undo portswitchip address 10.1.1.5 255.255.255.252ospf network-type p2p#ospf 1 router-id 11.11.11.11area 0.0.0.0network 1.1.1.1 0.0.0.0network 10.1.1.0 0.0.0.255network 11.11.11.11 0.0.0.0
leaf1_CE-4:interface LoopBack0ip address 2.2.2.2 255.255.255.255#interface LoopBack1ip address 22.22.22.22 255.255.255.255#interface GE1/0/1undo portswitchip address 10.1.1.9 255.255.255.252ospf network-type p2p#interface GE1/0/2undo portswitchip address 10.1.1.13 255.255.255.252ospf network-type p2p#ospf 1 router-id 22.22.22.22area 0.0.0.0network 2.2.2.2 0.0.0.0network 10.1.1.0 0.0.0.255network 22.22.22.22 0.0.0.0
spine_CE-1:interface LoopBack1ip address 33.33.33.33 255.255.255.255#interface GE1/0/1undo portswitchip address 10.1.1.2 255.255.255.252ospf network-type p2p#interface GE1/0/2undo portswitchip address 10.1.1.10 255.255.255.252ospf network-type p2p#ospf 1 router-id 33.33.33.33area 0.0.0.0network 10.1.1.0 0.0.0.255network 33.33.33.33 0.0.0.0
spine_CE-2:interface LoopBack1ip address 44.44.44.44 255.255.255.255#interface GE1/0/1undo portswitchip address 10.1.1.6 255.255.255.252ospf network-type p2p#interface GE1/0/2undo portswitchip address 10.1.1.14 255.255.255.252ospf network-type p2p#ospf 1 router-id 44.44.44.44area 0.0.0.0network 10.1.1.0 0.0.0.255network 44.44.44.44 0.0.0.0

请添加图片描述

underlay已经完成,ospf邻居已经建立成功

Overlay

leaf1_CE-3:evpn-overlay enable #ip vpn-instance abcipv4-familyroute-distinguisher 1:1vpn-target 11:1 export-extcommunity evpnvpn-target 11:1 import-extcommunity evpnvxlan vni 3000#bridge-domain 1000vxlan vni 5010evpnroute-distinguisher 1000:1vpn-target 5010:1 export-extcommunityvpn-target 11:1 export-extcommunityvpn-target 5010:1 import-extcommunity#bridge-domain 2000vxlan vni 5020evpnroute-distinguisher 2000:1vpn-target 5020:1 export-extcommunityvpn-target 11:1 export-extcommunityvpn-target 5020:1 import-extcommunity#interface Vbdif1000ip binding vpn-instance abcip address 192.168.1.254 255.255.255.0mac-address 0000-5e00-0001vxlan anycast-gateway enablearp collect host enable#interface Vbdif2000ip binding vpn-instance abcip address 192.168.2.254 255.255.255.0mac-address 0000-5e00-0002vxlan anycast-gateway enablearp collect host enable#interface Nve1source 1.1.1.1vni 5010 head-end peer-list protocol bgpvni 5020 head-end peer-list protocol bgp#bgp 65000router-id 11.11.11.11undo default ipv4-unicastpeer 33.33.33.33 as-number 65000peer 33.33.33.33 connect-interface LoopBack1peer 44.44.44.44 as-number 65000peer 44.44.44.44 connect-interface LoopBack1l2vpn-family evpnpolicy vpn-targetpeer 33.33.33.33 enablepeer 33.33.33.33 advertise irbpeer 44.44.44.44 enablepeer 44.44.44.44 advertise irb
leaf1_CE-4:evpn-overlay enable #ip vpn-instance abcipv4-familyroute-distinguisher 1:2vpn-target 11:1 export-extcommunity evpnvpn-target 11:1 import-extcommunity evpnvxlan vni 3000#bridge-domain 1000vxlan vni 5010evpnroute-distinguisher 1000:2vpn-target 5010:1 export-extcommunityvpn-target 11:1 export-extcommunityvpn-target 5010:1 import-extcommunity#bridge-domain 2000vxlan vni 5020evpnroute-distinguisher 2000:2vpn-target 5020:1 export-extcommunityvpn-target 11:1 export-extcommunityvpn-target 5020:1 import-extcommunity#interface Vbdif1000ip binding vpn-instance abcip address 192.168.1.254 255.255.255.0mac-address 0000-5e00-0001vxlan anycast-gateway enablearp collect host enable#interface Vbdif2000ip binding vpn-instance abcip address 192.168.2.254 255.255.255.0mac-address 0000-5e00-0002vxlan anycast-gateway enablearp collect host enable#interface Nve1source 2.2.2.2vni 5010 head-end peer-list protocol bgpvni 5020 head-end peer-list protocol bgp#bgp 65000router-id 22.22.22.22undo default ipv4-unicastpeer 33.33.33.33 as-number 65000peer 33.33.33.33 connect-interface LoopBack1peer 44.44.44.44 as-number 65000peer 44.44.44.44 connect-interface LoopBack1l2vpn-family evpnpolicy vpn-targetpeer 33.33.33.33 enablepeer 33.33.33.33 advertise irbpeer 44.44.44.44 enablepeer 44.44.44.44 advertise irb
spine_CE-1:bgp 65000router-id 33.33.33.33undo default ipv4-unicastpeer 11.11.11.11 as-number 65000peer 11.11.11.11 connect-interface LoopBack1peer 22.22.22.22 as-number 65000peer 22.22.22.22 connect-interface LoopBack1l2vpn-family evpnundo policy vpn-targetpeer 11.11.11.11 enablepeer 11.11.11.11 advertise irbpeer 11.11.11.11 reflect-clientpeer 22.22.22.22 enablepeer 22.22.22.22 advertise irbpeer 22.22.22.22 reflect-client
spine_CE-2:bgp 65000router-id 44.44.44.44undo default ipv4-unicastpeer 11.11.11.11 as-number 65000peer 11.11.11.11 connect-interface LoopBack1peer 22.22.22.22 as-number 65000peer 22.22.22.22 connect-interface LoopBack1l2vpn-family evpnundo policy vpn-targetpeer 11.11.11.11 enablepeer 11.11.11.11 advertise irbpeer 11.11.11.11 reflect-clientpeer 22.22.22.22 enablepeer 22.22.22.22 advertise irbpeer 22.22.22.22 reflect-client

验证

请添加图片描述

当leaf1_CE-3的VBDIF接口有了租户的ARP表项后,会通过BGP EVPN的Type 2传递32位的主机路由给对等体

请添加图片描述

下一跳为leaf1_CE-3的VTEP IP(NVE IP),但是如果leaf1_CE-3租户的arp表项超时了,该路由也会撤销。MAC表也是类似的,当leaf1_CE-3租户的MAC超时,leaf2_CE-4上对应从EVPN Type2学到的MAC表也是撤销

Spine有两个并且都作为RR为什么只有一条呢?
请添加图片描述

请添加图片描述

这篇关于ENSP Pro VXLAN EVPN分布式网关部署配置的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/468838

相关文章

mybatis映射器配置小结

《mybatis映射器配置小结》本文详解MyBatis映射器配置,重点讲解字段映射的三种解决方案(别名、自动驼峰映射、resultMap),文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定... 目录select中字段的映射问题使用SQL语句中的别名功能使用mapUnderscoreToCame

Linux下MySQL数据库定时备份脚本与Crontab配置教学

《Linux下MySQL数据库定时备份脚本与Crontab配置教学》在生产环境中,数据库是核心资产之一,定期备份数据库可以有效防止意外数据丢失,本文将分享一份MySQL定时备份脚本,并讲解如何通过cr... 目录备份脚本详解脚本功能说明授权与可执行权限使用 Crontab 定时执行编辑 Crontab添加定

Java使用jar命令配置服务器端口的完整指南

《Java使用jar命令配置服务器端口的完整指南》本文将详细介绍如何使用java-jar命令启动应用,并重点讲解如何配置服务器端口,同时提供一个实用的Web工具来简化这一过程,希望对大家有所帮助... 目录1. Java Jar文件简介1.1 什么是Jar文件1.2 创建可执行Jar文件2. 使用java

SpringBoot 多环境开发实战(从配置、管理与控制)

《SpringBoot多环境开发实战(从配置、管理与控制)》本文详解SpringBoot多环境配置,涵盖单文件YAML、多文件模式、MavenProfile分组及激活策略,通过优先级控制灵活切换环境... 目录一、多环境开发基础(单文件 YAML 版)(一)配置原理与优势(二)实操示例二、多环境开发多文件版

Vite 打包目录结构自定义配置小结

《Vite打包目录结构自定义配置小结》在Vite工程开发中,默认打包后的dist目录资源常集中在asset目录下,不利于资源管理,本文基于Rollup配置原理,本文就来介绍一下通过Vite配置自定义... 目录一、实现原理二、具体配置步骤1. 基础配置文件2. 配置说明(1)js 资源分离(2)非 JS 资

MySQL8 密码强度评估与配置详解

《MySQL8密码强度评估与配置详解》MySQL8默认启用密码强度插件,实施MEDIUM策略(长度8、含数字/字母/特殊字符),支持动态调整与配置文件设置,推荐使用STRONG策略并定期更新密码以提... 目录一、mysql 8 密码强度评估机制1.核心插件:validate_password2.密码策略级

ShardingProxy读写分离之原理、配置与实践过程

《ShardingProxy读写分离之原理、配置与实践过程》ShardingProxy是ApacheShardingSphere的数据库中间件,通过三层架构实现读写分离,解决高并发场景下数据库性能瓶... 目录一、ShardingProxy技术定位与读写分离核心价值1.1 技术定位1.2 读写分离核心价值二

QT Creator配置Kit的实现示例

《QTCreator配置Kit的实现示例》本文主要介绍了使用Qt5.12.12与VS2022时,因MSVC编译器版本不匹配及WindowsSDK缺失导致配置错误的问题解决,感兴趣的可以了解一下... 目录0、背景:qt5.12.12+vs2022一、症状:二、原因:(可以跳过,直奔后面的解决方法)三、解决方

SpringBoot路径映射配置的实现步骤

《SpringBoot路径映射配置的实现步骤》本文介绍了如何在SpringBoot项目中配置路径映射,使得除static目录外的资源可被访问,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一... 目录SpringBoot路径映射补:springboot 配置虚拟路径映射 @RequestMapp

504 Gateway Timeout网关超时的根源及完美解决方法

《504GatewayTimeout网关超时的根源及完美解决方法》在日常开发和运维过程中,504GatewayTimeout错误是常见的网络问题之一,尤其是在使用反向代理(如Nginx)或... 目录引言为什么会出现 504 错误?1. 探索 504 Gateway Timeout 错误的根源 1.1 后端