User's Manual
461
show ip bgp neighbors
[address]
[
received-routes | routes
|
advertised-
routes
]
Displays the routes learned from the special BGP
neighbor.
show ip bgp paths
Displays the information about all BGP paths in
the database.
show ip bgp summary
Displays the states of all BGP connections.
61.4.3 Tracking the BGP Information
You can observe BGP connection establishment and route transmission/reception by tracking the BGP
information, which helps to locate the troubles and resolve the problems. The commands to track the BGP
information are shown in the following table:
Command Purpose
debug ip bgp *
Tracks the general BGP information.
debug ip bgp all
Tracks all BGP information.
debug ip bgp fsm
Tracks the BGP state machine.
debug ip bgp keepalive
Tracks the KeepAlive packets of BGP.
debug ip bgp open
Tracks the OPEN packets of BGP.
debug ip bgp update
Tracks the UPDATE packets of BGP.
61.5 Examples of BGP Configuration
The following sections provide the examples of BGP configuration:
61.5.1 Example of BGP Route Map
The following example illustrates how to use route-map to change the incoming route attribute from the
neighbor. Set the metric of all routes that come from neighbour 140.222.1.1 and meet the requirement of
ASPATH accessing list “aaa” to 200, local precedence value to 250, and they are accepted, all other routes
will be denied.
router bgp 100
!
neighbor 140.222.1.1 route-map fix-weight in
neighbor 140.222.1.1 remote-as 1
!
route-map fix-weight permit 10
match as-path aaa
set local-preference 250
set weight 200
!
ip aspath-list aaa permit ^690$
ip aspath-list aaa permit ^1800
In the following example, the first entry of route-map “freddy” will set the MED attributes of all routes origining