You are previewing Cisco® BGP-4 Command and Configuration Handbook (CCIE Professional Development).
O'Reilly logo
Cisco® BGP-4 Command and Configuration Handbook (CCIE Professional Development)

Book Description

The comprehensive, hands-on guide to all Cisco IOS(r) Software BGP-4 commands

  • The complete BGP-4 command reference

  • invaluable for network designers, engineers, and architects

  • Provides configuration, troubleshooting, and verification scenarios for every possible BGP-4 command supported by Cisco IOS Software that can be implemented on a minimum number of routers

  • Groups BGP-4 commands by area of implementation route aggregation, auto-summary, route filtering, and route advertisement, just to name a few

  • Provides clear and concise commentary on the initial release, purpose, syntax, and usage of each BGP-4 command

  • Offers excellent CCIE certification preparation from one of the CCIE Program Managers

  • Includes supplementary information on regular expressions, route map logic, and RFC 1771, A Border Gateway Protocol 4 (BGP-4)

  • Cisco BGP-4 Command and Configuration Handbook is an exhaustive practical reference to the commands contained within BGP-4. For each command/subcommand, author Bill Parkhurst explains the intended use or function and how to properly configure it. Then he presents scenarios to demonstrate every facet of the command and its use, along with appropriate show and debug commands. Through the discussion of functionality and the scenario-based configuration examples, Cisco BGP-4 Command and Configuration Handbook will help you gain a thorough understanding of the practical side of BGP-4.

    Table of Contents

    1. Copyright
    2. About the Author
    3. Acknowledgments
    4. Introduction
    5. Route Aggregation
      1. aggregate-address address mask
      2. aggregate-address address mask as-set
      3. aggregate-address address mask as-set advertise-map route-map-name
      4. aggregate-address address mask attribute-map route-map-name
      5. aggregate-address address mask route-map route-map-name
      6. aggregate-address address mask summary-only
      7. aggregate-address address mask suppress-map route-map-name
    6. Auto-Summary
      1. auto-summary
    7. BGP-Specific Commands
      1. bgp always-compare-med
      2. bgp bestpath as-path ignore
      3. bgp bestpath med confed
      4. bgp bestpath med missing-as-worst
      5. bgp client-to-client reflection
      6. bgp cluster-id 32-bit_id
      7. bgp confederation identifier AS-number
      8. bgp confederation peers 1_or_more_AS-numbers
      9. bgp dampening
      10. bgp dampening half-life
      11. bgp dampening half-life reuse suppress max-suppress-time
      12. bgp dampening route-map route-map-name
      13. bgp default local-preference local-preference
      14. bgp deterministic-med
      15. bgp fast-external-fallover
      16. bgp log-neighbor-changes
      17. bgp router-id ip-address
    8. Default Information
      1. default-information originate
      2. default-metric metric
    9. BGP Administrative Distance
      1. distance admin-distance ip-source-address ip-address-mask
      2. distance admin-distance ip-source-address ip-address-mask ip-access-list-number
      3. distance bgp external internal local
    10. BGP Route Filtering
      1. distribute-list
    11. BGP Maximum Paths
      1. maximum-paths number-of-paths
    12. Neighbor Configuration
      1. neighbor {ip-address | peer-group-name} advertise-map route-map-name1 non-exist-map route-map-name2
      2. neighbor {ip-address | peer-group-name} advertisement-interval seconds
      3. neighbor {ip-address | peer-group-name} default-originate
      4. neighbor {ip-address | peer-group-name} default-originate route-map route-map-name
      5. neighbor {ip-address | peer-group-name} description text
      6. neighbor {ip-address | peer-group-name} distribute-list {ip-access-list-number-or-name prefix-list-name} in
      7. neighbor {ip-address | peer-group-name} distribute-list {ip-access-list-number-or-name | prefix-list-name}out
      8. neighbor {ip-address | peer-group-name} ebgp-multihop
      9. neighbor {ip-address | peer-group-name} ebgp-multihop maximum-hop-count
      10. neighbor {ip-address | peer-group-name} filter-list as-path-list-number in
      11. neighbor {ip-address | peer-group-name} filter-list as-path-list-number out
      12. neighbor {ip-address | peer-group-name} filter-list as-path-list-number weight weight
      13. neighbor {ip-address | peer-group-name} maximum-prefix prefix-limit
      14. neighbor {ip-address | peer-group-name} maximum-prefix prefix-limit warning-only
      15. neighbor {ip-address | peer-group-name} maximum-prefix prefix-limit threshold-value
      16. neighbor {ip-address | peer-group-name} maximum-prefix prefix-limit threshold-value warning-only
      17. neighbor {ip-address | peer-group-name} next-hop-self
      18. neighbor {ip-address | peer-group-name} password password
      19. neighbor peer-group-name peer-group
      20. neighbor ip-address peer-group peer-group-name
      21. : neighbor {ip-address | peer-group-name} prefix-list prefix-list-name in
      22. neighbor {ip-address | peer-group-name} prefix-list prefix-list-name out
      23. neighbor {ip-address | peer-group-name} remote-as number
      24. neighbor {ip-address | peer-group-name} remove-private-as
      25. neighbor {ip-address | peer-group-name} route-map route-map-name in
      26. neighbor {ip-address | peer-group-name} route-map route-map-name out
      27. neighbor {ip-address | peer-group-name} route-reflector-client
      28. neighbor {ip-address | peer-group-name} send-community
      29. neighbor {ip-address | peer-group-name} shutdown
      30. neighbor {ip-address | peer-group-name} soft-reconfiguration inbound
      31. neighbor {ip-address | peer-group-name} timers keepalive holdtime
      32. neighbor {ip-address | peer-group-name} unsuppress-map route-map-name
      33. neighbor {ip-address | peer-group-name} update-source interface-name
      34. neighbor {ip-address | peer-group-name} version version-number
      35. neighbor {ip-address | peer-group-name} weight default-weight
    13. Route Advertisement
      1. network ip-address
      2. network ip-address mask network-mask
      3. network ip-address backdoor
      4. network ip-address mask network-mask backdoor
      5. network ip-address route-map route-map-name
      6. network ip-address mask network-mask route-map route-map-name
      7. network ip-address weight weight
      8. network ip-address mask network-mask weight weight
    14. Route Redistribution
      1. redistribute protocol
      2. redistribute protocol metric metric
      3. redistribute protocol route-map route-map-name
      4. redistribute protocol route-map route-map-name metric metric
      5. redistribute protocol weight weight
    15. Address Summarization
      1. summary-address
    16. Synchronization
      1. synchronization
    17. BGP Timers
      1. timers bgp keepalive holdtime
    18. BGP show Commands
      1. show ip bgp
      2. show ip bgp | begin line
      3. show ip bgp | exclude line
      4. show ip bgp | include line
      5. show ip bgp prefix
      6. show ip bgp prefix mask
      7. show ip bgp prefix/mask-length
      8. show ip bgp prefix mask longer-prefixes
      9. show ip bgp prefix/mask-length longer-prefixes
      10. show ip bgp prefix | begin line
      11. show ip bgp prefix | exclude line
      12. show ip bgp prefix | include line
      13. show ip bgp prefix mask | begin line
      14. show ip bgp prefix mask | exclude line
      15. show ip bgp prefix mask | include line
      16. show ip bgp prefix/mask-length | begin line
      17. show ip bgp prefix/mask-length | exclude line
      18. show ip bgp prefix/mask-length | include line
      19. show ip bgp prefix mask longer-prefixes | begin line
      20. show ip bgp prefix mask longer-prefixes | exclude line
      21. show ip bgp prefix mask longer-prefixes | include line
      22. show ip bgp prefix/mask-length longer-prefixes | begin line
      23. show ip bgp prefix/mask-length longer-prefixes | exclude line
      24. show ip bgp prefix/mask-length longer-prefixes | include line
      25. show ip bgp cidr-only
      26. show ip bgp cidr-only | begin line
      27. show ip bgp cidr-only | exclude line
      28. show ip bgp cidr-only | include line
      29. show ip bgp community community-number(s)
      30. show ip bgp community community-number(s) exact-match
      31. show ip bgp community community-number(s) | begin line
      32. show ip bgp community community-number(s) | exclude line
      33. show ip bgp community community-number(s) | include line
      34. show ip bgp community community-number(s) | begin line exact-match
      35. show ip bgp community community-number(s) | exclude line exact-match
      36. show ip bgp community community-number(s) | include line exact-match
      37. show ip bgp community-list community-list-number
      38. show ip bgp community-list community-list-number | begin line
      39. show ip bgp community-list community-list-number| exclude line
      40. show ip bgp community-list community-list-number | include line
      41. show ip bgp community-list community-list-number exact-match
      42. show ip bgp community-list community-list-number exact-match | begin line
      43. show ip bgp community-list community-list-number exact-match | exclude line
      44. show ip bgp community-list community-list-number exact-match | include line
      45. show ip bgp dampened-paths
      46. show ip bgp dampened-paths | begin line
      47. show ip bgp dampened-paths | exclude line
      48. show ip bgp dampened-paths | include line
      49. show ip bgp filter-list as-path-access-list
      50. show ip bgp filter-list as-path-access-list | begin line
      51. show ip bgp filter-list as-path-access-list | exclude line
      52. show ip bgp filter-list as-path-access-list | include line
      53. show ip bgp flap-statistics
      54. show ip bgp flap-statistics prefix/mask-length
      55. show ip bgp flap-statistics prefix/mask-length longer-prefixes
      56. show ip bgp flap-statistics prefix/mask-length longer-prefixes | begin regular-expression
      57. show ip bgp flap-statistics prefix/mask-length longer-prefixes | exclude regular-expression
      58. show ip bgp flap-statistics prefix/mask-length longer-prefixes | include regular-expression
      59. show ip bgp flap-statistics prefix/mask-length | begin regular-expression
      60. show ip bgp flap-statistics prefix/mask-length | exclude regular-expression
      61. show ip bgp flap-statistics prefix/mask-length | include regular-expression
      62. show ip bgp flap-statistics prefix
      63. show ip bgp flap-statistics prefix | begin regular-expression
      64. show ip bgp flap-statistics prefix | exclude regular-expression
      65. show ip bgp flap-statistics prefix | include regular-expression
      66. show ip bgp flap-statistics prefix mask
      67. show ip bgp flap-statistics prefix mask | begin regular-expression
      68. show ip bgp flap-statistics prefix mask | exclude regular-expression
      69. show ip bgp flap-statistics prefix mask | include regular-expression
      70. show ip bgp flap-statistics prefix mask longer-prefixes
      71. show ip bgp flap-statistics prefix mask longer-prefixes | begin regular-expression
      72. show ip bgp flap-statistics prefix mask longer-prefixes | exclude regular-expression
      73. show ip bgp flap-statistics prefix mask longer-prefixes | include regular-expression
      74. show ip bgp flap-statistics filter-list list-number
      75. show ip bgp flap-statistics filter-list list-number | begin regular-expression
      76. show ip bgp flap-statistics filter-list list-number | exclude regular-expression
      77. show ip bgp flap-statistics filter-list list-number | include regular-expression
      78. show ip bgp flap-statistics quote-regexp quoted-line
      79. show ip bgp flap-statistics quote-regexp quoted-line | begin regular-expression
      80. show ip bgp flap-statistics quote-regexp quoted-line | exclude regular-expression
      81. show ip bgp flap-statistics quote-regexp quoted-line | include regular-expression
      82. show ip bgp flap-statistics regexp regular-expression
      83. show ip bgp flap-statistics | begin regular-expression
      84. show ip bgp flap-statistics | exclude regular-expression
      85. show ip bgp flap-statistics | include regular-expression
      86. show ip bgp inconsistent-as
      87. show ip bgp inconsistent-as | begin line
      88. show ip bgp inconsistent-as | exclude line
      89. show ip bgp inconsistent-as | include line
      90. show ip bgp neighbors
      91. show ip bgp neighbors | begin line
      92. show ip bgp neighbors | exclude line
      93. show ip bgp neighbors | include line
      94. show ip bgp neighbors ip-address advertised-routes
      95. show ip bgp neighbors ip-address dampened-routes
      96. show ip bgp neighbors ip-address flap-statistics
      97. show ip bgp neighbors ip-address paths
      98. show ip bgp neighbors ip-address paths line
      99. show ip bgp neighbors ip-address received-routes
      100. show ip bgp neighbors ip-address routes
      101. show ip bgp paths
      102. show ip bgp paths line
      103. show ip bgp paths line
      104. show ip bgp paths line
      105. show ip bgp paths | begin line
      106. show ip bgp paths | exclude line
      107. show ip bgp paths | include line
      108. show ip bgp peer-group
      109. show ip bgp peer-group peer-group-name
      110. show ip bgp peer-group peer-group-name summary
      111. show ip bgp summary
      112. show ip bgp summary | begin line
      113. show ip bgp summary | exclude line
      114. show ip bgp summary | include line
    19. BGP clear Commands
      1. clear ip bgp *
      2. clear ip bgp * soft
      3. clear ip bgp * soft in
      4. clear ip bgp * soft out
      5. clear ip bgp * soft in out
      6. clear ip bgp AS-number
      7. clear ip bgp AS-number soft
      8. clear ip bgp AS-number soft in
      9. clear ip bgp AS-number soft out
      10. clear ip bgp AS-number soft in out
      11. clear ip bgp neighbor-ip-address
      12. clear ip bgp neighbor-ip-address soft
      13. clear ip bgp neighbor-ip-address soft in
      14. clear ip bgp neighbor-ip-address soft out
      15. clear ip bgp neighbor-ip-address soft in out
      16. clear ip bgp peer-group peer-group-name
      17. clear ip bgp peer-group peer-group-name soft
      18. clear ip bgp peer-group peer-group-name soft in
      19. clear ip bgp peer-group peer-group-name soft out
      20. clear ip bgp peer-group peer-group-name soft in out
      21. clear ip bgp dampening
      22. clear ip bgp dampening prefix mask
      23. clear ip bgp flap-statistics
      24. clear ip bgp flap-statistics prefix mask
      25. clear ip bgp flap-statistics filter-list list-number
      26. clear ip bgp flap-statistics regexp regular-expression
      27. clear ip bgp neighbor-ip-address flap-statistics
    20. BGP debug Commands
      1. debug ip bgp
      2. debug ip bgp neighbor-ip-address updates
      3. debug ip bgp neighbor-ip-address updates access-list-number
      4. debug ip bgp dampening
      5. debug ip bgp dampening access-list-number
      6. debug ip bgp events
      7. debug ip bgp keepalives
      8. debug ip bgp in neighbor-ip-address updates
      9. debug ip bgp in neighbor-ip-address updates access-list-number
      10. debug ip bgp out neighbor-ip-address updates
      11. debug ip bgp out neighbor-ip-address updates access-list-number
      12. debug ip bgp updates
      13. debug ip bgp updates in
      14. debug ip bgp updates out
      15. debug ip bgp updates access-list-number
      16. debug ip bgp updates access-list-number in
      17. debug ip bgp updates access-list-number out
    21. RFC 1771: Border Gateway Protocol 4
      1. BGP Attributes
      2. BGP Path Selection
      3. Forming a BGP Connection
    22. Regular Expressions
    23. Route Map Logic
      1. Form 1: permit/permit
      2. Form 2: permit/deny
      3. Form 3: deny/permit
      4. Form 4: deny/deny
    24. Index