华为ENSP之MPLS v Intranet

发布于:2022-12-06 ⋅ 阅读:(191) ⋅ 点赞:(0)

实验目的

         MPLS VPN Intranet场景

实验过程

a.AS345底层ospf连通,R1和R3,R5和R6EBGP邻居,R2和R3,R7和R5 OSPF实例邻居

b.ospf实例,BGP互引

        

1.R1.R6互通

AS345底层ospf连通,R3,R5IBGP邻居,建立VPNv4通道

R1和R3,R5和R6建立EBGP实例邻居

R3

bgp 345

 peer 5.5.5.5 as-number 345

 peer 5.5.5.5 connect-interface LoopBack0

 #

 ipv4-family unicast

  undo synchronization

  network 3.3.3.3 255.255.255.255

  peer 5.5.5.5 enable

 #

 ipv4-family vpnv4

  policy vpn-target

  peer 5.5.5.5 enable

 #

 ipv4-family vpn-instance a

  peer 192.168.13.1 as-number 100

R5

bgp 345

 peer 3.3.3.3 as-number 345

 peer 3.3.3.3 connect-interface LoopBack0

 #

 ipv4-family unicast

  undo synchronization

  peer 3.3.3.3 enable

 #

 ipv4-family vpnv4

  policy vpn-target

  peer 3.3.3.3 enable

 ipv4-family vpn-instance a2

  peer 192.168.56.6 as-number 600

R1.R6在BGP里宣告路由,此时BGP全局下没有R1.R6路由

R1.R6路由在BGP实例中

路由可达,R1.R6PING通

2.R2.R7互通

a.

R3

ip vpn-instance b

 ipv4-family

  route-distinguisher 2:2

  vpn-target 2:7 export-extcommunity

  vpn-target 7:2 import-extcommunity

ospf 2 router-id 3.3.3.3 vpn-instance b

 area 0.0.0.0

b.

R5

ip vpn-instance b2

 ipv4-family

  route-distinguisher 7:7

  vpn-target 7:2 export-extcommunity

  vpn-target 2:7 import-extcommunity

ospf 2 router-id 5.5.5.5 vpn-instance b2

 area 0.0.0.0

b.ospf实例,BGP互相导入

R3

ipv4-family vpn-instance b

  import-route ospf 2

ospf 2 router-id 3.3.3.3 vpn-instance b

 import-route bgp

 area 0.0.0.0

R5

ipv4-family vpn-instance b2

  import-route ospf 2

ospf 2 router-id 5.5.5.5 vpn-instance b2

 import-route bgp

 area 0.0.0.0

导入后学习到对方路由

R2pingR7

本文含有隐藏内容,请 开通VIP 后查看

网站公告

今日签到

点亮在社区的每一天
去签到