MPLS解决BGP路由黑洞问题

MPLS解决BGP路由黑洞问题_第1张图片
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来激活递归隧道功能

你可能感兴趣的:(网络实验)