This command resets peering sessions with all or a subnet of BGP peers. The command arguments specify which peering sessions are reset and the type of reset performed. Soft inbound reset causes BGP to send a Route Refresh request to each neighbor being reset. If a neighbor does not support the Route Refresh capability, then updated policy is applied to routes previously received from the neighbor.
When a change is made to an outbound policy, BGP schedules an outbound soft reset to update neighbors according to the new policy. Use interface specifies if the changes apply to a specific port or to a VLAN.
This command applies to routes for all address families.
Format | clear ip bgp [vrf vrf-name] {* | as-number | ipv4-address | ipv6-address [interface interface-name] | interface interface-name | [listen range network/length]} [soft [in | out] |
Mode | Privileged EXEC |
Parameter | Description |
---|---|
vrf-name | The name of the VRF instance. |
Reset adjacency with every BGP peer | |
as-number | Only reset adjacencies with BGP peers in the given autonomous system |
ipv4-address | Only reset the adjacency with a single specified peer with a given IPv4 peer address. |
ipv6-address | Only reset the adjacency with a single specified peer with a given IPv6 peer address. An adjacency that is formed with the autodetect feature cannot be reset with the command. |
interface | Only reset the adjacency on a specified interface. The adjacency must be formed with IPv6 link-local or with the auto detect feature |
listen range | Reset all adjacency that are included in the listen subnet range. |
soft | (Optional) By default, adjacencies are torn down and reestablished. If the soft keyword is given, BGP resends all updates to the neighbors and reprocesses updates from the neighbors. |
in | out | (Optional) If the in keyword is given, then updates from the neighbor are reprocessed. If the out keyword is given, then updates are resent to the neighbor. If neither keyword is given, then updates are reprocessed in both directions. |