Routing

last person joined: 3 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  Help me understand this BGP route

    Posted 08-07-2013 08:23

    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

     

    bgp.jpg



  • 2.  RE: Help me understand this BGP route

    Posted 08-07-2013 08:38
    Can you paste the output of:

    show route 100.100.100.2


  • 3.  RE: Help me understand this BGP route

    Posted 08-07-2013 09:03
    root@RouterA> show route 100.100.100.2
    
    inet.0: 466996 destinations, 518929 routes (466996 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    100.100.100.0/24   *[Direct/0] 2w0d 22:33:27
                        > via ge-0/0/1.0
    
    root@RouterA> show route 100.100.100.2 detail
    
    inet.0: 466997 destinations, 518930 routes (466997 active, 0 holddown, 0 hidden)
    100.100.100.0/24 (1 entry, 1 announced)
            *Direct Preference: 0
                    Next hop type: Interface
                    Address: 0x27b864c
                    Next-hop reference count: 2
                    Next hop: via ge-0/0/1.0, selected
                    State: <Active Int>
                    Local AS: 42520
                    Age: 2w0d 22:33:29
                    Task: IF
                    Announcement bits (1): 5-Resolve tree 1
                    AS path: I

     



  • 4.  RE: Help me understand this BGP route
    Best Answer

    Posted 08-07-2013 09:08

    Sorry I meant:

    show route 192.168.1.2



  • 5.  RE: Help me understand this BGP route

    Posted 08-07-2013 09:20

    You helped me answer my on question.  Due to some loopback configs I am learning that IP via OSPF and thus the reason why it shows up as the next hop.

     

    Thanks!