Deployment Guide

346 | Border Gateway Protocol IPv4 (BGPv4)
www.dell.com | support.dell.com
Command Modes
EXEC Privilege
Related
Commands
Command
History
clear ip bgp
c
Reset BGP sessions. The soft parameter (BGP Soft Reconfiguration) clears the policies without
resetting the TCP connection.
Syntax
clear ip bgp [vrf vrf-name] * | as-number | ip-address [flat-statistics | soft [in | out]]
Parameters
capture bgp-pdu neighbor Enable capture of an IPv4 BGP neighbor packet.
capture bgp-pdu neighbor (ipv6) Enable capture of an IPv6 BGP neighbor packet.
show capture bgp-pdu neighbor Display BGP packet capture information for an IPv6 address on the
E-Series.
Version 7.8.1.0 Introduced support on S-Series
Version 7.7.1.0 Introduced support on C-Series
Version 7.5.1.0 Introduced
Note: This command is supported only on the C-Series.
vrf vrf-name
Enter the keyword vrf and then the name of the VRF to clear all BGP sessions
corresponding to that VRF.
Note: Use this attribute to clear a BGP instance corresponding to either a
specific address family in a default VRF or an IPv4 address family in a a
non-default VRF.
*
Enter an asterisk ( * ) to reset all BGP sessions.
as-number
Enter the AS number to reset all neighbors belonging to that AS. The range is from 0
to 65535 (2 byte), from 1 to 4294967295 (4 byte), or from 0.1 to 65535.65535
(dotted format).
ip-address
Enter an IP address in dotted decimal format to reset all prefixes from that neighbor.
flap-statistics (OPTIONAL) Enter the keyword flap-statistics to reset the flap statistics on all
prefixes from that neighbor.
soft (OPTIONAL) Enter the keyword soft to configure and activate policies without
resetting the BGP TCP session, that is, BGP Soft Reconfiguration.
Note: If you enter the clear ip bgp ip-address soft command, both inbound
and outbound policies are reset.
in (OPTIONAL) Enter the keyword in to activate only inbound policies.
out (OPTIONAL) Enter the keyword out to activate only outbound policies.
Note: You must execute the clear ip bgp soft out command when ever there
is a change in the local policy. If you do not run this command after a local
policy change, then these policy changes are not reflected in the responses
to the peers route refresh messages.
<1-4294967295>
Enter <1-4294967295> to clear peers with the AS number.
<0.1-65535.65535
>
Enter <0.1-65535.65535> to clear peers with the AS number in dot format.
A.B.C.D
Enter the BGP neighbor address in the A.B.C.D format to clear.
X:X:X:X::X
Enter the BGP neighbor address in the X:X:X:X::X format to clear.