我有一个 Juniper 路由器r3
,其中一个已建立的 eBGP 会话与路由器t1
( 172.16.0.14
) 和第二个已建立的 eBGP 会话与路由器t2
( 172.16.0.18
)命名。BGP的配置r3
可以看下图:
root@r3> show configuration protocols bgp group t1-t2
type external;
peer-as 65222;
multipath;
neighbor 172.16.0.14;
neighbor 172.16.0.18;
root@r3>
r3
1.1.1.1/32
在两个会话中接收前缀:
root@r3> show route receive-protocol bgp 172.16.0.14 1.1.1.1/32
inet.0: 71 destinations, 84 routes (60 active, 0 holddown, 11 hidden)
Prefix Nexthop MED Lclpref AS path
* 1.1.1.1/32 172.16.0.14 65222 I
root@r3> show route receive-protocol bgp 172.16.0.18 1.1.1.1/32
inet.0: 71 destinations, 84 routes (60 active, 0 holddown, 11 hidden)
Prefix Nexthop MED Lclpref AS path
1.1.1.1/32 172.16.0.18 65222 I
root@r3>
由于multipath
配置选项 the172.16.0.14
和172.16.0.18
都是1.1.1.1/32
前缀的下一跳,以防t1
( 172.16.0.14
)宣布的活动路由的 RID 低于t2
. 但是,只有活动路由计算了两个下一跳:
root@r3> show route 1.1.1.1 detail
inet.0: 71 destinations, 84 routes (60 active, 0 holddown, 11 hidden)
1.1.1.1/32 (2 entries, 1 announced)
*BGP Preference: 170/-101
Next hop type: Router, Next hop index: 0
Address: 0xb634310
Next-hop reference count: 10
Source: 172.16.0.14
Next hop: 172.16.0.14 via ge-0/0/4.0, selected
Session Id: 0x0
Next hop: 172.16.0.18 via ge-0/0/7.0
Session Id: 0x0
State: <Active Ext>
Local AS: 65000 Peer AS: 65222
Age: 2:42
Validation State: unverified
Task: BGP_65222.172.16.0.14+40876
Announcement bits (4): 0-KRT 4-BGP_RT_Background 5-Resolve tree 1 7-BGP_RT_Background
AS path: 65222 I
Accepted Multipath
Localpref: 100
Router ID: 4.4.4.4
BGP Preference: 170/-101
Next hop type: Router, Next hop index: 0
Address: 0xd2ecab0
Next-hop reference count: 9
Source: 172.16.0.18
Next hop: 172.16.0.18 via ge-0/0/7.0, selected
Session Id: 0x0
State: <NotBest Ext>
Inactive reason: Not Best in its group - Active preferred
Local AS: 65000 Peer AS: 65222
Age: 6:54
Validation State: unverified
Task: BGP_65222.172.16.0.18+58923
AS path: 65222 I
Accepted MultipathContrib
Localpref: 100
Router ID: 5.5.5.5
root@r3>
如果两个会话都建立,则转发表:
root@r3> show route forwarding-table destination 1.1.1.1/32 table default
Routing table: default.inet
Internet:
Enabled protocols: Bridging,
Destination Type RtRef Next hop Type Index NhRef Netif
1.1.1.1/32 user 0 ulst 1048580 3
172.16.0.14 ucst 601 4 ge-0/0/4.0
172.16.0.18 ucst 602 5 ge-0/0/7.0
root@r3>
FIB 如果仅172.16.0.14
成立:
root@r3> show route forwarding-table destination 1.1.1.1/32 table default
Routing table: default.inet
Internet:
Enabled protocols: Bridging,
Destination Type RtRef Next hop Type Index NhRef Netif
1.1.1.1/32 user 0 172.16.0.14 ucst 601 5 ge-0/0/4.0
root@r3>
FIB 如果仅172.16.0.18
成立:
root@r3> show route forwarding-table destination 1.1.1.1/32 table default
Routing table: default.inet
Internet:
Enabled protocols: Bridging,
Destination Type RtRef Next hop Type Index NhRef Netif
1.1.1.1/32 user 0 172.16.0.18 ucst 602 7 ge-0/0/7.0
root@r3>
这是 Junos 中的某种优化,仅为活动路由找到递归下一跳?