---
title: "Set up Q-in-Q"
sidebar_label: "Set up Q-in-Q"
sidebar_position: 13
description: "How to enable Q-in-Q on a switch port. How to set up Q-in-Q on a firewall"
---

import Formbricks from '@theme/MDXComponents/Formbricks';
import EditIcon from '@selectel/docux/icons/edit';

# Set up Q-in-Q

1. [Enable Q-in-Q on a switch port](#enable-q-in-q-on-switch-port).
2. [Set up Q-in-Q on a Selectel firewall](#configure-q-in-q).

## 1. Enable Q-in-Q on a switch port \{#enable-q-in-q-on-switch-port}

You can only enable Q-in-Q for a private network.

When enabling Q-in-Q, a short downtime of the private network for servers on the selected VLAN is possible.

1. [Create a ticket](https://my.selectel.ru/tickets/create/) requesting Q-in-Q enablement. In the ticket, specify the VLAN numbers; you can view them in the [control panel](https://my.selectel.ru/servers/network/networks/): from the top menu, click **Products** → **Dedicated Servers** → **Network** → **VLAN tab**.
2. In the created ticket, wait for a response from a Selectel employee confirming that Q-in-Q has been enabled.

## 2. Set up Q-in-Q on a Selectel firewall \{#configure-q-in-q}

1. [Connect to the Selectel firewall via the graphical interface](/firewalls/selectel/connect-to-firewall.mdx).
2. In the **Interfaces** menu, go to the **Assignments**.
3. Open the **QinQs** tab.
4. Click **+ Add**.
5. In the **Parent Interface** field, select the interface for which Q-in-Q will be configured.
6. In the **First level tag** field, enter the VLAN number. You can view it in the [control panel](https://my.selectel.ru/servers/network/networks/): from the top menu, click **Products** → **Dedicated Servers** → **Network** → **VLAN tab**.
7. In the **Tag(s)** field, enter a tag for the VLAN — a number from 1 to 4094.
8. Click **Save**.
9. Open the **Interfaces Assignments** tab.
10. Click **+ Add** in the row of the required Q-in-Q interface.
11. Click the name of the Q-in-Q interface you added.
12. Change the interface parameters.
13. Click **Save**.
14. [Create allow rules](/firewalls/selectel/configure-firewall-rules.mdx) for the interface.

<Formbricks />
