news 2026/8/9 20:43:07

企业总部-分支-门点-数据中心使用骨干网SRv6 BE互联互通整体架构配置案例

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
企业总部-分支-门点-数据中心使用骨干网SRv6 BE互联互通整体架构配置案例

网络规划设计

打通总部、分支、数据中心两种业务,并且做到业务隔离,骨干网使用srv6 BE进行互联互通,ne2做为RR
locator规划看拓扑图上,已标出,保证所有设备唯一,其它sid全部用动态自动生成

1、使能各接口的IPv6转发能力,配置各接口的IPv6地址。
2、在各接口上使能IS-IS,配置Level级别,指定网络实体。
3、在ne1、ne4、ne3上配置VPN实例。
4、在ne1和AR1之间建立ospf关系,另一边ne3和AR2采用静态联接配置,ne4与ar3用bgp联接
5、在ne2为ne1、ne3、ne4的RR
6、在ne1、ne4、ne3上配置SRv6。配置IS-IS的SRv6能力。
7、最终实现企业总部-分支-数据中心两种业务OA、RD相互隔离,OA业务只可以和OA业务互联互通,RD业务只能和RD业务互通。

更多细节来全球计算机技术群讨论!!!

ne1配置

[ne1]dis current-configuration
!Software Version V800R011C00SPC607B607
!Last configuration was updated at 2025-12-21 22:40:36+00:00
!Last configuration was saved at 2025-12-21 21:30:00+00:00

sysname ne1

set neid 18a8b

vsm on-board-mode enable

snmp-agent trap type base-trap

icmp rate-limit disable

router id 1.1.1.1

ip vpn-instance OA
ipv4-family
route-distinguisher 11:1
vpn-target 1:1 export-extcommunity
vpn-target 1:1 import-extcommunity

ip vpn-instance RD
ipv4-family
route-distinguisher 11:2
vpn-target 2:2 export-extcommunity
vpn-target 2:2 import-extcommunity

segment-routing ipv6
encapsulation source-address 2001:1::1 //用loopback口封装
locator 1 ipv6-prefix 2002:1:: 64 static 32

isis 1
is-level level-2
cost-style wide
network-entity 49.0001.0000.0000.0001.00

ipv6 enable topology ipv6
segment-routing ipv6 locator 1

interface Ethernet1/0/0
undo shutdown
ipv6 enable
ipv6 address 2001:DB8:12::1/64
isis ipv6 enable 1
undo dcn
undo dcn mode vlan

interface Ethernet1/0/1
undo shutdown
undo dcn
undo dcn mode vlan

interface Ethernet1/0/1.11
ip binding vpn-instance OA
ip address 10.0.11.2 255.255.255.0
encapsulation dot1q-termination
dot1q termination vid 11
arp broadcast enable

interface Ethernet1/0/1.21
ip binding vpn-instance RD
ip address 10.0.21.2 255.255.255.0
encapsulation dot1q-termination
dot1q termination vid 21
arp broadcast enable

interface LoopBack0
ipv6 enable
ipv6 address 2001:1::1/128
isis ipv6 enable 1

interface LoopBack1
ip address 1.1.1.1 255.255.255.255

interface NULL0

bgp 100
router-id 1.1.1.1
peer 2001:1::2 as-number 100
peer 2001:1::2 connect-interface LoopBack0

ipv4-family unicast
undo synchronization

ipv4-family vpnv4
policy vpn-target
peer 2001:1::2 enable
peer 2001:1::2 prefix-sid

ipv4-family vpn-instance OA
import-route ospf 1
segment-routing ipv6 locator 1 //添加SID属性
segment-routing ipv6 best-effort //使能根据路由携带的SID属性进行隧道迭代的功能

ipv4-family vpn-instance RD
import-route ospf 2
segment-routing ipv6 locator 1
segment-routing ipv6 best-effort

ospf 1 vpn-instance OA
import-route bgp
area 0.0.0.0
network 10.0.11.2 0.0.0.0

ospf 2 vpn-instance RD
import-route bgp
area 0.0.0.0
network 10.0.21.2 0.0.0.0

ne2配置

[ne2]dis current-configuration
!Software Version V800R011C00SPC607B607
!Last configuration was updated at 2025-12-21 22:28:01+00:00
!Last configuration was saved at 2025-12-21 21:30:00+00:00

