Reference Guide
clear ip bgp
Resets BGP IPv4 or IPv6 neighbor sessions.
Syntax
clear ip bgp [vrf vrf-name] {ipv4–address | ipv6–address | * }
Parameters
• vrf vrf-name — (OPTIONAL) Enter the keyword vrf followed by the name of the VRF to clear IPv4 or
IPv6 BGP neighbor sessions corresponding to that VRF.
• IPv4–address — Enter an IPv4 address to clear a BGP neighbor conguration.
• IPv6–address — Enter an IPv6 address to clear a BGP neighbor conguration.
• * — Clears all BGP sessions.
Default Not congured
Command Mode EXEC
Usage Information To reset BGP IPv4 or IPv6 neighbor sessions, use this command.
Example
OS10# clear ip bgp 1.1.15.4
Supported Releases 10.3.0E or later
clear ip bgp *
Resets BGP sessions. The soft parameter (BGP soft reconguration) clears policies without resetting the TCP connection.
Syntax
clear ip bgp * [vrf vrf-name] [ipv4 unicast | ipv6 unicast | soft [in | out]]
Parameters
• * — Enter to clear all BGP sessions.
• vrf vrf-name — (OPTIONAL) Enter the keyword vrf followed by the name of the VRF to clear BGP
session information corresponding to that VRF.
• ipv4 unicast — Enter to clear IPv4 unicast conguration.
• ipv6 unicast — Enter to clear IPv6 unicast conguration.
• soft — (Optional) Enter to congure and activate policies without resetting the BGP TCP session — BGP
soft reconguration.
• in — (Optional) Enter to activate only ingress (inbound) policies.
• out — (Optional) Enter to activate only egress (outbound) policies.
Default Not congured
Command Mode EXEC
Usage Information Use this command to reset BGP sessions.
Example
OS10# clear ip bgp * ipv6 unicast
Supported Releases 10.3.0E or later
Layer 3 329