3 Replies Latest reply: Aug 25, 2019 7:25 AM by Steven Davidson RSS

    bgp question

    kp

      Hi,

       

       

      R2#show ip bgp

      BGP table version is 2, local router ID is 192.168.23.2

      Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

        r RIB-failure, S Stale

      Origin codes: i - IGP, e - EGP, ? - incomplete

       

        Network      Next Hop Metric LocPrf Weight Path

      * 1.1.1.0/24   192.168.23.3  0 0 1 i

      *>                192.168.12.1  0 0 1 i


      in the above show ip bgp , it does not show the network and it also selected  as the best route , what does it mean   ?


      Thanks

        • 1. Re: bgp question
          Ing_Percy

          Hi!

           

          kp escribió:

           

          R2#show ip bgp

          BGP table version is 2, local router ID is 192.168.23.2

          Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

            r RIB-failure, S Stale

          Origin codes: i - IGP, e - EGP, ? - incomplete

           

            Network      Next Hop Metric LocPrf Weight Path

          * 1.1.1.0/24   192.168.23.3  0 0 1 i

          *>                192.168.12.1  0 0 1 i

          When you have the network 1.1.1.0/24 and after this below appear "in blank" in the "network" column. It means the same subnet (1.1.1.0/24) but with the symbols * (valid) and > (best route)

           

          Then, you have the 1.1.1.0/24 with the Next Hop 192.168.12.1 as valid and best route.

           

          Check the CLN case:

          BGP: understanding #show ip bgp output

           

          Regards!

          • 2. Re: bgp question
            Samer

            kp wrote:

             

            Hi,

             

             

            R2#show ip bgp

            BGP table version is 2, local router ID is 192.168.23.2

            Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,

              r RIB-failure, S Stale

            Origin codes: i - IGP, e - EGP, ? - incomplete

             

              Network      Next Hop Metric LocPrf Weight Path

            * 1.1.1.0/24   192.168.23.3  0 0 1 i

            *>                192.168.12.1  0 0 1 i


            in the above show ip bgp , it does not show the network and it also selected  as the best route , what does it mean   ?


            Thanks

            this above is showing two paths to the same network 1.1.1.0/24 and ">" indicates the best path to "1.1.1.0/24"

             

             

            if you have more networks you will see it more obvious.

            • 3. Re: bgp question
              Steven Davidson

              That's normal output and just means that there is more than one path.  The prefix/prefixlen will only appear in one of the entries.  No idea why they choose to it that way.  Here's what it would look like if there were 16 paths:

               

              R1#show ip bgp | beg ^    N

                  Network          Next Hop            Metric LocPrf Weight Path

              *  192.168.255.2/32 192.168.9.2              0            0 2 i

              *                    192.168.8.2              0            0 2 i

              *                    192.168.7.2              0            0 2 i

              *                    192.168.6.2              0            0 2 i

              *                    192.168.5.2              0            0 2 i

              *                    192.168.4.2              0            0 2 i

              *                    192.168.3.2              0            0 2 i

              *                    192.168.2.2              0            0 2 i

              *                    192.168.16.2            0            0 2 i

              *                    192.168.15.2            0            0 2 i

              *                    192.168.14.2            0            0 2 i

              *                    192.168.13.2            0            0 2 i

              *                    192.168.12.2            0            0 2 i

              *                    192.168.11.2            0            0 2 i

              *                    192.168.10.2            0            0 2 i

              *>                  192.168.1.2              0            0 2 i


              In my opinion it takes away some of the power of regex when they format the show output like this. For instance, this is no longer effective:


              R1#show ip bgp | inc ^ \*>

              *>                   192.168.1.2              0             0 2 i