# clear ip bgp wait-end-of-rib

#### Syntax

clear ip bgp [ ipAddress | ipv6Address | peer-group peerGroupName
| * ] [ vrf vrfName ]
[ ipv4 unicast | ipv4 multicast | vpnv4 unicast | l2vpn all | l2vpn vpls vplsName |
l2vpn vpws vpwsName | route-target signaling ] wait-end-of-rib

#### Release Information

Command introduced before JunosE Release 7.1.0.
l2vpn keyword added in JunosE Release 7.1.0.
ipv6Address variable added in JunosE Release 8.0.0.
route-target signaling keywords added in JunosE Release 8.2.0.
all, vpls, and vpws keywords and vplsName and vpwsName variables added in JunosE Release 9.3.0.

#### Description

Brings down the underlying TCP connection and then brings it back up again, causing both peers to resend their complete BGP routing table, but clears the specified peer from the set of peers for which BGP is waiting to receive an End-of-RIB marker after a peer restart. Hard clearing a peer has the same effect for that peer. There is no no version.

#### Options

- ipAddress—IP address of identified BGP neighbor to clear
- ipv6Address—IPv6 address of identified BGP neighbor to clear
- peerGroupName—Name of a BGP peer group to clear
- *—Clears all connections
- vrfName—Name of a virtual routing and forwarding instance to clear
- ipv4 unicast—Clears the IPv4 unicast routing table; the default option
- ipv4 multicast—Clears the IPv4 multicast routing table
- vpnv4 unicast—Clears the VPNv4 unicast routing and forwarding table
- l2vpn all—Clears the L2VPN reachability information for all VPLS and VPWS instances in the L2VPN address family
- l2vpn vpls vplsName—Clears the L2VPN reachability information for the VPLS instance with the name vplsName
- l2vpn vpws vpwsName—Clears the L2VPN reachability information for the VPWS instance with the name vpwsName
- route-target signaling—Clears the route-target membership information

#### Mode

Privileged Exec

#### Related Documentation

- Clearing BGP Attributes for L2VPNs and Clearing BGP Attributes for VPLS in the JunosE BGP and MPLS Configuration Guide