reset bgp [ vpn-instance vpn-instance-name ipv4-family | vpnv4 | vpn-target ] { all | as-number-plain | as-number-dot | ipv4-address | group group-name | external | internal } [ graceful ]
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 ]
reset bgp vpnv6 { all | as-number-plain | as-number-dot | ipv4-address | group group-name | external | internal } [ graceful ]
reset bgp multicast { all | ipv4-address | group group-name | as-number-plain | as-number-dot | internal | external } [ graceful ]
reset bgp vpn-instance vpn-instance-name ipv6-family { all | as-number-plain | as-number-dot | ipv6-address | group group-name | external } [ graceful ]
| Parameter | Description | Value |
|---|---|---|
| vpn-instance vpn-instance-name | Resets the specified BGP VPN instance connections. | The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
| ipv4-family | Resets the BGP connection related to the IPv4 unicast address family. | - |
| vpnv4 | Resets BGP connections associated with Virtual Private Network version 4 (VPNv4). |
- |
| vpn-target | Resets the BGP connection related to VPN-Target. | - |
| all | Resets all the BGP connections. | - |
| as-number-plain | Integral AS number | The value is an integer ranging from 1 to 4294967295. |
| as-number-dot | AS number 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 connections with a specified BGP peer. | It is in dotted decimal notation. |
| group group-name | Resets the BGP connections with the 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 connections associated with IPv4. | - |
| ipv6 | Resets BGP connections associated with IPv6. | - |
| ipv6-address | Resets the TCP connection with the specified BGP4+ peer. Routes learnt through this connection are deleted together. | The prefix is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
| vpnv6 | Resets BGP connections associated with Virtual Private Network version 6 (VPNv6). Only the AntiDDoS8000 and support this parameter. |
- |
| multicast | Resets the Multicast Border Gateway Protocol (MBGP) connections. Only the AntiDDoS1600 support this parameter.Only the AntiDDoS1600 (not including and ) support this parameter. |
- |
| ipv6-family | Resets the BGP connection related to the IPv6 unicast address family. | - |
| graceful | Specifies to reset BGP connections in GR mode. Only the AntiDDoS8000 and support this parameter. | - |
Usage Scenario
The reset bgp command is used to make new BGP configurations take effect.
If a BGP routing policy is configured on the router 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.
After you run this command, the TCP connection is reset, and the neighbor relationship between two peers is reestablished. So, confirm the action before you use the command.