华为ENSP之 MPLS V Extranet

实验目的

         MPLS VPN Extranet场景

实验过程

1.AS345底层ospf连通,LSP使能MPLS LDP

2.R3.R4分别和R5建立IBGP邻居,和MP-IBGP邻居,VPNv4隧道

3.通过RT值实现R1.R2都能访问R6,彼此不能互访

R3配置举例

ospf 1 router-id 3.3.3.3

 area 0.0.0.0

mpls lsr-id 3.3.3.3

mpls

#

mpls ldp

bgp 345

 router-id 3.3.3.3

 peer 5.5.5.5 as-number 345

 peer 5.5.5.5 connect-interface LoopBack0

 #

 ipv4-family unicast

  undo synchronization

  peer 5.5.5.5 enable

 #

 ipv4-family vpnv4

  policy vpn-target

  peer 5.5.5.5 enable

ASBR建立VPN实例

R3

ip vpn-instance 16

 ipv4-family

  route-distinguisher 100:1

  vpn-target 1:6 export-extcommunity

  vpn-target 6:1 import-extcommunity

interface GigabitEthernet0/0/0

 ip binding vpn-instance 16

 ip address 192.168.13.3 255.255.255.0

ipv4-family vpn-instance 16

  peer 192.168.13.1 as-number 100

R4

ip vpn-instance 26

 ipv4-family

  route-distinguisher 200:2

  vpn-target 2:6 export-extcommunity

  vpn-target 6:2 import-extcommunity

interface GigabitEthernet0/0/0

 ip binding vpn-instance 26

 ip address 192.168.24.4 255.255.255.0

ipv4-family vpn-instance 26

  peer 192.168.24.2 as-number 200

R5

ip vpn-instance 12

 ipv4-family

  route-distinguisher 600:6

  vpn-target 6:1 6:2 export-extcommunity

  vpn-target 1:6 2:6 import-extcommunity

interface GigabitEthernet0/0/0

 ip binding vpn-instance 12

 ip address 192.168.56.5 255.255.255.0

ipv4-family vpn-instance 12

  peer 192.168.56.6 as-number 600

此时路由符合设计,R1.R2上有R6路由,彼此没有

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值