当前位置: 首页 > news >正文

华为mpls vpn跨域方案A

在这里插入图片描述
跨域方案A原理(缺点是两个as如果有多个ce的话,要用多条的物理连接或子接口连接,不实用):
1、pe和P都和单域一样配置,只是asbr-pe配置不同
2、2个asbr-pe配置上面建立ip vpn-instance 实例
3、2个asbr-pe互联接口上一样要绑定vpn实例
3、2个asbr-pe在bgp的vpn实例中建立EBGP邻居
ipv4-fimary vpn-innstance a
peer XXX as //建立邻居

R1

ip vpn-instance a
ipv4-family
route-distinguisher 1:1
vpn-target 100:100 export-extcommunity
vpn-target 100:100 import-extcommunity

mpls lsr-id 1.1.1.1
mpls

mpls ldp

interface GigabitEthernet0/0/0
ip address 10.0.12.1 255.255.255.0
mpls
mpls ldp

interface GigabitEthernet0/0/1
ip binding vpn-instance a
ip address 10.0.17.1 255.255.255.0
ospf enable 2 area 0.0.0.0

interface GigabitEthernet0/0/2

interface NULL0

interface LoopBack0
ip address 1.1.1.1 255.255.255.255

bgp 100
peer 2.2.2.2 as-number 100
peer 2.2.2.2 connect-interface LoopBack0

ipv4-family unicast
undo synchronization
peer 2.2.2.2 enable

ipv4-family vpnv4
policy vpn-target
peer 2.2.2.2 enable

ipv4-family vpn-instance a
import-route ospf 2

ospf 1
area 0.0.0.0
network 0.0.0.0 255.255.255.255

ospf 2 vpn-instance a
import-route bgp
area 0.0.0.0

R2

mpls lsr-id 2.2.2.2
mpls

mpls ldp

interface GigabitEthernet0/0/0
ip address 10.0.12.2 255.255.255.0
mpls
mpls ldp

interface GigabitEthernet0/0/1
ip address 10.0.23.2 255.255.255.0
mpls
mpls ldp

interface GigabitEthernet0/0/2

interface NULL0

interface LoopBack0
ip address 2.2.2.2 255.255.255.255

bgp 100
peer 1.1.1.1 as-number 100
peer 1.1.1.1 connect-interface LoopBack0
peer 3.3.3.3 as-number 100
peer 3.3.3.3 connect-interface LoopBack0

ipv4-family unicast
undo synchronization
peer 1.1.1.1 enable
peer 1.1.1.1 reflect-client
peer 3.3.3.3 enable
peer 3.3.3.3 reflect-client

ipv4-family vpnv4
undo policy vpn-target
peer 1.1.1.1 enable
peer 1.1.1.1 reflect-client
peer 3.3.3.3 enable
peer 3.3.3.3 reflect-client

ospf 1
area 0.0.0.0
network 0.0.0.0 255.255.255.255

R3:

ip vpn-instance a
ipv4-family
route-distinguisher 1:1
vpn-target 100:100 export-extcommunity
vpn-target 100:100 import-extcommunity

mpls lsr-id 3.3.3.3
mpls

mpls ldp

interface GigabitEthernet0/0/0
ip address 10.0.23.3 255.255.255.0
mpls
mpls ldp

interface GigabitEthernet0/0/1
ip binding vpn-instance a
ip address 10.0.34.3 255.255.255.0

interface GigabitEthernet0/0/2

interface NULL0

interface LoopBack0
ip address 3.3.3.3 255.255.255.255

bgp 100
peer 2.2.2.2 as-number 100
peer 2.2.2.2 connect-interface LoopBack0

ipv4-family unicast
undo synchronization
peer 2.2.2.2 enable

ipv4-family vpnv4
policy vpn-target
peer 2.2.2.2 enable

ipv4-family vpn-instance a
peer 10.0.34.4 as-number 200

ospf 1
area 0.0.0.0
network 0.0.0.0 255.255.255.255

R4

ip vpn-instance a
ipv4-family
route-distinguisher 1:1
vpn-target 100:100 export-extcommunity
vpn-target 100:100 import-extcommunity

mpls lsr-id 4.4.4.4
mpls

mpls ldp

interface GigabitEthernet0/0/0
ip binding vpn-instance a
ip address 10.0.34.4 255.255.255.0

interface GigabitEthernet0/0/1
ip address 10.0.41.4 255.255.255.0
mpls
mpls ldp

interface GigabitEthernet0/0/2

interface NULL0

interface LoopBack0
ip address 4.4.4.4 255.255.255.255

bgp 200
peer 10.10.10.10 as-number 200
peer 10.10.10.10 connect-interface LoopBack0

ipv4-family unicast
undo synchronization
peer 10.10.10.10 enable

ipv4-family vpnv4
policy vpn-target
peer 10.10.10.10 enable

ipv4-family vpn-instance a
peer 10.0.34.3 as-number 100

