# Clearing BGP Attributes for VPWS

You can use the following clear ip bgp commands to remove specific BGP attributes for the L2VPN address family, and in one case, for the VPWS address family.

Tasks to clear BGP attributes are:

- Clearing BGP Reachability Information for the L2VPN Address Family
- Clearing BGP Route Flap Dampening Information for the L2VPN Address Family
- Clearing the Wait for the End-of-RIB Marker for the L2VPN Address Family

## Clearing BGP Reachability Information for the L2VPN Address Family

To clear BGP reachability information for a specific VPWS instance in the L2VPN address family:

- Issue the clear ip bgp command and specify l2vpn vpws vpwsName.
  host1#clear ip bgp l2vpn soft in

To clear BGP reachability information for all VPLS and VPWS instances in the L2VPN address family:

- Issue the clear ip bgp command and include the l2vpn all keywords.
  host1#clear ip bgp l2vpn all soft in

Use the soft in keywords to trigger inbound soft reconfiguration.

## Clearing BGP Route Flap Dampening Information for the L2VPN Address Family

To clear route flap dampening information for a specific VPWS instance in the L2VPN address family:

- Issue the clear ip bgp dampening command and specify l2vpn vpws vpwsName.
  host1#clear ip bgp l2vpn dampening l2vpn vpws l2vpnBoston

To clear route flap dampening information for all VPLS and VPWS instances in the L2VPN address family:

- Issue the clear ip bgp dampening command and include the l2vpn all keywords.
  host1#clear ip bgp l2vpn all dampening

## Clearing the Wait for the End-of-RIB Marker for the L2VPN Address Family

To clear the wait for receiving an End-of-RIB marker from the peer for all VPWS instances in the L2VPN address family:

- Issue the clear ip bgp wait-end-of-rib command and specify l2vpn vpws vpwsName.
  host1#clear ip bgp l2vpn vpws l2vpnBoston wait-end-of-rib

To clear the wait for receiving an End-of-RIB marker from the peer for all VPLS and VPWS instances in the L2VPN address family:

- Issue the clear ip bgp wait-end-of-rib command and include the l2vpn all keywords.
  host1#clear ip bgp l2vpn all wait-end-of-rib

#### Related Documentation

- Configuring BGP Routing
- clear ip bgp
- clear ip bgp dampening
- clear ip bgp wait-end-of-rib