BGP

From My Notepad
Jump to: navigation, search

http://blog.ioshints.info/2008/04/bgp-convergence-quick-learning-module.html

Web utilities

ARIN AS Lookup

FixedOrbit AS/IP Search Utility

Private AS

Private numbers from 64512 to 65535.

Troubleshooting - Quagga

To see a summary of BGP connections

# show ip bgp summary

Eaxmple:

bgpd# sh ip bgp summary
BGP router identifier 66.242.238.155, local AS number 40447
RIB entries 622000, using 38 MiB of memory
Peers 2, using 5040 bytes of memory

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
X.X.X.X         4 22561  543533   59619        0    0    0 3d21h18m        1
Y.Y.Y.Y         4 40447 1292464  286836        0    0    0 03w5d15h   326829

We have received 1 prefix from the peer X.X.X.X and 326829 from peer Y.Y.Y.Y.

To see details about each BGP neighbor

# show ip bgp neighbors

To see details a BGP neighbor

# show ip bgp neighbors A.B.C.D
# show ip bgp neighbors A.B.C.D prefix-counts

To display routes matching the AS path regular expression

# show ip bgp regexp ^[AS]

Example:

bgpd# sh ip bgp neighbors A.B.C.D prefix-counts
Prefix counts for A.B.C.D, IPv4 Unicast
PfxCt: 326904

Counts from RIB table walk:

              Adj-in: 0
              Damped: 0
             Removed: 0
             History: 0
               Stale: 0
               Valid: 326904
             All RIB: 326904
       PfxCt counted: 326904
             Useable: 326904