clear bgp l2vpn evpn
To reset Border Gateway Protocol (BGP) neighbor session information for Layer 2 Virtual Private Network (L2VPN) address family Ethernet VPN, use the clear bgp l2vpn evpn command in privileged EXEC mode.
clear bgp l2vpn evpn {* | as-number | ip-address [cease | flap-statistics] | external | internal | peer-group peer-group-name | update-group [number | ipv4-address | ipv6-address]} [in [prefix-filter] | out | slow | soft [in [prefix-filter] | out | slow]]
Syntax Description
* |
Specifies that all current BGP sessions will be reset. |
as-number |
Autonomous system number for which to clear and then reset BGP sessions for BGP neighbors. The range is from 1 to 4294967295. |
ip-address |
IP address of the BGP neighbor for which to clear the TCP connection and remove all routes learned from the connection from the BGP table. |
cease |
(Optional) Sends cease notification to the BGP neighbor. |
flap-statistics |
(Optional) Clears flap statistics for the BGP neighbor. |
external |
Clears all external BGP (eBGP) peers. |
internal |
Clears all BGP internal statistics counters. |
peer-group peer-group-name |
Clears the identified BGP peer group. |
update-group |
Clears the identified BGP update group. |
number |
(Optional) Update group number for which to clear update group session information. |
ipv4-address |
(Optional) IPv4 address for which to clear update group session information for the BGP peer. |
ipv6-address |
(Optional) IPv6 address for which to clear update group session information for the BGP peer. |
in |
(Optional) Initiates inbound reconfiguration. If neither the in keyword nor out keyword is specified, both inbound and outbound sessions are reset. |
prefix-filter |
(Optional) Clears the existing outbound route filter (ORF) prefix list to trigger a new route refresh or soft reconfiguration, which updates the ORF prefix list. |
out |
(Optional) Initiates inbound or outbound reconfiguration. If neither the in keyword nor out keyword is specified, both inbound and outbound sessions are reset. |
slow |
(Optional) Clears slow peer status forcefully and moves it to original update group. |
soft |
(Optional) Initiates a soft reset. Does not tear down the session. |
Command Modes
Privileged EXEC (#)
Command History
Release |
Modification |
---|---|
15.4(1)S |
This command was introduced. |
Cisco IOS XE Release 3.11S |
This command was integrated into Cisco IOS XE Release 3.11S. |
Usage Guidelines
The clear bgp l2vpn evpn command can be used to initiate a hard reset or soft reconfiguration. A hard reset tears down and rebuilds the specified peering sessions and rebuilds the BGP routing tables. A soft reconfiguration uses stored prefix information to reconfigure and activate BGP routing tables without tearing down existing peering sessions. Soft reconfiguration uses stored update information, at the cost of additional memory for storing the updates, to allow you to apply new BGP policy without disrupting the network. Soft reconfiguration can be configured for inbound or outbound sessions.
Generating Updates from Stored Information
To generate new inbound updates from stored update information (rather than dynamically) without resetting the BGP session, you must preconfigure the local BGP router using the neighbor soft-reconfiguration inbound command. This preconfiguration causes the software to store all received updates without modification regardless of whether an update is accepted by the inbound policy. Storing updates is memory intensive and should be avoided if possible.
Outbound BGP soft configuration has no memory overhead and does not require any preconfiguration. You can trigger an outbound reconfiguration on the other side of the BGP session to make the new inbound policy take effect.
Use this command whenever any of the following changes occur:
-
Additions or changes to the BGP-related access lists
-
Changes to BGP-related weights
-
Changes to BGP-related distribution lists
-
Changes to BGP-related route maps
Dynamic Inbound Soft Reset
The route refresh capability, as defined in RFC 2918, allows the local router to reset inbound routing tables dynamically by exchanging route refresh requests to supporting peers. The route refresh capability does not store update information locally for non-disruptive policy changes. It instead relies on dynamic exchange with supporting peers. Route refresh is advertised through BGP capability negotiation. All BGP routers must support the route refresh capability.
To determine if a BGP router supports this capability, use the show ip bgp neighbors command. The following message is displayed in the output when the router supports the route refresh capability:
Received route refresh capability from peer.
If all BGP routers support the route refresh capability, use the clear ip bgp command with the in keyword. You need not use the soft keyword, because soft reset is automatically assumed when the route refresh capability is supported.
Note |
After configuring a soft reset (inbound or outbound), it is normal for the BGP routing process to hold memory. The amount of memory that is held depends on the size of routing tables and the percentage of the memory chunks that are utilized. Partially used memory chunks will be used or released before more memory is allocated from the global router pool. |
Examples
The following example configures soft reconfiguration for the inbound session with BGP L2VPN peers in the 45000 autonomous system. The outbound session is unaffected:
Router# clear bgp l2vpn evpn 45000 soft in