Clear commands

damping

Syntax

damping [{ip-prefix/ip-prefix-length] [neighbor ip-address]} | [group name]

Context

clear>router>bgp

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears or resets the route damping information for received routes.

Parameters

ip-prefix/ip-prefix-length

Clears damping information for entries that match the IP prefix and prefix length.

Values

ipv4-prefix:

a.b.c.d (host bits must be 0)

ipv4-prefix-length:

0 to 32

neighbor ip-address

Clears damping information for entries received from the BGP neighbor.

Values

ipv4-address: a.b.c.d

group name

Clears damping information for entries received from any BGP neighbors in the peer group.

Values

32 characters maximum

flap-statistics

Syntax

flap-statistics [[ip-prefix/mask] [neighbor ip-address]] | [group group-name] | [regex reg-exp] | [policy policy-name]

Context

clear>router>bgp

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command clears route flap statistics.

Parameters

ip-prefix/mask

Clears route flap statistics for entries that match the specified IP prefix and mask length.

Values

ip-prefix:

a.b.c.d (host bits must be 0)

mask:

0 to 32

neighbor ip-address

Clears route flap statistics for entries received from the specified BGP neighbor.

Values

ipv4-address: a.b.c.d

group group-name

Clears route flap statistics for entries received from any BGP neighbors in the specified peer group.

regex reg-exp

Clears route flap statistics for all entries that have the regular expression and the AS path that matches the regular expression.

policy policy-name

Clears route flap statistics for entries that match the specified route policy.

neighbor

Syntax

neighbor {ip-address | as as-number | external | all} [soft | soft-inbound]

neighbor {ip-address | as as-number | external | all} statistics

neighbor ip-address end-of-rib

Context

clear>router>bgp

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command resets the specified BGP peers. This can cause existing BGP connections to be shut down and restarted.

Parameters

ip-address

Resets the BGP neighbor with the specified IP address.

Values

ipv4-address: a.b.c.d

as as-number

Resets all BGP neighbors with the specified peer AS.

Values

1 to 65535

external

Keyword that resets all EBGP neighbors.

all

Keyword that resets all BGP neighbors.

soft

Keyword that specifies the BGP neighbors reevaluate all routes in the local-RIB against the configured export policies.

soft-inbound

Keyword that specifies BGP neighbors reevaluate all routes in the RIB-In against the configures import policies.

statistics

Keyword that clears the BGP neighbor statistics.

end-of-rib

Keyword that clears the routing information base (RIB).

protocol

Syntax

protocol

Context

clear>router>bgp

Platforms

Supported on all 7210 SAS platforms as described in this document

Description

This command resets the entire BGP protocol.