Hi All,
I was hoping someone could help explain to me the behavior of some bgp route that I have.
I attached a picture to show the general setup but essentially I want some route to be prefered by one internet connection over another. My question is my route has a protocol next hop of what I would expect (192.168.1.2) as this is where the route was learned from but the next-hop being selected is actually 100.100.100.2 which is just some other interface on the routers that does not even run bgp.
I am curious why it picked that for the next hop instead of simply putting in the interface it learned the route from. This works fine as is, I am just unclear why the protocol next hop and next hop are not the same in this case (both network are directly connected thus are reachable).
I attached an image for clarification.
root@RouterA> show route 8.8.8.8 detail
inet.0: 466569 destinations, 518494 routes (466569 active, 0 holddown, 0 hidden)
8.8.8.0/24 (2 entries, 1 announced)
*BGP Preference: 170/-201
Next hop type: Indirect
Address: 0x27b8990
Next-hop reference count: 161502
Source: 192.168.1.2
Next hop type: Router, Next hop index: 569
Next hop: 100.100.100.2 via ge-0/0/1.0, selected
Protocol next hop: 192.168.1.2
Indirect next hop: 25d8ae0 1048574
State: <Active Int Ext>
Local AS: 42520 Peer AS: 42520
Age: 2w0d 21:34:17 Metric2: 1
Task: BGP_42520.192.168.1.2+64887
Announcement bits (2): 0-KRT 5-Resolve tree 1
AS path: 2777715169 I
Communities: 27777:80
Accepted
Localpref: 200
Router ID: 192.168.1.2
BGP Preference: 170/-101
Next hop type: Router, Next hop index: 565
Address: 0x27b8600
Next-hop reference count: 1290091
Source: 80.80.80.1
Next hop: 80.80.80.1 via ge-0/0/0.0, selected
State: <Ext>
Inactive reason: Local Preference
Local AS: 42520 Peer AS: 7888
Age: 2w0d 8:57:00
Task: BGP_7888.80.80.80.1+179
AS path: 7888 15169 I
Accepted
Localpref: 100
Router ID: 24.226.0.1