debug ip bgp
ip-prefix-list
Specifies the IPv4 prefix filter for BGP
debugging information for all VRFs or for a specified VRF.
Parameters
Modes
Privileged EXEC mode
Usage Guidelines
Only one IPv4 prefix filter or prefix list can be configured on a VRF. Prefix filters and prefix lists cannot be configured simultaneously. IPv6 and IPv4 filters are applied separately.
The no form removes the
specified IPv4 prefix filter for BGP debugging information.
Examples
The following example configures IPv4 prefix lists, and specifies these IPv4 prefix filters for BGP debugging information for all VRFs.
device# device(config)# ip prefix-list zzz permit 1.0.6.0/24
device(config)# ip prefix-list zzz permit 1.0.7.0/24
device(config)# ip prefix-list zzz permit 1.0.8.0/24
device(config)# exit
device #debug ip bgp ip-prefix-list zzz
permit 1.0.6.0/24
permit 1.0.7.0/24
permit 1.0.8.0/24
device# debug ip bgp show
BGP: bgp debugging is on
BGP: route-selection debugging is on
BGP: ip-prefix-list zzz debugging is on
permit 1.0.6.0/24
permit 1.0.7.0/24
permit 1.0.8.0/24
May 22 17:52:16:909851:info:fi_debug:debug_logs:1:892058704942203648: BGP: select best route 1.0.8.0/24 load_share (ibgp 1, ip 1), (ebgp 1, ip 1)
May 22 17:52:16:909872:info:fi_debug:debug_logs:1:892058704942203648: BGP: eligible route 0
May 22 17:52:16:909888:info:fi_debug:debug_logs:1:892058704942203648: BGP: 150.0.0.3 Best path down 1.0.8.0/24, remove
May 22 17:52:16:909904:info:fi_debug:debug_logs:1:892058704942203648: BGP: 150.0.0.3 removing bgp route advertisement 1.0.8.0/24
May 22 17:52:16:909927:info:fi_debug:debug_logs:1:892058704942203648: BGP: delete ipv4 route from fwd table for 1.0.8.0/24
May 22 17:52:16:909942:info:fi_debug:debug_logs:1:892058704942203648: BGP: Clearing install flags for 1.0.8.0/24
May 22 17:52:16:909973:info:fi_debug:debug_logs:1:892058704942203648: BGP: select best route 1.0.7.0/24 load_share (ibgp 1, ip 1), (ebgp 1, ip 1)
May 22 17:52:16:909988:info:fi_debug:debug_logs:1:892058704942203648: BGP: eligible route 0
May 22 17:52:16:910001:info:fi_debug:debug_logs:1:892058704942203648: BGP: 150.0.0.3 Best path down 1.0.7.0/24, remove
May 22 17:52:16:910016:info:fi_debug:debug_logs:1:892058704942203648: BGP: 150.0.0.3 removing bgp route advertisement 1.0.7.0/24
May 22 17:52:16:910034:info:fi_debug:debug_logs:1:892058704942203648: BGP: delete ipv4 route from fwd table for 1.0.7.0/24
May 22 17:52:16:910048:info:fi_debug:debug_logs:1:892058704942203648: BGP: Clearing install flags for 1.0.7.0/24
May 22 17:52:16:910076:info:fi_debug:debug_logs:1:892058704942203648: BGP: select best route 1.0.6.0/24 load_share (ibgp 1, ip 1), (ebgp 1, ip 1)
May 22 17:52:16:910089:info:fi_debug:debug_logs:1:892058704942203648: BGP: eligible route 0
May 22 17:52:16:910103:info:fi_debug:debug_logs:1:892058704942203648: BGP: 150.0.0.3 Best path down 1.0.6.0/24, remove
May 22 17:52:16:910116:info:fi_debug:debug_logs:1:892058704942203648: BGP: 150.0.0.3 removing bgp route advertisement 1.0.6.0/24
May 22 17:52:16:910134:info:fi_debug:debug_logs:1:892058704942203648: BGP: delete ipv4 route from fwd table for 1.0.6.0/24
May 22 17:52:16:910157:info:fi_debug:debug_logs:1:892058704942203648: BGP: Clearing install flags for 1.0.6.0/24
May 22 17:52:17:440097:info:fi_debug:debug_logs:1:0: BGP: Adding 1.0.6.0/24 to ipv4 route table(0), bgp next_hop=150.0.0.3
May 22 17:52:17:440230:info:fi_debug:debug_logs:1:0: BGP: Adding 1.0.7.0/24 to ipv4 route table(0), bgp next_hop=150.0.0.3
May 22 17:52:17:440289:info:fi_debug:debug_logs:1:0: BGP: Adding 1.0.8.0/24 to ipv4 route table(0), bgp next_hop=150.0.0.3