reset bgp (User view)

Function

The reset bgp command resets specified BGP connections.

Format

reset bgp ipv6 { as-number | ipv4-address | external | internal | group group-name }

reset bgp ipv6 all

reset bgp ipv6 ipv6-address

reset bgp vpnv6 { all | as-number | ipv4-address | ipv6-address | external | internal | group group-name }

reset bgp vpn-instance vpn-instance-name ipv6-family { all | as-number | ipv6-address | external | internal | group group-name }

reset bgp vpn-instance vpn-instance-name ipv6-family ipv4-address

reset bgp flow ipv6 { all | as-number | ipv4-address | ipv6-address | external | internal }

Parameters

Parameter Description Value
as-number

Resets BGP connections with peers in ASs expressed 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.

external

Resets all EBGP connections.

-

internal

Resets all IBGP connections.

-

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.

ipv6

Resets BGP IPv6 connections.

-

all

Resets all BGP connections.

-

ipv6-address

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

The address is in the format of X:X:X:X:X:X:X:X.

vpnv6

Resets BGP connections associated with VPNv6.

-

vpn-instance vpn-instance-name

Resets the connection of a specified VPN instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

ipv6-family

IPv6 address family.

-

flow

Resets BGP IPv4 connections in the BGP-Flow address family view.

-

Views

User view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp execute

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.

Configuration Impact

This command resets all TCP connections established between BGP peers and therefore results in the re-establishment of the BGP peer relationships. Exercise caution when running this command.

Example

# Reset BGP sessions with BGP peers within a specified 2-byte AS number.
<HUAWEI> reset bgp vpnv6 100
# Reset BGP connections with the peer 2001:DB8:1::9.
<HUAWEI> reset bgp ipv6 2001:DB8:1::9
# Reset all BGP connections with VPNv6.
<HUAWEI> reset bgp vpnv6 all
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >