本次华为vxlan实验采用eve-ng 5.0模拟器,使用华为CE12800、AR1000v、思科接入交换机两台。关于两个数据中心大二层互通、跨三层互通,已经在第二章和第三章讲解了。本次注意说明vxlan网络与非vxlan(互联网)如何互通。
1、ar100v模拟互联网区域
2、ce03作为spine和Border 作为外部引入,通告整个vlan中。

前言:

Type5路由——IP前缀路由

该类型路由的IP Prefix Length和IP Prefix字段既可以携带主机IP地址,也可以携带网段地址:
•当携带主机IP地址时,该类型路由在VXLAN控制平面中的作用与IRB类型路由是一样的,主要用于分布式网关场景中的主机IP路由通告。
•当携带网段地址时,通过传递该类型路由,可以实现VXLAN网络中的主机访问外部网络。

1、拓扑图

2、配置

2.1互联网的ar路由互联

inter g1/0/2  ip binding vpn-instance Aip address 43.1.1.3 255.255.255.0
#

2.2创建vpn实例几三层vni

ip vpn-instance A  ipv4-familyroute-distinguisher 3:4vpn-target 10:10 export-extcommunity evpnvpn-target 10:10 import-extcommunity evpnvxlan vni 55
#

注意vpn-target是evpn

2.3 配置默认路由

ip route-static vpn-instance A 0.0.0.0 0.0.0.0 43.1.1.4
ip route-static vpn-instance A 11.1.1.0 255.255.255.0 43.1.1.4

2.4 evpn发布前缀路由type5

bgp 100 instance evpn1router-id 3.3.3.3peer 1.1.1.1 as-number 100peer 1.1.1.1 connect-interface LoopBack0peer 2.2.2.2 as-number 100peer 2.2.2.2 connect-interface LoopBack0ipv4-family vpn-instance Adefault-route importednetwork 0.0.0.0import-route staticadvertise l2vpn evpn
#

在bgp vpn族引入默认路由,并发布到evpn中。

整体配置

<CE03>dis cu
!Software Version V200R005C10SPC607B607
!Last configuration was updated at 2022-07-05 08:50:02+00:00
!Last configuration was saved at 2022-07-05 09:11:25+00:00
#
sysname CE03
#
device board 17 board-type CE-MPUB
device board 1 board-type CE-LPUE
#
evpn-overlay enable
#
ip vpn-instance Aipv4-familyroute-distinguisher 3:4vpn-target 10:10 export-extcommunity evpnvpn-target 10:10 import-extcommunity evpnvxlan vni 55
#ip binding vpn-instance Aip address 43.1.1.3 255.255.255.0
##
interface LoopBack0ip address 3.3.3.3 255.255.255.255
#
interface Nve1source 3.3.3.3
#
interface NULL0
#
bgp 100 instance evpn1router-id 3.3.3.3peer 1.1.1.1 as-number 100peer 1.1.1.1 connect-interface LoopBack0peer 2.2.2.2 as-number 100peer 2.2.2.2 connect-interface LoopBack0#l2vpn-family evpnundo policy vpn-targetpeer 1.1.1.1 enablepeer 1.1.1.1 reflect-clientpeer 2.2.2.2 enablepeer 2.2.2.2 reflect-client#ipv4-family vpn-instance Adefault-route importednetwork 0.0.0.0import-route staticadvertise l2vpn evpn
#
ospf 10 router-id 3.3.3.3area 0.0.0.0network 3.3.3.3 0.0.0.0network 13.1.1.3 0.0.0.0network 23.1.1.3 0.0.0.0
#
ip route-static vpn-instance A 0.0.0.0 0.0.0.0 43.1.1.4
ip route-static vpn-instance A 11.1.1.0 255.255.255.0 43.1.1.4

3、验证

ce3上查看前缀路由

