我有一个 BGP 学习的前缀130.130.0.0/24
,带有协议下一跳10.0.2.5
:
root@r2> show route 130.130.0.0 detail
inet.0: 60 destinations, 61 routes (57 active, 0 holddown, 4 hidden)
130.130.0.0/24 (1 entry, 1 announced)
*BGP Preference: 170/-101
Next hop type: Indirect, Next hop index: 0
Address: 0xd30c210
Next-hop reference count: 6
Source: 10.0.3.4
Next hop type: Router, Next hop index: 0
Next hop: 10.0.4.9 via ge-0/0/3.0, selected
Session Id: 0x0
Next hop: 10.0.4.1 via ge-0/0/6.0
Session Id: 0x0
Protocol next hop: 10.0.2.5
Indirect next hop: 0xba9dd80 1048582 INH Session ID: 0x1aa
State: <Active Int Ext>
Local AS: 65001 Peer AS: 65001
Age: 44:28 Metric2: 20
Validation State: unverified
ORR Generation-ID: 0
Task: BGP_65001.10.0.3.4+179
Announcement bits (2): 0-KRT 5-Resolve tree 4
AS path: (65000) 65222 I
Communities: 65412:200
Accepted
Localpref: 100
Router ID: 10.0.3.4
root@r2>
如上所示,10.0.2.5
被解析为下一跳10.0.4.9
(选定)和10.0.4.1
. 但是,输出show route 10.0.2.5
选择 a10.0.4.1
作为下一跳:
root@r2> show route 10.0.2.5
inet.0: 60 destinations, 61 routes (57 active, 0 holddown, 4 hidden)
+ = Active Route, - = Last Active, * = Both
10.0.2.4/30 *[IS-IS/15] 1w5d 02:17:27, metric 20
to 10.0.4.9 via ge-0/0/3.0
> to 10.0.4.1 via ge-0/0/6.0
root@r2> show route forwarding-table matching 10.0.2.4/30 table default
Routing table: default.inet
Internet:
Enabled protocols: Bridging,
Destination Type RtRef Next hop Type Index NhRef Netif
10.0.2.4/30 user 0 10.0.4.1 ucst 595 5 ge-0/0/6.0
root@r2>
为什么 BGPprotocol next hop
使用与 ISIS 不同的下一跳地址?