14-9 show ip bgp prefixmask-length longer-prefixes

 <  Free Open Study  >  

14-9 show ip bgp prefix/mask-length longer-prefixes

Syntax Description:

  • prefix ” IP address of the prefix to display.

  • mask ” Display prefix with a specific network mask.

  • mask-length ” Bit length of the mask.

Purpose: To display the contents of the local BGP routing table for a specific prefix with a specific mask and any prefixes having a longer mask than the one specified.

Cisco IOS Software Release: 10.0

Example: Display a Specific Prefix from the BGP Routing Table Having a Mask Greater Than or Equal to the Mask Specified in the Command

The following is some sample output from the show ip bgp prefix mask longer-prefixes command. First, list the entire BGP routing table:

 rtrA#  show ip bgp  BGP table version is 90, local router ID is 199.172.15.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      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 *> 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 

Now list entries for the prefix 199.172.2.0 having a mask greater than or equal to 23 bits:

 rtrA#  show ip bgp 199.172.2.0 255.255.254.0 longer-prefixes  BGP table version is 90, local router ID is 199.172.15.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 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 

An alternative form is to use the mask length:

 rtrA#  show ip bgp 199.172.2.0/23 longer-prefixes  BGP table version is 90, local router ID is 199.172.15.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 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 
 <  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