cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1002
Views
0
Helpful
0
Replies

Debug IOS-XR-BGP

Ratheesh mv
Level 1
Level 1

RPL configuration for conditional debug:-

----------------------------------

route-policy TEST
if destination in (1.1.1.1/32) then
pass
else
drop
endif
end-policy
!==========================================================

BGP configuration

----------------

RP/0/0/CPU0:ios#sh running-config router bgp
Tue Feb 16 15:02:23.107 UTC
router bgp 100
bgp router-id 1.1.1.1
address-family ipv4 unicast
network 1.1.1.1/32
!
neighbor 192.168.10.2
remote-as 200
address-family ipv4 unicast
route-policy pass in
route-policy pass out
soft-reconfiguration inbound always

========================================================================

Debug output

------------

RP/0/0/CPU0:ios#debug bgp update 192.168.10.2 route-policy TEST out
Tue Feb 16 14:57:27.207 UTC
RP/0/0/CPU0:ios#clear bgp ipv4 unicast 192.168.10.2 soft out
Tue Feb 16 14:57:31.777 UTC
RP/0/0/CPU0:ios#RP/0/0/CPU0:Feb 16 14:57:33.856 : bgp[1051]: [default-upd] (ip4u): Computing updates for update sub-group 0.1 (Regular)

RP/0/0/CPU0:ios#clear bgp ipv4 unicast 192.168.10.2 soft out
Tue Feb 16 14:57:49.025 UTC
RP/0/0/CPU0:ios#RP/0/0/CPU0:Feb 16 14:57:51.105 : bgp[1051]: [default-upd] (ip4u): Computing updates for update sub-group 0.2 (Regular)

 

==========================================================================================

When I am trying to do conditional debug not getting output however when I tried with un-conditional debug it was working .May I know the problem ?

 

0 Replies 0