华为ENSP之MPLS v Intranet

实验目的

         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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值