# Configure VLAN for a Provisioned Phone

Placing voice traffic on a dedicated VLAN (Virtual Local Area Network, a logical network segment carried over your physical switches) separates it from ordinary network data and lets you give calls priority on the wire, which improves audio quality on VoIP (Voice over Internet Protocol) calls. When a phone is managed through Auto Provisioning, you can define its VLAN settings centrally on the PBX (Private Branch Exchange, the phone system that manages your extensions and call routing) and push them down to the device.

## Requirements

Your PBX must be running firmware version `84.18.0.18` or later.

## Before you begin

The phone must already be connected to Cloud Voice through Auto Provisioning and have an extension assigned to it. If you still need to set that up, see:

- [Auto Provision IP Phones Remotely via RPS Method](/pbx/administrator-guide/auto-provision-ip-phones-remotely-rps-method/)
- [Auto Provision IP Phones Remotely with Proxy](/pbx/administrator-guide/auto-provision-ip-phones-remotely-with-proxy/)

## Step 1: Define the VLAN settings on the PBX

:::note
The available VLAN options depend on the phone model, so what you see may differ slightly from the fields described here.
:::

1. Sign in to the PBX web portal and go to **Auto Provisioning > Phones**. Click the edit icon next to the phone you want to change.
2. Scroll to the **VLAN** section and configure whichever of the following applies to your setup.

   :::caution
   The VLAN ID you enter here must match a VLAN that the network switch port the phone plugs into actually carries. If it does not match, the phone loses network connectivity, drops off Auto Provisioning, and stops registering. Confirm the switch port configuration with your network administrator before you change this.
   :::

   **VLAN on the phone's WAN port**

   ![VLAN fields for the phone WAN port, with the WAN Port checkbox, VLAN ID, and Priority list](/images/pbx/phone-wan-port-vlan.png)

   1. Select the **WAN Port** checkbox.
   2. Enter a **VLAN ID**.
   3. Choose a **Priority** for the VLAN. Values run from `0` (lowest) to `7` (highest).

   **VLAN on the phone's PC port**

   ![VLAN fields for the phone PC port, with the PC Port checkbox, VLAN ID, and Priority list](/images/pbx/phone-pc-port-vlan.png)

   1. Select the **PC Port** checkbox.
   2. Enter a **VLAN ID**.
   3. Choose a **Priority** for the VLAN. Values run from `0` (lowest) to `7` (highest).

   **VLAN ID obtained through DHCP**

   ![VLAN fields for DHCP, with the DHCP VLAN checkbox and the Option field](/images/pbx/phone-dhcp-vlan.png)

   1. Select the **DHCP VLAN** checkbox.
   2. In the **Option** field, enter the DHCP (Dynamic Host Configuration Protocol) option the phone should read its VLAN ID from.

      :::note
      To list more than one option, separate the entries with commas.
      :::

3. Click **Save**.

## Step 2: Push the settings to the phone

1. Return to **Auto Provisioning > Phones** and click the refresh icon beside the phone. The portal asks whether you want to reprovision the device.
2. Click **OK** in the confirmation window.

:::caution
Reprovisioning moves the phone onto the new VLAN, which briefly takes it offline and ends any call in progress. Push the settings during a maintenance window or while the phone is idle.
:::

## Result

The phone reprovisions and applies the new VLAN configuration on its own. To confirm the change took effect, review the VLAN settings directly on the phone.
