Configuring BGP

BGP Configuration Examples

To display various routing statistics, use the following commands in EXEC mode, as needed:

Command

Purpose

 

 

Router# show ip bgp prefix

Displays peer groups and peers not in peer groups to which

 

the prefix has been advertised. Also displays prefix attributes

 

such as the next hop and the local prefix.

 

 

Router# show ip bgp cidr-only

Displays all BGP routes that contain subnet and supernet

 

network masks.

 

 

Router# show ip bgp community community-number

Displays routes that belong to the specified communities.

[exact]

 

 

 

Router# show ip bgp community-list

Displays routes that are permitted by the community list.

community-list-number [exact]

 

 

 

Router# show ip bgp filter-list access-list-number

Displays routes that are matched by the specified autonomous

 

system path access list.

 

 

Router# show ip bgp inconsistent-as

Displays the routes with inconsistent originating autonomous

 

systems.

 

 

Router# show ip bgp regexp regexp

Displays the routes that have an autonomous system path that

 

matches the specified regular expression entered on the

 

command line.

 

 

Router# show ip bgp

Displays the contents of the BGP routing table.

 

 

Router# show ip bgp neighbors [neighbor-address]

Displays detailed information on the BGP and TCP

 

connections to individual neighbors.

 

 

Router# show ip bgp neighbors [address]

Displays routes learned from a particular BGP neighbor.

[received-routes routes advertised-routes

 

paths regexp dampened-routes]

 

 

 

Router# show ip bgp paths

Displays all BGP paths in the database.

 

 

Router# show ip bgp peer-group [tag] [summary]

Displays information about BGP peer groups.

 

 

Router# show ip bgp summary

Displays the status of all BGP connections.

 

 

Logging Changes in Neighbor Status

To enable the logging of messages generated when a BGP neighbor resets, comes up, or goes down, use the following command in router configuration mode:

Command

Purpose

 

 

Router(config-router)#bgp log-neighbor-changes

Logs messages generated when a BGP neighbor goes up or

 

down, or resets

 

 

BGP Configuration Examples

The following sections provide BGP configuration examples:

BGP Route Map Examples

BGP Neighbor Configuration Examples

Cisco IOS IP Configuration Guide

IPC-332

Page 378
Image 378
Cisco Systems 78-11741-02 manual BGP Configuration Examples, Logging Changes in Neighbor Status, IPC-332