Routing

 View Only
last person joined: 2 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.  Question on "show bgp summary"

     
    Posted 01-06-2024 09:23

    Hi.

    In some Junos documentation I see the the CLI output of "show bgp summary" mentioning the number of routes received from an established neighbor in place of the "Established" state. For example, in the output below, the cli output mentions  "889/889/889/0" instead of Establ

    lab@vSRX-1> show bgp summary    
    Groups: 3 Peers: 3 Down peers: 2
    Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
    inet.0               889        889          0          0          0          0
    inet6.0                0          0          0          0          0          0
    Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|...
    172.27.255.4     3895077211        417        417       0       1        1:54 889/889/889/0

    Below I have the output (from my lab) mentioning Establ under the 'State' column instead of number of routes.


    jcluser@vMX-addr-0> show bgp summary logical-system R2    
    Threading mode: BGP I/O
    Default eBGP mode: advertise - accept, receive - accept
    Groups: 1 Peers: 1 Down peers: 0
    Table          Tot Paths  Act Paths Suppressed    History Damp State    Pending
    inet.0               
                           0          0          0          0          0          0
    inet6.0              
                           0          0          0          0          0          0
    Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
    10.10.10.1                1          3          2       0       0           0 Establ

    Why are there two different formats for the output of the same CLI command? Are there different output formats for different Junos software versions?

    Thanks,

    Deepak



  • 2.  RE: Question on "show bgp summary"

    Posted 01-08-2024 09:49

    I found PR600308 that seems to speak to this.

    https://prsearch.juniper.net/problemreport/PR600308

    Has something to do with whether or not there is only the default routing-instance or additional ones.



    ------------------------------
    - Aaron
    ------------------------------



  • 3.  RE: Question on "show bgp summary"

     
    Posted 01-09-2024 04:23

    Hi,

    the first output seems to be in line with show bgp summary | Junos OS | Juniper Networks

    The second output could be in line with that too (with a little stretch) if no routes had been received from the peer in the lab. Do you check that with show route receive-protocol | Junos OS | Juniper Networks / show route receive-proto bgp 10.10.10.1 ?

    Regards

    Ulf




  • 4.  RE: Question on "show bgp summary"
    Best Answer

    Posted 01-10-2024 06:09

    Hi Deepak,

    Correct, this was actually the Day 1 behavior of the show bgp summary command.  I think this has to do something with the RIBs, rather than routing instances per se. If you have only inet.0 RIB then you will get the output #1 (with the prefix count in the end). On the other hand, if you also have inet6.0 (or inet.3) you get the output #2. The recent Junos versions have inet6.0 by default, because em1 interface (used for RE-PFE communication) has IPv6 enabled by default on the RE.

    Having in mind that nowadays your chances to have inet.0 only (you can check that with show route summary) on your router is relatively small - you will either run IPv6, MPLS, EVPN-VXLAN ... or you'll use mgmt_junos routing-instance for your router management. So you will probably not come against #1

    However, as mentioned in the PR600308, there is a workaround, if that output difference bothers you.

    On the side note - 20 years ago, when all of us used various home-brewed Perl/Python scripts doing show bgp summary, I recall I had to check the last field of each line - whether it matched regexp [0-9]/[0-9] or not ... and read the next line(s) if not. But nowadays, most people use XML outputs or PyEZ to get prefix counts and other information from BGP peers, so this output difference is just a cosmetic issue anyway.

    Regards,

    Beri



    ------------------------------
    Berislav Todorovic
    ------------------------------