ospf 1
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 10.0.41.4 0.0.0.0

R7

router id 7.7.7.7

interface GigabitEthernet0/0/0
ip address 10.0.17.7 255.255.255.0
ospf enable 1 area 0.0.0.0

interface LoopBack0
ip address 7.7.7.7 255.255.255.255
ospf enable 1 area 0.0.0.0

ospf 1
area 0.0.0.0

R10

mpls lsr-id 10.10.10.10
mpls

mpls ldp

interface GigabitEthernet0/0/0
ip address 10.0.41.10 255.255.255.0
mpls
mpls ldp

interface GigabitEthernet0/0/1
ip address 10.0.111.10 255.255.255.0
mpls
mpls ldp

interface GigabitEthernet0/0/2

interface NULL0

interface LoopBack0
ip address 10.10.10.10 255.255.255.255

bgp 200
peer 4.4.4.4 as-number 200
peer 4.4.4.4 connect-interface LoopBack0
peer 11.11.11.11 as-number 200
peer 11.11.11.11 connect-interface LoopBack0

ipv4-family unicast
undo synchronization
peer 4.4.4.4 enable
peer 11.11.11.11 enable

ipv4-family vpnv4
undo policy vpn-target
peer 4.4.4.4 enable
peer 4.4.4.4 reflect-client
peer 11.11.11.11 enable
peer 11.11.11.11 reflect-client

ospf 1
area 0.0.0.0
network 10.0.41.10 0.0.0.0
network 10.0.111.10 0.0.0.0
network 10.10.10.10 0.0.0.0

R11

ip vpn-instance a
ipv4-family
route-distinguisher 1:1
vpn-target 100:100 export-extcommunity
vpn-target 100:100 import-extcommunity

mpls lsr-id 11.11.11.11
mpls

mpls ldp

interface GigabitEthernet0/0/0
ip address 10.0.111.11 255.255.255.0
mpls
mpls ldp

interface GigabitEthernet0/0/1
ip binding vpn-instance a
ip address 10.0.112.1 255.255.255.0

interface GigabitEthernet0/0/2

interface NULL0

interface LoopBack0
ip address 11.11.11.11 255.255.255.255

bgp 200
peer 10.10.10.10 as-number 200
peer 10.10.10.10 connect-interface LoopBack0

ipv4-family unicast
undo synchronization
peer 10.10.10.10 enable

ipv4-family vpnv4
policy vpn-target
peer 10.10.10.10 enable

ipv4-family vpn-instance a
import-route ospf 2

ospf 1
area 0.0.0.0
network 10.0.111.11 0.0.0.0
network 11.11.11.11 0.0.0.0

ospf 2 vpn-instance a
import-route bgp
area 0.0.0.0
network 10.0.112.1 0.0.0.0

R12

interface GigabitEthernet0/0/0
ip address 10.0.112.2 255.255.255.0

interface GigabitEthernet0/0/1

interface GigabitEthernet0/0/2

interface NULL0

interface LoopBack0
ip address 12.12.12.12 255.255.255.255

ospf 1
area 0.0.0.0
network 10.0.112.2 0.0.0.0
network 12.12.12.12 0.0.0.0

相关文章:

  • 本地文件内容搜索神器AnyTXT Searcher如何搭建与远程访问
  • 数据库故障Waiting for table metadata lock
  • Jvm GC 参数总结「二」
  • 【make/Makefile】Linux下进度条的设计与实现
  • 2-高可用-负载均衡、反向代理
  • Apache Tomcat httpoxy 安全漏洞 CVE-2016-5388 已亲自复现
  • Axure中继器的使用实现表格的增删改查的自定义文件
  • LVS负载均衡器(DR模式)+nginx七层代理+tomcat多实例+php+mysql 实现负载均衡以及动静分离、数据库的调用!!!
  • Rabbitmq 死信取消超时订单
  • olap/clickhouse-编译器优化与向量化
  • 数据结构学习 Leetcode300最长递增子序列
  • YOLOv8改进 | 2023注意力篇 | HAttention(HAT)超分辨率重建助力小目标检测 (全网首发)
  • XXE漏洞 [NCTF2019]Fake XML cookbook1
  • SQL Server 安装教程
  • MySQL——表的增删查改
  • 软件设计模式:UML类图
  • 概率论复习
  • 竞赛保研 python的搜索引擎系统设计与实现
  • 基于YOLOv8的草莓病害检测,加入EMA注意力和GPFN提升病害检测能力
  • [Ray Tracing in One Weekend] 笔记
  • 龙湖集团:今年前4个月销售220.8亿元,4月新增两块土地储备
  • 智利观众也喜欢上海的《好东西》
  • 印巴战火LIVE丨“快速接近战争状态”?印度袭击巴军事基地,巴启动反制军事行动
  • 中国科协发声:屡禁不止的奇葩论文再次敲响学风建设警钟
  • 古埃及展进入百天倒计时,闭幕前168小时不闭馆
  • 逆境之上,万物生长