sysname ne2

set neid 18a89

vsm on-board-mode enable

snmp-agent trap type base-trap

icmp rate-limit disable

router id 2.2.2.2

isis 1
is-level level-2
cost-style wide
network-entity 49.0001.0000.0000.0002.00

ipv6 enable topology ipv6

interface Ethernet1/0/0
undo shutdown
ipv6 enable
ipv6 address 2001:DB8:12::2/64
isis ipv6 enable 1
undo dcn
undo dcn mode vlan

interface Ethernet1/0/1
undo shutdown
ipv6 enable
ipv6 address 2001:DB8:23::2/64
isis ipv6 enable 1
undo dcn
undo dcn mode vlan

interface Ethernet1/0/2
undo shutdown
ipv6 enable
ipv6 address 2001:DB8:24::2/64
isis ipv6 enable 1
undo dcn mode vlan

interface LoopBack0
ipv6 enable
ipv6 address 2001:1::2/128
isis ipv6 enable 1

interface LoopBack1
ip address 2.2.2.2 255.255.255.255

interface NULL0

bgp 100
router-id 2.2.2.2
peer 2001:1::1 as-number 100
peer 2001:1::1 connect-interface LoopBack0
peer 2001:1::3 as-number 100
peer 2001:1::3 connect-interface LoopBack0
peer 2001:1::4 as-number 100
peer 2001:1::4 connect-interface LoopBack0

ipv4-family unicast
undo synchronization

ipv4-family vpnv4
undo policy vpn-target
peer 2001:1::1 enable
peer 2001:1::1 reflect-client
peer 2001:1::1 prefix-sid
peer 2001:1::3 enable
peer 2001:1::3 reflect-client
peer 2001:1::3 prefix-sid
peer 2001:1::4 enable
peer 2001:1::4 reflect-client
peer 2001:1::4 prefix-sid

ne3配置

[ne3]dis current-configuration
!Software Version V800R011C00SPC607B607
!Last configuration was updated at 2025-12-21 22:37:21+00:00
!Last configuration was saved at 2025-12-21 21:30:00+00:00

sysname ne3

set neid 18a8c

vsm on-board-mode enable

snmp-agent trap type base-trap

icmp rate-limit disable

router id 3.3.3.3

ip vpn-instance OA
ipv4-family
route-distinguisher 3:3
vpn-target 1:1 export-extcommunity
vpn-target 1:1 import-extcommunity

segment-routing ipv6
encapsulation source-address 2001:1::3
locator 1 ipv6-prefix 2002:3:: 64 static 32

isis 1
is-level level-2
cost-style wide
network-entity 49.0001.0000.0000.0003.00

ipv6 enable topology ipv6
segment-routing ipv6 locator 1

interface Ethernet1/0/0
undo shutdown
ipv6 enable
ipv6 address 2001:DB8:23::3/64
isis ipv6 enable 1
undo dcn
undo dcn mode vlan

interface Ethernet1/0/1
undo shutdown
ip binding vpn-instance OA
ip address 10.0.32.3 255.255.255.0
undo dcn
undo dcn mode vlan

interface LoopBack0
ipv6 enable
ipv6 address 2001:1::3/128
isis ipv6 enable 1

interface LoopBack1
ip address 3.3.3.3 255.255.255.255

interface NULL0

bgp 100
router-id 3.3.3.3
peer 2001:1::2 as-number 100
peer 2001:1::2 connect-interface LoopBack0

ipv4-family unicast
undo synchronization

ipv4-family vpnv4
policy vpn-target
peer 2001:1::2 enable
peer 2001:1::2 prefix-sid

ipv4-family vpn-instance OA
default-route imported
import-route static
segment-routing ipv6 locator 1
segment-routing ipv6 best-effort

ne4配置

[ne4-bgp]dis current-configuration
!Software Version V800R011C00SPC607B607
!Last configuration was updated at 2025-12-21 22:17:47+00:00
!Last configuration was saved at 2025-12-21 21:30:00+00:00

sysname ne4

set neid 18a8a

vsm on-board-mode enable

snmp-agent trap type base-trap

icmp rate-limit disable

router id 4.4.4.4

ip vpn-instance OA
ipv4-family
route-distinguisher 4:4
vpn-target 1:1 export-extcommunity
vpn-target 1:1 import-extcommunity

ip vpn-instance RD
ipv4-family
route-distinguisher 4:5
vpn-target 2:2 export-extcommunity
vpn-target 2:2 import-extcommunity

segment-routing ipv6
encapsulation source-address 2001:1::4
locator 1 ipv6-prefix 2002:4:: 64 static 32

isis 1
is-level level-2
cost-style wide
network-entity 49.0001.0000.0000.0004.00

ipv6 enable topology ipv6
segment-routing ipv6 locator 1

interface Ethernet1/0/0
undo shutdown
ipv6 enable
ipv6 address 2001:DB8:24::4/64
isis ipv6 enable 1
undo dcn
undo dcn mode vlan

interface Ethernet1/0/1
undo shutdown
undo dcn
undo dcn mode vlan

interface Ethernet1/0/1.31
ip binding vpn-instance OA
ip address 10.0.31.4 255.255.255.0
encapsulation dot1q-termination
dot1q termination vid 31
arp broadcast enable

interface Ethernet1/0/1.41
ip binding vpn-instance RD
ip address 10.0.41.4 255.255.255.0
encapsulation dot1q-termination
dot1q termination vid 41
arp broadcast enable

interface LoopBack0
ipv6 enable
ipv6 address 2001:1::4/128
isis ipv6 enable 1

interface LoopBack1
ip address 4.4.4.4 255.255.255.255

interface NULL0

bgp 100
router-id 4.4.4.4
peer 2001:1::2 as-number 100
peer 2001:1::2 connect-interface LoopBack0

ipv4-family unicast
undo synchronization

ipv4-family vpnv4
policy vpn-target
peer 2001:1::2 enable
peer 2001:1::2 prefix-sid

ipv4-family vpn-instance OA
advertise l2vpn evpn
peer 10.0.31.3 as-number 65100
segment-routing ipv6 locator 1
segment-routing ipv6 best-effort

ipv4-family vpn-instance RD
advertise l2vpn evpn
peer 10.0.41.3 as-number 65100
segment-routing ipv6 locator 1
segment-routing ipv6 best-effort

AR1配置

dis current-configuration
[V200R003C00]

sysname r1

snmp-agent local-engineid 800007DB03000000000000
snmp-agent

clock timezone China-Standard-Time minus 08:00:00

portal local-server load portalpage.zip

drop illegal-mac alarm

router id 1.1.1.1

set cpu-usage threshold 80 restore 75

ip vpn-instance OA
ipv4-family
route-distinguisher 1:1

ip vpn-instance RD
ipv4-family
route-distinguisher 1:2

interface GigabitEthernet0/0/0.11
dot1q termination vid 11
ip binding vpn-instance OA
ip address 10.0.11.1 255.255.255.0
arp broadcast enable

interface GigabitEthernet0/0/0.21
dot1q termination vid 21
ip binding vpn-instance RD
ip address 10.0.21.1 255.255.255.0
arp broadcast enable

interface LoopBack0
ip binding vpn-instance OA
ip address 11.1.1.1 255.255.255.255

interface LoopBack1
ip binding vpn-instance RD
ip address 21.1.1.1 255.255.255.255

ospf 1 vpn-instance OA
vpn-instance-capability simple
area 0.0.0.0
network 10.0.11.1 0.0.0.0
network 11.1.1.1 0.0.0.0

ospf 2 vpn-instance RD
vpn-instance-capability simple //禁止路由环路检测,直接进行路由计算
area 0.0.0.0
network 10.0.21.1 0.0.0.0
network 21.1.1.1 0.0.0.0

AR2配置

dis current-configuration
[V200R003C00]

sysname r2

snmp-agent local-engineid 800007DB03000000000000
snmp-agent

clock timezone China-Standard-Time minus 08:00:00

portal local-server load portalpage.zip

drop illegal-mac alarm

set cpu-usage threshold 80 restore 75

interface GigabitEthernet0/0/0
ip address 10.0.32.2 255.255.255.0

interface LoopBack0
ip address 51.1.1.1 255.255.255.255

ip route-static 0.0.0.0 0.0.0.0 10.0.32.3

AR3配置

dis current-configuration
[V200R003C00]

sysname r3

snmp-agent local-engineid 800007DB03000000000000
snmp-agent

clock timezone China-Standard-Time minus 08:00:00

portal local-server load portalpage.zip

drop illegal-mac alarm

set cpu-usage threshold 80 restore 75

ip vpn-instance OA
ipv4-family
route-distinguisher 3:1

ip vpn-instance RD
ipv4-family
route-distinguisher 3:2

interface GigabitEthernet0/0/0

interface GigabitEthernet0/0/0.11
dot1q termination vid 31
ip binding vpn-instance OA
ip address 10.0.31.3 255.255.255.0
arp broadcast enable

interface GigabitEthernet0/0/0.12
dot1q termination vid 41
ip binding vpn-instance RD
ip address 10.0.41.3 255.255.255.0
arp broadcast enable

interface LoopBack0
ip binding vpn-instance OA
ip address 31.1.1.1 255.255.255.255

interface LoopBack1
ip binding vpn-instance RD
ip address 41.1.1.1 255.255.255.255

bgp 65100
router-id 31.3.3.3

ipv4-family unicast
undo synchronization

ipv4-family vpn-instance OA
network 31.1.1.1 255.255.255.255
peer 10.0.31.4 as-number 100

ipv4-family vpn-instance RD
network 41.1.1.1 255.255.255.255
peer 10.0.41.4 as-number 100

结果验证

sid信息查看

路由查看





各业务联通性测试


版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/8/9 11:13:25

彻底搞懂YOLOv1模型!

0 前言在上一篇文章中,我们已经学习了目标检测发展简史,从R-CNN到YOLO模型,是从单阶段检测到双阶段检测的跨越。同时介绍了YOLOv1的模型结构,并留下一个疑问,YOLO模型仅通过CNN如何就能实现检测任务?今天这…

作者头像 李华
网站建设 2026/8/9 13:02:52

Java毕设选题推荐:基于SpringBoot+Vue的小区物业管理系统基于springboot的物业报修系统的设计与实现【附源码、mysql、文档、调试+代码讲解+全bao等】

博主介绍:✌️码农一枚 ,专注于大学生项目实战开发、讲解和毕业🚢文撰写修改等。全栈领域优质创作者,博客之星、掘金/华为云/阿里云/InfoQ等平台优质作者、专注于Java、小程序技术领域和毕业项目实战 ✌️技术范围:&am…

作者头像 李华
网站建设 2026/8/9 3:32:51

Excalidraw暗黑模式实现:护眼与时尚兼顾

Excalidraw暗黑模式实现:护眼与时尚兼顾 在深夜的代码评审会中,团队成员围坐在屏幕前,白板上密密麻麻的架构图映着刺眼的白光。有人揉了揉眼睛,轻声提议:“能不能换个深色背景?”——这几乎是每个远程协作…

作者头像 李华
网站建设 2026/8/10 7:28:32

Excalidraw robots.txt配置建议:爬虫控制

Excalidraw robots.txt配置建议:爬虫控制 在开源协作工具日益普及的今天,Excalidraw 这类基于 Web 的手绘风格白板平台正被广泛用于技术设计、产品原型和远程会议。它的开放性让团队可以轻松分享链接、即时协作,但这也带来了一个常被忽视的问…

作者头像 李华
网站建设 2026/8/5 9:46:18

Excalidraw手势操作支持:触屏设备优化

Excalidraw 手势操作支持:触屏设备优化 在 iPad 上用手指画出一个架构图,双指一捏完成缩放,再语音说一句“帮我加个数据库”,系统立刻自动补全——这已经不是未来场景,而是今天使用 Excalidraw 的真实体验。随着远程协…

作者头像 李华
网站建设 2026/8/8 21:02:05

开源神器Excalidraw上线AI功能,自然语言秒出架构图

开源神器Excalidraw上线AI功能,自然语言秒出架构图 在一次深夜的技术评审会上,团队正激烈讨论微服务拆分方案。白板前的你手忙脚乱地画着服务调用关系,笔尖刚触到“订单服务”,旁边同事已经皱眉:“这个箭头方向不对&am…

作者头像 李华