User's Manual

Table Of Contents
464
Users Manual of CS-6306R
database.
show ip bgp summary
Displays the state of all BGP
connections.
45.4.3.3 Tracking BGP information
To locate the fault and resolve the problem, you need to observe the BGP connection establishment, route
receiving and route forwarding by tracking the BGP information. Perform the following operations:
Command Purpose
debug ip bgp *
Tracks common 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 BGP keepalive message .
debug ip bgp open Tracks the BGP Open message.
debug ip bgp update Tracks the BGP Update message.
45.4.4 BGP Configuration Example
45.4.4.1 BGP route map example
The following example shows how to modify the attributes of the incoming route from neighbors by using the
route map. Set the weight of any route that is received from neighbor 140.222.1.1 and matches the ASPATH
access list aaa to 200. Set the local priority to 250. If the route is declined, other routes are declined.
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 item of route map freddy sets the MED attribute of all routes starting from
autonomous system 690 to 127. The second item enables the routes that do not satisfy the previous
conditions to be sent to neighbor 1.1.1.1:
router bgp 100
neighbor 1.1.1.1 route-map freddy out
!
ip aspath-list abc permit ^690_
ip aspath-list xyz permit .*