实验:Segment Routing L3 Over SR-MPLS TE

发布时间:2026/9/11 9:59:01

实验:Segment Routing L3 Over SR-MPLS TE 实现通过IS-IS完成PE之间的路由可达实现手动配置SR-MPLS TE隧道实现CE之间互访使用的L3VPN 隧道迭代到SR-MPLS TE隧道观察SR-MPLS TE隧道转发报文时的标签变化一、拓扑及规划1、拓扑2、规划设备互联接口的IP地址使用10.0.0.X/30Loopback 0 IP地址规划PE110.0.1.1/32PE210.0.2.2/32PE310.0.3.3/32PE410.0.4.4/32P110.0.5.5/32P210.0.6.6/32Loopback 1 IP地址PE110.1.1.1/32PE410.1.4.4/32设备互通使用IS-IS协议BGP AS号65100邻接标签设备编号本端IP对端IP标签值P110.0.0.610.0.0.5322336P110.0.0.1310.0.0.14322337P110.0.0.1710.0.0.18322338P210.0.0.1010.0.0.9322336P210.0.0.1410.0.0.13322337P210.0.0.2110.0.0.223223383、目标 PE1和PE4上的Loopback 1接口流量通过 SR-MPLS TE 实现互访二、配置思路1、设备基础IP配置2、IS-IS配置实现互通3、使能MPLS、MPLS TE4、使能SR在IS-IS中开启对SR的扩展能力、开启流量工程配置Node SID5、PE1、PE4上配置显式路径以及TE隧道接口6、配置VPN实例将PE1、PE4的Loopback 1接口划分到实例中并在PE1、PE4与P1、P2之间建立VPNv4对等体关系7、配置隧道选择策略将VPN流量引入TE隧道三、配置过程实验使用的是EVE-NG中的NetEngine 40E设备在开始配置前需要关闭 dcn功能。如果不关闭可能会很卡顿。1、基础IP略、IS-IS配置PE1# PE1 IS-IS配置 isis 1 is-level level-2 cost-style wide network-entity 49.0001.0001.0001.0001.00 is-name PE1 interface Ethernet1/0/0 ip address 10.0.0.1 255.255.255.252 isis enable 1 isis circuit-type p2p interface Ethernet1/0/1 ip address 10.0.0.5 255.255.255.252 isis enable 1 isis circuit-type p2p interface LoopBack0 ip address 10.0.1.1 255.255.255.255 isis enable 1PE2# PE2 IS-IS配置 isis 1 is-level level-2 cost-style wide network-entity 49.0001.0002.0002.0002.00 is-name PE2 interface Ethernet1/0/0 ip address 10.0.0.2 255.255.255.252 isis enable 1 isis circuit-type p2p interface Ethernet1/0/1 ip address 10.0.0.9 255.255.255.252 isis enable 1 isis circuit-type p2p interface LoopBack0 ip address 10.0.2.2 255.255.255.255 isis enable 1P1# P1 IS-IS配置 isis 1 is-level level-2 cost-style wide network-entity 49.0001.0005.0005.0005.00 is-name P1 interface Ethernet1/0/0 ip address 10.0.0.13 255.255.255.252 isis enable 1 isis circuit-type p2p interface Ethernet1/0/1 ip address 10.0.0.6 255.255.255.252 isis enable 1 isis circuit-type p2p interface Ethernet1/0/2 ip address 10.0.0.17 255.255.255.252 isis enable 1 isis circuit-type p2p interface LoopBack0 ip address 10.0.5.5 255.255.255.255 isis enable 1P2# P2 IS-IS配置 isis 1 is-level level-2 cost-style wide network-entity 49.0001.0006.0006.0006.00 is-name P2 interface Ethernet1/0/0 ip address 10.0.0.14 255.255.255.252 isis enable 1 isis circuit-type p2p interface Ethernet1/0/1 ip address 10.0.0.10 255.255.255.252 isis enable 1 isis circuit-type p2p interface Ethernet1/0/2 ip address 10.0.0.21 255.255.255.252 isis enable 1 isis circuit-type p2p interface LoopBack0 ip address 10.0.6.6 255.255.255.255 isis enable 1PE3# PE3 IS-IS配置 isis 1 is-level level-2 cost-style wide network-entity 49.0001.0003.0003.0003.00 is-name PE3 interface Ethernet1/0/0 ip address 10.0.0.25 255.255.255.252 isis enable 1 isis circuit-type p2p interface Ethernet1/0/1 ip address 10.0.0.18 255.255.255.252 isis enable 1 isis circuit-type p2p interface LoopBack0 ip address 10.0.3.3 255.255.255.255 isis enable 1PE4# PE4 IS-IS配置 isis 1 is-level level-2 cost-style wide network-entity 49.0001.0004.0004.0004.00 is-name PE4 interface Ethernet1/0/0 ip address 10.0.0.26 255.255.255.252 isis enable 1 isis circuit-type p2p interface Ethernet1/0/1 ip address 10.0.0.22 255.255.255.252 isis enable 1 isis circuit-type p2p interface LoopBack0 ip address 10.0.4.4 255.255.255.255 isis enable 1结果验证2、MPLS配置全局使能MPLS因为只实现PE1和PE4的Loopback 1接口互通所以只需要在PE1和PE4的MPLS中使用MPLS TE# PE1 MPLS配置 mpls lsr-id 10.0.1.1 mpls mpls te # PE2 MPLS配置 mpls lsr-id 10.0.2.2 mpls # P1 MPLS配置 mpls lsr-id 10.0.5.5 mpls # P2 MPLS配置 mpls lsr-id 10.0.6.6 mpls # PE3 MPLS配置 mpls lsr-id 10.0.3.3 mpls # PE4 MPLS配置 mpls lsr-id 10.0.4.4 mpls mpls te3、SR配置全局使能SR在IS-IS中开启对SR的扩展能力、开启流量工程能力配置Loopback 0 的SID配置全局标签范围同时在P1、P2上配置静态邻接标签# PE1的SR配置 segment-routing isis 1 segment-routing mpls segment-routing global-block 16000 17000 interface LoopBack0 isis prefix-sid index 1# PE2的SR配置 segment-routing isis 1 segment-routing mpls segment-routing global-block 16000 17000 interface LoopBack0 isis prefix-sid index 2# P1的SR配置 segment-routing ipv4 adjacency local-ip-addr 10.0.0.6 remote-ip-addr 10.0.0.5 sid 322336 ipv4 adjacency local-ip-addr 10.0.0.13 remote-ip-addr 10.0.0.14 sid 322337 ipv4 adjacency local-ip-addr 10.0.0.17 remote-ip-addr 10.0.0.18 sid 322338 isis 1 segment-routing mpls segment-routing global-block 16000 17000 interface LoopBack0 isis prefix-sid index 5# P2的SR配置 segment-routing ipv4 adjacency local-ip-addr 10.0.0.10 remote-ip-addr 10.0.0.9 sid 322336 ipv4 adjacency local-ip-addr 10.0.0.14 remote-ip-addr 10.0.0.13 sid 322337 ipv4 adjacency local-ip-addr 10.0.0.21 remote-ip-addr 10.0.0.22 sid 322338 isis 1 segment-routing mpls segment-routing global-block 16000 17000 interface LoopBack0 isis prefix-sid index 6# PE3的SR配置 segment-routing isis 1 segment-routing mpls segment-routing global-block 16000 17000 interface LoopBack0 isis prefix-sid index 3# PE4的SR配置 segment-routing isis 1 segment-routing mpls segment-routing global-block 16000 17000 interface LoopBack0 isis prefix-sid index 44、PE1、PE4上配置显式路径及TE隧道接口配置显示路径之前需要使能 MPLS TE如果未配置则会Error报错# PE1 显式路径及TE隧道接口配置 explicit-path PE1_PE4 next sid label 16005 type prefix next sid label 322337 type adjacency next sid label 322338 type adjacency interface Tunnel10 ip address unnumbered interface LoopBack0 tunnel-protocol mpls te destination 10.0.4.4 mpls te signal-protocol segment-routing mpls te tunnel-id 10 mpls te path explicit-path PE1_PE4# PE4 显式路径及TE隧道接口 配置 explicit-path PE4_PE1 next sid label 16003 type prefix next sid label 16005 type prefix next sid label 322337 type adjacency next sid label 322336 type adjacency next sid label 16001 type prefix interface Tunnel10 ip address unnumbered interface LoopBack0 tunnel-protocol mpls te destination 10.0.1.1 mpls te signal-protocol segment-routing mpls te tunnel-id 10 mpls te path explicit-path PE4_PE15、结果验证6、配置VPN实例在PE1、PE4之间建立VPNv4对等体关系PE1、PE2、PE3、PE4 作为客户端均与P1、P2建立MP-BGP VPNv4对等体关系P1、P2为RR。PE1、PE4创建VPN实例 vpna绑定 Loopback 1接口PE1 Loopback 1 10.1.1.1/32PE4 Loopback 1 10.1.4.4/32# PE1 vpn-instance vpna配置 ip vpn-instance vpna ipv4-family route-distinguisher 100:10 vpn-target 100:1020 export-extcommunity vpn-target 100:1020 import-extcommunity # BGP 配置 bgp 65100 router-id 10.0.1.1 peer 10.0.5.5 as-number 65100 peer 10.0.5.5 connect-interface LoopBack0 peer 10.0.6.6 as-number 65100 peer 10.0.6.6 connect-interface LoopBack0 ipv4-family vpnv4 peer 10.0.5.5 enable peer 10.0.6.6 enable ipv4-family vpn-instance vpna import-route direct# PE3 BGP配置 bgp 65100 router-id 10.0.2.2 peer 10.0.5.5 as-number 65100 peer 10.0.5.5 connect-interface LoopBack0 peer 10.0.6.6 as-number 65100 peer 10.0.6.6 connect-interface LoopBack0 ipv4-family vpnv4 peer 10.0.5.5 enable peer 10.0.6.6 enable# P1 BGP配置 bgp 65100 router-id 10.0.5.5 peer 10.0.1.1 as-number 65100 peer 10.0.1.1 connect-interface LoopBack0 peer 10.0.2.2 as-number 65100 peer 10.0.2.2 connect-interface LoopBack0 peer 10.0.3.3 as-number 65100 peer 10.0.3.3 connect-interface LoopBack0 peer 10.0.4.4 as-number 65100 peer 10.0.4.4 connect-interface LoopBack0 ipv4-family vpnv4 undo policy vpn-target peer 10.0.1.1 enable peer 10.0.1.1 reflect-client peer 10.0.2.2 enable peer 10.0.2.2 reflect-client peer 10.0.3.3 enable peer 10.0.3.3 reflect-client peer 10.0.4.4 enable peer 10.0.4.4 reflect-client# P2 BGP配置 bgp 65100 router-id 10.0.6.6 peer 10.0.1.1 as-number 65100 peer 10.0.1.1 connect-interface LoopBack0 peer 10.0.2.2 as-number 65100 peer 10.0.2.2 connect-interface LoopBack0 peer 10.0.3.3 as-number 65100 peer 10.0.3.3 connect-interface LoopBack0 peer 10.0.4.4 as-number 65100 peer 10.0.4.4 connect-interface LoopBack0 ipv4-family vpnv4 undo policy vpn-target peer 10.0.1.1 enable peer 10.0.1.1 reflect-client peer 10.0.2.2 enable peer 10.0.2.2 reflect-client peer 10.0.3.3 enable peer 10.0.3.3 reflect-client peer 10.0.4.4 enable peer 10.0.4.4 reflect-client PE3 BGP配置 bgp 65100 router-id 10.0.3.3 peer 10.0.5.5 as-number 65100 peer 10.0.5.5 connect-interface LoopBack0 peer 10.0.6.6 as-number 65100 peer 10.0.6.6 connect-interface LoopBack0 ipv4-family vpnv4 peer 10.0.5.5 enable peer 10.0.6.6 enable# PE4 vpn-instance vpna配置 ip vpn-instance vpna ipv4-family route-distinguisher 100:40 vpn-target 100:1020 export-extcommunity vpn-target 100:1020 import-extcommunity interface LoopBack1 ip binding vpn-instance vpna ip address 10.1.4.4 255.255.255.255 # PE4 BGP配置 bgp 65100 router-id 10.0.4.4 peer 10.0.5.5 as-number 65100 peer 10.0.5.5 connect-interface LoopBack0 peer 10.0.6.6 as-number 65100 peer 10.0.6.6 connect-interface LoopBack0 ipv4-family vpnv4 peer 10.0.5.5 enable peer 10.0.6.6 enable ipv4-family vpn-instance vpna import-route direct7、结果验证MP-BGP VPNv4邻居关系VPNv4路由vpn实例路由此时可以看到PE1上关于10.1.4.4的路由为两条分别由两个物理接口发出7、配置隧道策略将VPN流量引入TE隧道# PE1配置 tunnel-policy p1 tunnel select-seq sr-te load-balance-number 1 ip vpn-instance vpna ipv4-family tnl-policy p1# PE4 配置 tunnel-policy p1 tunnel select-seq sr-te load-balance-number 1 ip vpn-instance vpna ipv4-family tnl-policy p1结果验证配置隧道策略引流后经由Tunnel 10 接口发出四、结果验证1、测试 PE1 Loopback1 与PE4 Loopback 1连通性2、分别抓取PE1的Eth1/0/1和PE4的Eth1/0/0接口数据包PE1至PE4PE4至PE1实验复刻《HCIE-Datacom V1.0 实验手册》
延伸阅读

