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

相关文章

基于SpringBoot实现分布式锁的三种方法

《基于SpringBoot实现分布式锁的三种方法》这篇文章主要为大家详细介绍了基于SpringBoot实现分布式锁的三种方法,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 目录一、基于Redis原生命令实现分布式锁1. 基础版Redis分布式锁2. 可重入锁实现二、使用Redisso

jdk1.8的Jenkins安装配置实践

《jdk1.8的Jenkins安装配置实践》Jenkins是一款流行的开源持续集成工具,支持自动构建、测试和部署,通过Jenkins,开发团队可以实现代码提交后自动进行构建、测试,并将构建结果分发到测... 目录Jenkins介绍Jenkins环境搭建Jenkins安装配置Jenkins插件安装Git安装配

Nginx之https证书配置实现

《Nginx之https证书配置实现》本文主要介绍了Nginx之https证书配置的实现示例,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起... 目录背景介绍为什么不能部署在 IIS 或 NAT 设备上?具体实现证书获取nginx配置扩展结果验证

mysql_mcp_server部署及应用实践案例

《mysql_mcp_server部署及应用实践案例》文章介绍了在CentOS7.5环境下部署MySQL_mcp_server的步骤,包括服务安装、配置和启动,还提供了一个基于Dify工作流的应用案例... 目录mysql_mcp_server部署及应用案例1. 服务安装1.1. 下载源码1.2. 创建独立

springboot3.x使用@NacosValue无法获取配置信息的解决过程

《springboot3.x使用@NacosValue无法获取配置信息的解决过程》在SpringBoot3.x中升级Nacos依赖后,使用@NacosValue无法动态获取配置,通过引入SpringC... 目录一、python问题描述二、解决方案总结一、问题描述springboot从2android.x

Nginx服务器部署详细代码实例

《Nginx服务器部署详细代码实例》Nginx是一个高性能的HTTP和反向代理web服务器,同时也提供了IMAP/POP3/SMTP服务,:本文主要介绍Nginx服务器部署的相关资料,文中通过代码... 目录Nginx 服务器SSL/TLS 配置动态脚本反向代理总结Nginx 服务器Nginx是一个‌高性

nginx跨域访问配置的几种方法实现

《nginx跨域访问配置的几种方法实现》本文详细介绍了Nginx跨域配置方法,包括基本配置、只允许指定域名、携带Cookie的跨域、动态设置允许的Origin、支持不同路径的跨域控制、静态资源跨域以及... 目录一、基本跨域配置二、只允许指定域名跨域三、完整示例四、配置后重载 nginx五、注意事项六、支持

Spring配置扩展之JavaConfig的使用小结

《Spring配置扩展之JavaConfig的使用小结》JavaConfig是Spring框架中基于纯Java代码的配置方式,用于替代传统的XML配置,通过注解(如@Bean)定义Spring容器的组... 目录JavaConfig 的概念什么是JavaConfig?为什么使用 JavaConfig?Jav

Spring Boot Interceptor的原理、配置、顺序控制及与Filter的关键区别对比分析

《SpringBootInterceptor的原理、配置、顺序控制及与Filter的关键区别对比分析》本文主要介绍了SpringBoot中的拦截器(Interceptor)及其与过滤器(Filt... 目录前言一、核心功能二、拦截器的实现2.1 定义自定义拦截器2.2 注册拦截器三、多拦截器的执行顺序四、过

JavaWeb项目创建、部署、连接数据库保姆级教程(tomcat)

《JavaWeb项目创建、部署、连接数据库保姆级教程(tomcat)》:本文主要介绍如何在IntelliJIDEA2020.1中创建和部署一个JavaWeb项目,包括创建项目、配置Tomcat服务... 目录简介:一、创建项目二、tomcat部署1、将tomcat解压在一个自己找得到路径2、在idea中添加