MPLS解决BGP路由黑洞问题

在这里插入图片描述
1、利用MPLS解决BGP路由黑洞
2、R1234运行IGP
3、R14运行BGP路由
查看BGP路由表

<r1>dis bgp routing-table 

 BGP Local router ID is 1.1.1.1 
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 Total Number of Routes: 2
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn
    *>   10.1.1.0/24        0.0.0.0         0                     0      i
    *>i  10.2.2.0/24        4.4.4.4         0          100        0      i

4、在R1234上开启MPLS
查看MPLS

<r1>dis mpls lsp
-------------------------------------------------------------------------------
                 LSP Information: LDP LSP
-------------------------------------------------------------------------------
FEC                In/Out Label  In/Out IF                      Vrf Name       
10.1.1.1/32        3/NULL        -/-                                           
1.1.1.1/32         3/NULL        -/-                                           
2.2.2.2/32         NULL/3        -/GE0/0/0                                     
2.2.2.2/32         1024/3        -/GE0/0/0                                     
3.3.3.3/32         NULL/1025     -/GE0/0/0                                     
3.3.3.3/32         1025/1025     -/GE0/0/0                                     
4.4.4.4/32         NULL/1026     -/GE0/0/0                                     
4.4.4.4/32         1026/1026     -/GE0/0/0 
可以看出去往4.4.4.4路由的入标签为1026
在R3上查看
<r3>dis mpls lsp
-------------------------------------------------------------------------------
                 LSP Information: LDP LSP
-------------------------------------------------------------------------------
FEC                In/Out Label  In/Out IF                      Vrf Name       
3.3.3.3/32         3/NULL        -/-                                           
1.1.1.1/32         NULL/1024     -/GE0/0/1                                     
1.1.1.1/32         1024/1024     -/GE0/0/1                                     
2.2.2.2/32         NULL/3        -/GE0/0/1                                     
2.2.2.2/32         1025/3        -/GE0/0/1                                     
4.4.4.4/32         NULL/3        -/GE0/0/0                                     
4.4.4.4/32         1026/3        -/GE0/0/0 
可以看出为次末跳
<r1>dis fib 10.2.2.0 24
  Route Entry Count: 1
Destination/Mask   Nexthop         Flag  TimeStamp     Interface      TunnelID
10.2.2.0/24        10.0.12.2       DGU   t[103]        GE0/0/0        0x5


<r4>dis fib 10.1.1.0 24
  Route Entry Count: 1
Destination/Mask   Nexthop         Flag  TimeStamp     Interface      TunnelID
10.1.1.0/24        10.0.34.3       DGU   t[81]         GE0/0/1        0x1

5、对于BGP路由不会递归到隧道只能递归到出接口的下一跳需要用route recursive-lookup tunnel来激活递归隧道功能

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值