reset bgp

Use reset bgp to reset BGP sessions for the specified address family.

Syntax

reset bgp [ instance instance-name ] { as-number | ipv4-address [ mask-length ] | all | external | group group-name | internal } ipv4 { multicast | [ unicast ] [ vpn-instance vpn-instance-name ] }

reset bgp [ instance instance-name ] { as-number | ipv6-address [ prefix-length ] | all | external | group group-name | internal } ipv6 { multicast | [ unicast ] [ vpn-instance vpn-instance-name ] }

reset bgp [ instance instance-name ] { as-number | ipv4-address [ mask-length ] | ipv6-address [ prefix-length ] | all | external | group group-name | internal } link-state

Views

User view

Predefined user roles

network-admin

Parameters

instance instance-name: Specifies a BGP instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify this option, the command resets BGP sessions for the default BGP instance.

as-number: Resets BGP sessions to peers in the AS specified by its number in the range of 1 to 4294967295.

ipv4-address: Resets the BGP session to a peer specified by its IPv4 address.

mask-length: Specifies a mask length in the range of 0 to 32. You can use the ipv4-address and mask-length arguments together to specify a subnet. If you specify a subnet, this command resets BGP sessions to all dynamic peers in the subnet.

ipv6-address: Resets the BGP session to a peer specified by its IPv6 address.

prefix-length: Specifies a prefix length in the range of 0 to 128. You can use the ipv6-address and prefix-length arguments together to specify a subnet. If you specify a subnet, this command resets BGP sessions to all dynamic peers in the subnet.

all: Resets all BGP sessions.

external: Resets all EBGP sessions.

group group-name: Resets the BGP sessions to the peers in the peer group specified by its name, a case-sensitive string of 1 to 47 characters.

internal: Resets all IBGP sessions.

ipv4: Resets BGP sessions for IPv4 address family.

ipv6: Resets BGP sessions for IPv6 address family.

link-state: Resets BGP sessions for LS address family.

multicast: Resets BGP sessions for multicast address family.

unicast: Resets BGP sessions for unicast address family.

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a VPN instance, this command resets BGP sessions for the specified address family on the public network.

Usage guidelines

A reset operation enables the router to apply a new route selection policy by re-establishing BGP sessions. This operation breaks down BGP sessions for a short period of time.

By default, the unicast keyword is used if the unicast and multicast keywords are not specified.

Examples

# Reset all BGP sessions for the IPv4 unicast address family.

<Sysname> reset bgp all ipv4