Technical Documentation

clear bgp neighbor

Syntax

clear bgp neighbor <as as-number><instance instance-name><logical-system (all | logical-system-name)><neighbor><soft | soft-inbound><soft-minimum-igp>

Syntax (EX Series Switch)

clear bgp neighbor <as as-number><instance instance-name><neighbor><soft | soft-inbound><soft-minimum-igp>

Release Information

Command introduced before Junos OS Release 7.4.

Command introduced in Junos OS Release 9.0 for EX Series switches.

Description

Perform one of the following tasks:

  • Change the state of one or more Border Gateway Protocol (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 or 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.

neighbor

(Optional) IP address of a BGP peer. Apply this command only to the specified neighbor.

soft

(Optional) Reapply any export policies and send refresh updates 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 Topics

List of Sample Output

clear bgp neighbor

Output 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

Published: 2010-07-12

Help
|
My Account
|
Log Out