SIDEBAR
»
S
I
D
E
B
A
R
«

CCIE RS Workbook | CCIE Security Workbook | CCIE SP Workbook| CCIE Voice Workbook

14-24 show ip bgp prefix/mask-length longer-prefixes | include line

< Free Open Study >

Syntax Description:

  • prefix— IP address of the prefix to display.

  • mask— Display prefix with a specific network mask.

  • line— Regular expression. See Appendix B.

  • mask-length— Bit length of the mask.

Purpose: To display the contents of the local BGP routing table for a specific prefix or a specific prefix/mask using output modifiers.

Cisco IOS Software Release: 10.0

Example: Display a Specific Prefix from the BGP Routing Table Using Output Modifiers

The following is some sample output from the show ip bgp prefix mask longer-prefixes | include line 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

Next, list all the entries for the prefix 199.172.2.0:

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

List only the suppressed entries for the 199.172.2.0 prefixes:

rtrA#show ip bgp 199.172.2.0 255.255.254.0 longer-prefixes | include s

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

s> 199.172.2.0      0.0.0.0                  0         32768 i

s> 199.172.3.0      0.0.0.0                  0         32768 I

Finally, list only the unsuppressed entries for the 199.172.2.0 prefixes:

rtrA#show ip bgp 199.172.2.0 255.255.254.0 longer-prefixes | exclude s



   Network          Next Hop            Metric LocPrf Weight Path

*> 199.172.2.0/23   0.0.0.0                            32768 I


    < Free Open Study >

    Free cisco study workbook download.

     As cisco instructors we provide this free offer to help any one who is interested in being a cisco certificate engineer .
    All the below tips are FREE!!!.

    • Latest cisco certification information.
    • Free advice for any cisco exam.
    • Free tips on how to become a cisco network engineer.
    • Free guides lead to you download any stuff listed on our website.



    Powered by WPSubscribers
    Your privacy will never be compromised

    Comments are closed

    Free cisco study workbook download.
    SIDEBAR
    »
    S
    I
    D
    E
    B
    A
    R
    «
    copyright by nextccie.com