[~CE03]dis bgp instance evpn1 evpn all routing-table  ?inclusive-route  Inclusive Multicast Routemac-route        MAC Advertisement Routepeer             Peer routersprefix-route     IP-prefix routesstatistics       Statistics of route|                Matching output>                Redirect the output to a file>>               Redirect the output to a file in append mode<cr>             [~CE03]dis bgp instance evpn1 evpn all routing-table  pr
[~CE03]dis bgp instance evpn1 evpn all routing-table  prefix-route Local AS number : 100BGP Local router ID is 3.3.3.3Status codes: * - valid, > - best, d - damped, x - best external, a - add path,h - history,  i - internal, s - suppressed, S - StaleOrigin : i - IGP, e - EGP, ? - incompleteEVPN address family:Number of Ip Prefix Routes: 3Route Distinguisher: 3:4Network(EthTagId/IpPrefix/IpPrefixLen)                 NextHop*>    0:0.0.0.0:0                                            0.0.0.0*                                                            0.0.0.0*>    0:11.1.1.0:24                                          0.0.0.0EVPN-Instance __RD_1_3_4__:Number of Ip Prefix Routes: 3Network(EthTagId/IpPrefix/IpPrefixLen)                 NextHop*>    0:0.0.0.0:0                                            0.0.0.0*                                                            0.0.0.0*>    0:11.1.1.0:24                                          0.0.0.0

ce1上查看路由

[~CE01]dis ip routing-table  vpn-instance A
Proto: Protocol        Pre: Preference
Route Flags: R - relay, D - download to fib, T - to vpn-instance, B - black hole route
------------------------------------------------------------------------------
Routing Table : ADestinations : 9        Routes : 9         Destination/Mask    Proto   Pre  Cost        Flags NextHop         Interface0.0.0.0/0   IBGP    255  0             RD  3.3.3.3         VXLAN11.1.1.0/24  IBGP    255  0             RD  3.3.3.3         VXLAN172.16.1.0/24  Direct  0    0             D   172.16.1.254    Vbdif20172.16.1.254/32  Direct  0    0             D   127.0.0.1       Vbdif20172.16.1.255/32  Direct  0    0             D   127.0.0.1       Vbdif20192.168.1.0/24  Direct  0    0             D   192.168.1.254   Vbdif10192.168.1.254/32  Direct  0    0             D   127.0.0.1       Vbdif10192.168.1.255/32  Direct  0    0             D   127.0.0.1       Vbdif10
255.255.255.255/32  Direct  0    0             D   127.0.0.1       InLoopBack0
[~CE01]

pc测试

es from 11.1.1.1 icmp_seq=2 ttl=61 time=4.781 ms
84 bytes from 11.1.1.1 icmp_seq=3 ttl=61 time=5.231 ms
84 bytes from 11.1.1.1 icmp_seq=4 ttl=61 time=6.456 ms
84 bytes from 11.1.1.1 icmp_seq=5 ttl=61 time=5.092 ms
VPCS> trace  11.1.1.1
trace to 11.1.1.1, 8 hops max, press Ctrl+C to stop
1   192.168.1.254   13.446 ms  5.638 ms  3.441 ms
2     *  *  *
3   43.1.1.4   9.715 ms  5.565 ms  5.492 ms
4   *11.1.1.1   8.536 ms (ICMP type:3, code:3, Destination port unreachable)
VPCS> ping 11.1.1.1
84 bytes from 11.1.1.1 icmp_seq=1 ttl=61 time=7.009 ms
84 bytes from 11.1.1.1 icmp_seq=2 ttl=61 time=8.312 ms
84 bytes from 11.1.1.1 icmp_seq=3 ttl=61 time=6.321 ms
84 bytes from 11.1.1.1 icmp_seq=4 ttl=61 time=5.202 ms
84 bytes from 11.1.1.1 icmp_seq=5 ttl=61 time=6.477 ms
VPCS>

