< Home

refresh bgp

Function

The refresh bgp command softly resets a BGP connection.

Format

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

refresh bgp ipv6 { all | group group-name | ipv4-address | ipv6-address | external | internal } { export | import } (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)

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

refresh bgp vpn-instance vpn-instance-name ipv6-family { all | ipv6-address | group group-name | external | internal } { export | import } (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)

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

The l2vpn-ad, vpnv4, and vpnv6 parameter are only supported 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

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

The value must be an existing VPN instance name.

vpnv4

Softly resets the BGP connections in a VPNv4 address family.

-

all

Softly resets all the BGP IPv4 connections.

-

ipv4-address

Specifies the IPv4 address of a BGP peer.

It is in dotted decimal notation.

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.

external

Softly resets EBGP connections.

-

internal

Softly resets IBGP connections.

-

export

Triggers outbound soft resetting.

-

import

Triggers inbound soft resetting.

-

ipv6

Softly resets BGP4+ connections.

-

ipv6-address

Specifies the IPv6 address of a BGP4+ peer.

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

vpnv6

Softly resets the BGP connections in a VPNv6 address family.

-

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.

l2vpn-ad

Softly resets the BGP connections related to L2VPN-AD.

-

Views

User view

Default Level

2: Configuration level

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

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

Example

# Perform inbound soft resetting for all BGP connections 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 >