# ipsec clear sa

#### Syntax

ipsec clear sa { all [ state tunnelState ] | tunnel tunnelName } [ phase { 1 | 2 } ]

#### Release Information

Command introduced before JunosE Release 7.1.0.

#### Description

Refreshes ISAKMP/IKE or IPSec SAs. There is no no version.

#### Options

- all—Reinitializes all SAs
- state—Reinitializes SAs on tunnels that are in a specific state
- tunnelState—State of tunnel, up, down, not-present
- tunnel—Specifies that an SA on a specific tunnel is to be reinitialized
- tunnelName—Name of tunnel
- phase—Specifies one of the following types of tunnel to be reinitialized:
  - 1—ISAKMP/IKE tunnels
  - 2—IPSec tunnels

#### Mode

Global Configuration