refresh bgp

Function

The refresh bgp command softly resets a BGP connection. BGP soft reset can be used to refresh the BGP routing table and apply new routing policies, without closing any BGP connection.

Format

refresh bgp { all | ipv4-address | external | internal | group group-name | ipv6-address } { export | import }

refresh bgp vpnv4 { all | ipv4-address | ipv6-address | external | internal | group group-name } { export | import }

refresh bgp vpn-instance vpn-instance-name ipv4-family { all | ipv4-address | external | internal | group group-name } { export | import }

refresh bgp vpnv6 { all | ipv4-address | ipv6-address | external | internal | group group-name } { export | import }

refresh bgp vpn-instance vpn-instance-name ipv6-family { all | ipv6-address | external | internal | group group-name } { export | import }

refresh bgp flow { all | ipv4-address | external | internal } { export | import }

refresh bgp vpn-instance vpn-instance-name ipv6-family ipv4-address { export | import }

refresh bgp labeled { all | ipv4-address | external | internal | group group-name } { export | import }

refresh bgp rpd { all | ipv4-address | external | internal } { export | import }

refresh bgp vpn-instance vpn-instance-name labeled { all | ipv4-address | external | internal | group group-name } { export | import }

Parameters

Parameter Description Value
all

Softly resets all the BGP IPv4 connections.

-

ipv4-address

Specifies the IPv4 address of a BGP peer.

It is in dotted decimal notation.

external

Softly resets EBGP connections.

-

internal

Softly resets IBGP connections.

-

group group-name

Specifies the name of a BGP 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-address

Specifies the IPv6 address of a BGP4+ peer.

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

export

Triggers outbound soft resetting.

-

import

Triggers inbound soft resetting.

-

vpnv4

Softly resets the BGP connections in a VPNv4 address family.

-

vpn-instance vpn-instance-name

Softly 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.

ipv4-family

IPv4 address family.

-

vpnv6

Softly resets the BGP connections in a VPNv6 address family.

-

ipv6-family

IPv6 address family.

-

flow

Softly resets the BGP IPv4 connections in the BGP-Flow address family view.

-

labeled

Softly resets the BGP connections related to unicast labeled address family.

-

rpd

Softly resets the BGP connections related to RPD.

-

Views

User view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp execute

Usage Guidelines

Usage Scenario

If a device's peer supports route-refresh, the refresh bgp command can be used on the device to softly reset the BGP connection with the peer. BGP soft resetting can be used to refresh the BGP routing table and apply new routing policies, without closing any BGP connection.

Prerequisites

Configuring BGP soft resetting requires that the peers support the route-refresh capability.

Precautions

Assume that a device supports route-refresh and is configured with the peer keep-all-routes command. After the refresh bgp command is run on the device, the device does not refresh its routing table.

Example

# Perform a soft reset on all BGP connections in the inbound direction to make new configurations take effect.
<HUAWEI> refresh bgp all import
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >