企业总部-分支-门点-数据中心使用骨干网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配置

ne1dis 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配置

ne2dis 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配置

ne3dis 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-bgpdis 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信息查看

路由查看




各业务联通性测试


相关推荐
倔强的石头1062 分钟前
【Linux指南】动静态库系列(二):从源码复用到目标文件复用:为什么需要把 .o 打包成库
linux·运维·服务器
woshihuanglaoshi5 分钟前
数据迁移与版本管理 - Flutter在鸿蒙平台实现数据库升级策略
数据库·学习·flutter·华为·harmonyos·鸿蒙·鸿蒙系统
aixingkong9217 分钟前
Atlas 950 1024卡SuperPoD推测分析
网络·人工智能·硬件架构·硬件工程
步步精BBJconn11 分钟前
从GPU服务器到数据中心:AI服务器高压连接器的应用与发展趋势
大数据·运维·服务器·人工智能·科技·物联网
爱写代码的阿木15 分钟前
基于鸿蒙OS开发附近社交游戏平台(八)-聊天组件
华为·个人开发·harmonyos
码农学院2 小时前
基于运维监控体系的网络品牌推广方案:从架构设计到技术实现
运维·网络
咩咩啃树皮8 小时前
第40篇:Vue3组件化开发精讲——组件拆分、复用、父子通信、工程化架构
java·前端·架构
爱写代码的森9 小时前
鸿蒙三方库 | harmony-utils之ImageUtil图片保存到本地详解
服务器·华为·harmonyos·鸿蒙·huawei
REDcker10 小时前
显示分辨率标准对照详解
前端·网络·分辨率·显示·屏幕
世人万千丶10 小时前
参数管理_Flutter在鸿蒙平台路由参数最佳实践
学习·flutter·华为·harmonyos·鸿蒙