vxlan专题---第四章配置分布式网关部署方式的华为VXLAN示例-外部路由type5相关推荐

  1. 计算机网络实验(华为eNSP模拟器)——第四章 配置静态路由、动态路由

    目录 前言 一.关闭泛洪信息 二.静态路由 命令 例题 三.动态路由 (一)RIP协议 RIP命令 例题 (二)OSPF协议 OSPF命令 例题(单区域) 例题(多区域) 四.查看全局路由表 结语 前 ...

  2. 【重识云原生】第四章云网络4.3.10.5节——VXlan组网架构

    <重识云原生系列>专题索引: 第一章--不谋全局不足以谋一域 第二章计算第1节--计算虚拟化技术总述 第三章云存储第1节--分布式云存储总述 第四章云网络第一节--云网络技术发展简述 第四 ...

  3. 【重识云原生】第四章云网络4.3.10.6节——VXLAN应用部署方案

    <重识云原生系列>专题索引: 第一章--不谋全局不足以谋一域 第二章计算第1节--计算虚拟化技术总述 第三章云存储第1节--分布式云存储总述 第四章云网络第一节--云网络技术发展简述 第四 ...

  4. 【重识云原生】第四章云网络4.3.10.2节——VXLAN Overlay网络方案设计

    <重识云原生系列>专题索引: 第一章--不谋全局不足以谋一域 第二章计算第1节--计算虚拟化技术总述 第三章云存储第1节--分布式云存储总述 第四章云网络第一节--云网络技术发展简述 第四 ...

  5. Hazelcast IMDG参考中文版手册-第四章-配置

    本章介绍配置Hazelcast应用程序的选项,并说明配置时可以使用的实用程序.您可以使用以下选项之一或混合配置Hazelcast: 陈述性的方式 程序化方式 使用Hazelcast系统属性 在Spri ...

  6. 【数据库原理及应用】经典题库附答案(14章全)——第十四章:分布式数据库系统

    [数据库原理及应用]经典题库附答案(14章全)--第一章:数据库基础知识 [数据库原理及应用]经典题库附答案(14章全)--第二章:关系数据库知识 [数据库原理及应用]经典题库附答案(14章全)--第 ...

  7. 专题3:Django配置分布式路由

    在之前的项目中,所有的URL都是写在<项目名>/<项目名>/urls.py(即:主路由)中了.如果URL数量少还好,如果我们有很多很多(几十上百)个URL要写,那么要是全写在主 ...

  8. 分布式事务专题(四):分布式事务解决方案之TCC

    目录: 基础概念 分布式事务理论 分布式事务解决方案之2pc 分布式事务解决方案之TCC(本章) 分布式事务解决方案之可靠消息最终一致性 分布式事务解决方案之最大努力通知 分布式事务综合案例分析 4. ...

  9. 【.NET Core项目实战-统一认证平台】第十四章 授权篇-自定义授权方式

    上篇文章我介绍了如何强制令牌过期的实现,相信大家对IdentityServer4的验证流程有了更深的了解,本篇我将介绍如何使用自定义的授权方式集成老的业务系统验证,然后根据不同的客户端使用不同的认证方 ...

最新文章

  1. 讨论丨深度学习已经成为过去?迁移学习才是真正的未来?
  2. PUTTY工具的使用
  3. 模拟浏览器自动化测试工具Selenium之一eclipse集成开发部署篇
  4. STM32工作笔记0036---C语言复习--寄存器地址名称映射
  5. 关于Qt5.10调试时出现“qtcreatorcdbext.dll cannot be found.”的解决方案
  6. 电工模拟接线软件 app_配电柜接线图
  7. 图论及其应用:第三次作业
  8. iOS状态栏文字设置成白色
  9. linux ps 命令大全
  10. 02[自制油猴插件]我是如何优化B站评论区外链体验的
  11. 小程序开发外包公司哪家好?
  12. 高效率的工作工具(持续更新...)
  13. mysql24小时数据没有补0
  14. 鲁大师怎么样测试软件,鲁大师怎样进行硬件测试
  15. android 即时通讯 xmpp,基于xmpp实现android端实现即时通讯
  16. js 在js字符串中添加空格
  17. MT6572有的时候点亮屏TP有时没反应
  18. MATLAB船舶开尔文尾迹三维仿真建模
  19. 佛系码农~手把手教你如何绘制一辆会跑车
  20. 创弘星鹏电商:开一家抖音小店可以选择的模式

热门文章

  1. Linux 关机和重启
  2. 计算机底层:CPU结构与组成原理、工作原理
  3. 读书笔记——我的学习与研究经历(杨振宁/2012)
  4. 如何开始用Python编程
  5. 搜索引擎排名都选乐云seo_百度官网排名-搜索引擎算法优化
  6. python计算n的阶乘
  7. Java多线程下载网图
  8. arcgis制作格网图
  9. 推荐系统-排序算法:GBDT+LR
  10. #717 Cut(倍增)