Related Documentation
- ACX Series
- show bgp neighbor
- EX Series
- show bgp neighbor
- J Series
- show bgp neighbor
- M Series
- show bgp neighbor
- MX Series
- show bgp neighbor
- PTX Series
- show bgp neighbor
- QFX Series standalone switches
- show bgp neighbor
- T Series
- show bgp neighbor
clear bgp neighbor
List of Syntax
SyntaxSyntax (EX Series Switch and QFX Series)
Syntax
Syntax (EX Series Switch and QFX Series)
Release Information
Command introduced before Junos OS Release 7.4.
Command introduced in Junos OS Release 9.0 for EX Series switches.
Command introduced in Junos OS Release 11.3 for the QFX Series.
malformed-route option introduced in Junos OS Release 13.2.
Description
Perform one of the following tasks:
- Change the state of one or more BGP neighbors to IDLE. For neighbors in the ESTABLISHED state, this command drops the TCP connection to the neighbors and then reestablishes the connection.
- (soft keyword only) Reapply export policies or import policies, respectively, to one or more BGP neighbors without changing their state.
- (soft-inbound keyword only) Reapply export policies or import policies, respectively, and send refresh updates to one or more BGP neighbors without changing their state.
Options
none | — | Change the state of all BGP neighbors to IDLE. |
as as-number | — | (Optional) Apply this command only to neighbors in the specified autonomous system (AS). |
instance instance-name | — | (Optional) Apply this command only to neighbors for the specified routing instance. |
logical-system (all | logical-system-name) | — | (Optional) Perform this operation on all logical systems or on a particular logical system. |
malformed-route | — | (Optional) Remove malformed routes. If a specific neighbor is provided, Junos OS removes malformed routes for that particular neighbor. Otherwise, Junos OS removes malformed routes for all BGP neighbors. To find routes that have malformed attributes, run the show route hidden command, and look for routes marked with MalformedAttr in the AS path field. |
neighbor | — | (Optional) IP address of a BGP peer. Apply this command only to the specified neighbor. |
soft | — | (Optional) Reapply any export policies to neighbors without clearing the state. |
soft-inbound | — | (Optional) Reapply any import policies and send refresh updates to neighbors without clearing the state. |
soft-minimum-igp | — | (Optional) Provides soft refresh of the outbound state when the interior gateway protocol (IGP) metric is reset. |
Required Privilege Level
clear
Related Documentation
- ACX Series
- show bgp neighbor
- EX Series
- show bgp neighbor
- J Series
- show bgp neighbor
- M Series
- show bgp neighbor
- MX Series
- show bgp neighbor
- PTX Series
- show bgp neighbor
- QFX Series standalone switches
- show bgp neighbor
- T Series
- show bgp neighbor
List of Sample Output
clear bgp neighborOutput Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
clear bgp neighbor
user@host> clear bgp neighbor