# create-ipsec-phase

The vpn create-ipsec-phase command allows you to create a new IPSec Phase 2 configuration for an existing VPN IPSec connection. This command defines the subnet network peer and additional parameters for the Phase 2 setup.

## Usage

```
cldkctl vpn create-ipsec-phase [flags]
```

## Steps

Follow the steps below to run and view the result of this command:

1. Run the following command in your terminal:

```
cldkctl vpn create-ipsec-phase
```

2. Enter your VPN instance name in the VPN Name field. You can refer to vpn list to obtain or verify your VPN instance name.
3. Enter the public IP address of your VPN in the IP Public field. The public IP can be obtained by referring to vpn list.
4. Enter the subnet address for the IPSec Phase 2 configuration in the IP Subnet field.
5. Enter the IPSec description in the Description IPSec field. The description must match the one used in the existing IPSec configuration. Refer to vpn list-ipsec to verify this information.
6. Enter a custom description in the Description Phase 2 field. This field can be filled freely by the user to label or identify the created Phase 2 configuration.
7. Confirm the process by pressing y for Confirm or n for Cancel.

<figure><img src="/files/52Zu477PGTcEvg5LvmMD" alt=""><figcaption></figcaption></figure>

8. Once successful, the terminal displays **"✓ IPSec Phase 2 successfully created".**

<figure><img src="/files/N5EeprlEY45F21HiFG0s" alt=""><figcaption></figcaption></figure>

## Flags

{% hint style="info" %}
This command supports global flags. Refer to the Global Flags section for details.
{% endhint %}

| Flag       | Description                          |
| ---------- | ------------------------------------ |
| -h, --help | Help for create ipsec phase command. |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-vpn/create-ipsec-phase.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
