Skip to main content
Cisco SD-WAN
Support
Product Documentation
Viptela Documentation

clear bgp neighbor

clear bgp neighbor—Reset the peering sessions with a specific BGP neighbor in a VPN (on vEdge routers only).

Command Syntax

clear bgp neighbor ip-address vpn vpn-id [soft (in | out)]

Options

Neighbor Address and VPN
ip-address vpn vpn-id
Reset the connection to the specific BGP neighbor in the specified VPN.
Soft Reset
soft (in| out)
Perform a reset when the routing policy changes so that the new policy can take effect. With a soft reset, the route table is reconfigured and reactivated, but the BGP session itself is not reset. Use the in option to generate inbound route table updates from the BGP neighbor, and use the out option to have the local router send a new set of  updated to the BGP neighbor.
 

Output Fields

After you clear a BGP neighbor connection, the UPTIME field shows no time value until the BGP session re-initializes itself. The STATE field shows "idle" until the session resumes.

Example Output

vEdge# clear bgp neighbor 10.20.25.16 vpn 1
vEdge# show bgp neighbor                  

                      MSG   MSG   OUT                              
VPN  PEER ADDR    AS  RCVD  SENT  Q    UPTIME  STATE  AFI          
--------------------------------------------------------------------
1    10.20.25.16  1   8102  8122  0    -       idle   ipv4-unicast

vEdge# show bgp neighbor 
                      MSG   MSG   OUT                                         
VPN  PEER ADDR    AS  RCVD  SENT  Q    UPTIME      STATE        AFI           
------------------------------------------------------------------------------
1    10.20.25.16  1   7971  7988  0    0:00:48:56  established  ipv4-unicast  

vEdge# clear bgp neighbor 10.20.25.16 vpn 1 soft out
vEdge# show bgp neighbor
VPN  PEER ADDR    AS  RCVD  SENT  Q    UPTIME      STATE        AFI          
------------------------------------------------------------------------------
1    10.20.25.16  1   7986  8004  0    0:00:49:12  established  ipv4-unicast

Release Information

Command introduced in Viptela Software Release 14.1.

Additional Information

clear bgp all
show bgp neighbor

  • Was this article helpful?