< Home

reset bgp

Function

The reset bgp command resets specified BGP connections.

Format

reset bgp [ vpn-instance vpn-instance-name ipv4-family | vpnv4 ] { all | as-number-plain | as-number-dot | ipv4-address | group group-name | external | internal } [ graceful ] (supported only by the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H)

reset bgp ipv4 all [ graceful ]

reset bgp ipv6 { all | as-number-plain | as-number-dot | group group-name | ipv6-address | ipv4-address | external | internal } [ graceful ] (The ipv4-address is only supported on S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S.)

reset bgp vpls { all | as-number-plain | as-number-dot | ipv4-address | external | internal } (supported only by the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H)

reset bgp vpnv6 { all | as-number-plain | as-number-dot | ipv4-address | group group-name | external | internal } [ graceful ] (supported only by the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H)

reset bgp vpn-instance vpn-instance-name ipv6-family { all | as-number-plain | as-number-dot | ipv6-address | group group-name | external } [ graceful ] (supported only by the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H)

Parameters

Parameter Description Value

vpn-instance vpn-instance-name ipv4-family

Resets the connection of a specified VPN instance enabled with an IPv4 address family.

The value must be an existing VPN instance name.

vpnv4

Resets BGP connections associated with VPNv4.

-

all

Resets all BGP connections.

-

as-number-plain

Specifies the number of the AS, in integer format.

The value is an integer that ranges from 1 to 4294967295.

as-number-dot

Specifies the number of the AS, in dotted notation.

The value is in the format of x.y, where x and y are integers that range from 1 to 65535 and from 0 to 65535, respectively.

ipv4-address

Resets the BGP connection with a specified peer.

It is in dotted decimal notation.

group group-name

Resets the BGP connection with a specified peer group.

The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

external

Resets all EBGP connections.

-

internal

Resets all IBGP connections.

-

ipv4

Resets BGP IPv4 connections.

-

ipv6

Resets BGP IPv6 connections.

-

ipv6-address

Resets the TCP connection with a specified BGP4+ peer (all the routes learned by using the connection are deleted).

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

vpls

Resets BGP connections associated with VPLS.

-

vpnv6

Resets BGP connections associated with VPNv6.

-

vpn-instance vpn-instance-name ipv6-family

Resets the connection of a specified VPN instance enabled with an IPv6 address family.

The value must be an existing VPN instance name.

graceful

Resets BGP connections in GR mode.

-

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The reset bgp command is used to make new BGP configurations take effect.

If a BGP routing policy is configured on the device that does not support Route-Refresh, the reset bgp command can be used to make the new routing policy to take effect.

To reset a BGP connection in GR mode, run the reset bgp command with the graceful parameter specified and run the graceful-restart peer-reset command. If the graceful parameter is not specified in the reset bgp command or if the graceful-restart peer-reset command is not run, the GR reset mode does not take effect, so that routing entries will be deleted for existing sessions, interrupting services. The services will be restored after the BGP peer relationship is reestablished.

The reset bgp ipv4 all command resets all public-network BGP IPv4 connections.

Precautions

After the reset bgp command is run on a device, the TCP connection established by the BGP device and the corresponding peer is reestablished. Exercise caution when running this command.

Example

# Reset all BGP connections.

<HUAWEI> reset bgp all

# Reset BGP connections with the peer 2001:DB8:1::1.

<HUAWEI> reset bgp ipv6 2001:DB8:1::1

# Reset all BGP connections with VPNv6.

<HUAWEI> reset bgp vpnv6 all

# Reset BGP sessions with BGP peers within a specified 2-byte AS number.

<HUAWEI> reset bgp vpnv6 100

# Reset BGP sessions with BGP peers within a specified 4-byte AS number.

<HUAWEI> reset bgp vpnv4 200.300
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >