14-4 show ip bgp include line

 <  Free Open Study  >  

14-4 show ip bgp include line

Syntax Description:

  • line ” Regular expression. See Appendix B, "Regular Expressions."

Purpose: To display the contents of the local BGP routing table.

Cisco IOS Software Release: 10.0

Example: Display the BGP Routing Table

The following is some sample output from the show ip bgp command:

 rtrA#  show ip bgp  BGP table version is 9, local router ID is 200.1.4.1 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete    Network          Next Hop            Metric LocPrf Weight Path *> 199.172.1.0      172.17.1.2               0             0 1 i *> 199.172.2.0      172.17.1.2               0             0 1 i *> 199.172.3.0      172.17.1.2               0             0 1 i *> 199.172.4.0      172.17.1.2               0             0 1 i *> 200.1.1.0        0.0.0.0                  0         32768 i *s 200.1.2.0        0.0.0.0                  0         32768 i *> 200.1.2.0/23     0.0.0.0                            32768 i *s 200.1.3.0        0.0.0.0                  0         32768 i *> 200.1.4.0        0.0.0.0                  0         32768 i *>i156.26.1.0       10.1.1.2                 0             0 i 

The following list describes the various fields displayed when using the show ip bgp command:

  • BGP table version ” Whenever the BGP table is changed, the version number is incremented.

  • local router ID ” The highest IP address assigned to an interface. If loopbacks are used, the router ID is the highest IP address assigned to a loopback interface. The router ID can be changed using the bgp router-id configuration command (see section 3-17).

  • Status codes

    s ” The entry is suppressed (see Chapter 8, section 8-32).

    * ” The entry is valid.

    d ” The prefix is dampened.

    h ” Dampening is enabled for the prefix (see sections 3-9 through 3-12).

    > ” If there are multiple entries for the prefix, this indicates the best route.

    i ” The prefix was learned via IBGP. This is the i to the left of the network entry.

  • Origin codes

    i ” Routes installed using the network command.

    e ” Routes learned via EGP.

    ? ” Routes learned via redistribution.

  • Network ” Prefix entry in the table. If a mask is not listed, the prefix is using the standard mask for the entry's class.

  • Next Hop ” Next-hop attribute advertised by the BGP neighbor. A value of 0.0.0.0 indicates that the prefix originated locally (see section 8-17).

  • Metric ” Value of the multi-exit discriminator advertised by the BGP neighbor.

  • LocPrf ” Local preference value. The default is 100.

  • Weight ” Weight assigned to the prefix. Local routes default to 32768. Unless set, the weight of received routes is set to 0.

  • Path ” A list of the autonomous system paths leading back to the prefix.

List the 199 prefixes in the BGP routing table:

 rtrA#  show ip bgp  include 199  BGP table version is 90, local router ID is 199.172.15.1 *> 199.172.1.0      0.0.0.0                  0         32768 i s> 199.172.2.0      0.0.0.0                  0         32768 i *> 199.172.2.0/23   0.0.0.0                            32768 i s> 199.172.3.0      0.0.0.0                  0         32768 i *> 199.172.4.0      0.0.0.0                  0         32768 I 

List everything but the 199 prefixes in the BGP routing table:

 ce2red#  show ip bgp   exclude 199  Status codes: s suppressed, d damped, h history, * valid, > best, i - internal Origin codes: i - IGP, e - EGP, ? - incomplete Network          Next Hop            Metric LocPrf Weight Path *> 200.1.1.0        172.17.1.1               0             0 2 i *> 200.1.2.0        172.17.1.1               0             0 2 i *> 200.1.3.0        172.17.1.1               0             0 2 i *> 200.1.4.0        172.17.1.1               0             0 2 I 
 <  Free Open Study  >  


Cisco[r] BGP-4 Command and Configuration Handbook
Cisco BGP-4 Command and Configuration Handbook
ISBN: 1587055732
EAN: 2147483647
Year: 2001
Pages: 300

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net