更多相关文章

2026/9/8 8:12:21

CSS实战:为HTML表格tbody添加滚动条并固定表头

1. 为什么需要固定表头滚动表格?做后台管理系统时,我经常遇到这样的需求:表格数据太多,需要滚动查看,但表头必须固定不动。想象一下查看员工花名册,滚动到第50行时已经忘记表头对应的是什么字段了——这种体…

2026/9/10 17:25:00

从DAU到LTV:游戏运营指标的计算、预估与实战应用

1. DAU与LTV:游戏运营的核心指标解析 每天打开手机玩游戏的用户有多少?他们能为公司带来多少收入?这两个问题背后隐藏着游戏行业最关键的运营指标:DAU(日活跃用户数)和LTV(用户生命周期价值&…

2026/9/11 9:56:25

WorkBuddy容器化:桌面Agent的确定性运行实践

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/9/11 9:56:25

MATLAB调用ANSYS批处理仿真:从APDL模板到参数自动化

简介:面向需要进行工程仿真与自动化计算的MATLAB/ANSYS用户,这份Demo2示例包演示了如何通过MATLAB调用ANSYS APDL命令完成仿真控制与数据交互,适合刚接触两类软件联调的初学者快速上手,也可作为教学演示参考。压缩包共3个文件&…

2026/9/11 9:56:25

MATLAB在流体热耦合仿真中的高效应用

1. 项目概述:当MATLAB遇上流体与热的交响曲在工程仿真领域,流体动力学与热传导的耦合分析堪称经典难题。去年为某换热器厂商做优化设计时,我亲历了传统实验方法的高成本困境——单次流场观测实验耗资近万元,而MATLAB数值仿真将成本…

2026/9/11 9:56:24

Avalanche共识机制安全解析:随机抽样如何实现又快又稳?

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/9/11 9:51:24

个人开发者接入WorkBuddy开放平台:从零跑通Agent应用实战

上个月我把一个内部用的 WorkBuddy 开放平台接入项目从零搭到了能稳定调起 Agent 任务的状态。整个过程把开放平台的账号体系、Skill 机制、API 调用链路和 Agent 编排全部过了一遍,踩的坑比想象中多。这篇就围绕“个人开发者如何接入 WorkBuddy 开放平台并跑通一个…

2026/9/10 16:39:38

超人会飞不算本事:系统稳定依赖清晰规则与边界设计

开头先不绕弯子。“#斯坦李吐槽dc 所以超人是无缘无故会飞的嘛哈哈哈哈哈哈哈锤哥真是技术人才啊!#雷神 #复联”这类调侃式短标题,第一波冲击力在于它把两个宇宙的角色塞进同一个吐槽箱里,但细想一下就能发现,它真正碰到的根本不是…

2026/9/10 11:16:38

超人VS蜘蛛侠:拆解超级IP的影响力与传播方法论

把“蜘蛛侠 vs 超人”放在 CSDN 上聊,可能很多人第一反应是走错片场了。但如果把这两个角色看成“两个持续运营了 80 多年的文化产品”,你会发现,这场比较本质上是两个不同 IP 策略的长期结果对比:超人赢在定义了整个超级英雄题材…

2026/9/9 16:31:09

基于CNN的调制信号识别:MATLAB实现时频图分类实战

简介:本资源是一套面向通信工程与信号处理方向学习者、研究者的深度学习实践方案,聚焦调制信号自动检测与识别这一典型无线通信任务,解决传统方法依赖人工特征、低信噪比下性能下降等痛点。压缩包共12个文件(10.73MB)&…

2026/9/10 12:32:02

USB Type-C PCB布局分区设计:电源、高速信号与PD协议全攻略

做硬件这行,Type-C接口算是典型的“看着简单,做起来全坑”的东西。光引脚就24个,高低速信号、电源、控制线全部塞在一个小小的连接器里,如果PCB布局不做规划,打样回来基本就是“插上没反应”、“高速掉线”、“静电一打…

2026/9/10 15:19:50

系统编程学习原型如何补齐稳定性边界

系统编程学习原型如何补齐稳定性边界预算有限时&#xff0c;我先优化明显多余的复制&#xff0c;而不是猜测性地换容器。用借用传递只读数据通常就能减少分配&#xff1a; fn parse(line: &str) -> Result<Item, Error> { /* ... */ }用基准确认热点确实在分配&am…

2026/9/10 15:49:53

雨花区哪家财务公司代理记账比较好?

在雨花区&#xff0c;企业处理财税事务常常面临诸多挑战&#xff0c;选择一家靠谱的财务公司至关重要。湖南巨勤财务管理咨询有限公司就是本地正规实体财税服务机构&#xff0c;深耕本地工商财税行业多年&#xff0c;熟悉当地工商局、税务局最新政策与申报流程。主营公司注册、…

还想了解更多?直接咨询顾问

免费诊断 + 免费方案 + 透明报价。

全国咨询热线400-8866-253
免费获取方案
咨询二维码