The encapsulation-mode command sets the encapsulation mode for protocol packets.
The undo encapsulation-mode command restores the default encapsulation mode for protocol packets.
By default, the encapsulation mode is tunnel.
Usage Scenario
You can configure Authentication Header (AH) or Encapsulating Security Payload (ESP) to ensure security. If AH is configured, an AH header is generated; if ESP is configured, an ESP header, an ESP tail, and an ESP authentication field are generated.
Precautions
The encapsulation modes on both IPsec peers must be identical.