[Yandex Cloud documentation](../../index.md) > [Yandex Virtual Private Cloud](../index.md) > [Tutorials](index.md) > Cloud Interconnect > Creating a direct trunk and a public connection in it

# Creating a direct trunk and a public connection in it

The process of activating the Yandex Cloud Interconnect service can be logically divided into the following stages:

1. [Creating a trunk](#trunk-create).
1. [Creating a public connection in the trunk](#pub-create).

## Setting up a direct trunk {#trunk-create}

In this tutorial, we will set up a direct trunk.

### Getting started {#trunk-prep}

* See our [guides](../../interconnect/concepts/index.md) to learn how this service works.
* Select a [point of presence](../../interconnect/concepts/pops.md) for the [trunk](../../interconnect/concepts/trunk.md).
* Select the type of an [optical transceiver](../../interconnect/concepts/transceivers.md) for Yandex Cloud equipment cross-connection in the [point of presence](../../interconnect/concepts/pops.md). We will reserve a compatible transceiver port for you on the Yandex Cloud endpoint. You will need to buy a compatible transceiver to install on your endpoint.
* Select the [connection capacity](../../interconnect/concepts/capacity.md).
* If you work with a Yandex Cloud solution architect, discuss with them and agree on a Yandex Cloud Interconnect service setup plan.

### Contacting support for a new partner trunk {#trunk-ticket}

Create a [new support ticket](https://center.yandex.cloud/support) to reserve a port on the Yandex Cloud equipment and set up a trunk.

Follow this request format:




Where:

* `client`: Company name.
* `folder-id`: [ID of the folder](../../resource-manager/operations/folder/get-id.md) that will receive Cloud Interconnect monitoring metrics.
* `point of presence`: [Point of presence code](../../interconnect/concepts/pops.md).
* `transceiver type`: [Type of a cross connect transceiver](../../interconnect/concepts/transceivers.md).
* `connection capacity`: [Bandwidth](../../interconnect/pricing.md) in Mbps.


### Support team's response to the your ticket {#trunk-ticket-resp}

Once the trunk setup has been completed, the support team will send you the following information.

Support response example:



Where: 

* `trunk_id`: New Cloud Interconnect trunk ID.
* `pop`: [Point of presence](../../interconnect/concepts/pops.md) code.
* `rack`: Yandex Cloud equipment location at the point of presence.
* `unit`: Number between 1 and 45 that shows where your equipment is located in the Yandex Cloud rack.
* `port`: Number between 1 and 48 specifying the port number for cross connection.


### Monitoring the trunk status {#trunk-check}

Use the [monitoring](../../interconnect/concepts/monitoring.md#trunk-mon) service to track when the physical port of the trunk on the Yandex Cloud endpoint transitions to the operational state. If there are any issues, contact support for diagnostics and troubleshooting.

A private or public connection can only be established after the physical port of the trunk becomes operational.

## Setting up a public connection {#pub-create}

To add a public connection to an existing trunk, create a [new support ticket](https://center.yandex.cloud/support).

### Contacting support for a public connection {#pub-ticket}

Follow this request format:
```s
Subject: [CIC] Add a public connection to an existing trunk.

Request text:
Please add a public connection to an existing trunk.
Connection settings:

trunk_id: euus5dfgchu2********
vlan_id: 101
ipv4_peering:
  peer_bgp_asn: 65001
  #cloud_bgp_asn: 200350
allowed-public-services:
  - storage.yandexcloud.net
  - transcribe.api.cloud.yandex.net
is_nat_extra_ip_required: false
```

Where:

* `trunk_id`: Trunk ID you got from support in the previous step.
* `vlan_id`: Public trunk connection 802.1Q `VLAN-ID`. This value is selected by the customer. It must be different from the `VLAN-ID` values of other private connections in this trunk.
* `peer_bgp_asn`: Customer endpoint [BGP ASN](../../interconnect/concepts/priv-con.md#bgp-asn) in ASPlain format. This value is selected by the customer.
* `allowed-public-services`: `FQDN API Endpoints` of [services](../../interconnect/concepts/pub-con.md#svc-list) you want to access through this public connection.
* `is_nat_extra_ip_required`: Indicates whether the customer needs a `/32` subnet prefix (in addition to the point-to-point `/31` subnet prefix) to implement [NAT](../../interconnect/concepts/pub-con.md#svc-nat). By default, this value is `false`, which means no additional subnet prefix is allocated.
* `folder_id` (optional): Folder to store public connection monitoring metrics. If left empty, monitoring metrics will be stored in the folder you specified when creating the trunk.

### Support team's response to your ticket {#pub-ticket-resp}

Once the new public connection has been added, the support team will message you its ID.

Here is an example of the support response to a request for a new public connection (for reference only):
```s
id: cf3qdug4fsf7********
ipv4_peering:
  peering_subnet: 178.210.118.46/31
  peer_ip: 178.210.118.46
  cloud_ip: 178.210.118.47
  peer_bgp_asn: 65001
  #cloud_bgp_asn: 200350
allowed-public-services:
  - storage.yandexcloud.net
  - transcribe.api.cloud.yandex.net
```
Where:

* `id`: Public connection ID.
* `peering_subnet`: [Point-to-point](../../interconnect/concepts/pub-con.md#pub-address) BGP peering subnet prefix from the Yandex Cloud [address pool](../concepts/ips.md).
* `peer_ip`: Customer endpoint IP address on the point to point BGP peering subnet assigned by Yandex Cloud.
* `cloud_ip`: Yandex Cloud endpoint on the point to point BGP peering subnet assigned by Yandex Cloud.
* `nat_subnet`: Additional Yandex Cloud pool subnet prefix to implement [NAT](../../interconnect/concepts/pub-con.md#pub-nat).
* `allowed-public-services`: `FQDN API Endpoints` of services accessible through the new public connection.

### Public connection status monitoring {#pub-check}

* Use the [monitoring](../../interconnect/concepts/monitoring.md#private-mon) service to see when your public connection BGP session starts on the Yandex Cloud endpoint.
* The support team will notify you once they provide access to the requested Yandex Cloud services. The configuration process usually takes up to one business day.
* Check whether the Yandex Cloud services are accessible from your endpoint through the new public connection and inform the support team about the results.
* If there are any IP connectivity issues, contact support for diagnostics and troubleshooting.