EdgeSwitch - VoIP OUI-Based Auto-VoIP


Readers will learn how to configure EdgeSwitch OUI-based Auto-VoIP (Voice over IP). Using this feature, IP phones from certain manufacturers or vendors can be identified based on their OUI (Organizationally Unique Identifier) which is the first 24-bit part of the device's mac-address. 

The OUI-based Auto-VoIP feature will automatically place matching devices in the voice VLAN and will associate a CoS (Class of Service) value. Any device that does match the OUI (such as a workstation plugged into the phone) will be placed in the default (untagged) VLAN configured on the port. 


ATTENTION: The Auto-VoIP feature only works with the general port-VLAN configuration method. Please see the EdgeSwitch - VLANs and Tagged / Untagged Ports article for more information on the differences between the general and switchport port-VLAN configuration methods.


There are some OUI values stored on the switch, but it is likely that you will need to manually define the values.




Applicable to the latest EdgeSwitch firmware on all EdgeSwitch models. Knowledge of the Command Line Interface (CLI) and basic networking knowledge is required. Please see the Related Articles below for more information and see the attachments for the configuration used in this article.


Equipment used in this article:

- EdgeSwitch-8-150W (ES-8-150W)

EdgeRouter-4 (ER-4)

- IP phone & workstation

Table of Contents

  1. Network Diagram
  2. Steps: VLAN Configuration & Auto-VoIP
  3. Steps: Testing & Verification
  4. Related Articles

Network Diagram

Back to Top

The network topology is shown below. The following interfaces are in use on the EdgeSwitch (ES) and EdgeRouter (ER):


  • eth0 (WAN)
  • eth1.10 (VIF 10) -
  • eth1.60 (VIF 60) -


  • 0/1 (untagged) - VLAN10
  • 0/1 (voice) - VLAN60
  • 0/8 (tagged) - VLAN10 / VLAN60

The IP phone will be placed in the voice VLAN (VLAN60) based on its OUI value (04:18:D6). The traffic from the workstation behind will arrive untagged and will be placed in VLAN10. The uplink port (0/8) is configured to tag both VLAN10 and VLAN60, which correspond to the VIFs configured on the ER. 

Both the phone and the workstation will receive a DHCP address from the ER. For more information on how to configure a router-on-a-stick please see the EdgeRouter - Router-on-a-Stick with Inter-VLAN Firewall Limiting article.

Steps: VLAN Configuration

Back to Top

In this example, the ES is running in the default configuration with the addition of SSH management access. The first step is to create the VLANs and associate them with specific ports (tagged or untagged).

CLI: Access the command line interface (CLI). You can do this using the CLI button in the GUI or by using a program such as PuTTY.

1. Enter privileged mode.


2. Create the VLANs.

vlan database 
vlan 10,60

3. Enter configuration mode.


4. Assign the ports to the VLANs created above.

The configuration below untags port 0/1 for VLAN10 (pvid). Port 0/8 will be tagged for VLAN10 and VLAN60 (tagging). Afterwards, unneeded VLANs are excluded from participating on the ports.

interface 0/1
description Phone
vlan pvid 10
 vlan participation exclude 1
vlan participation include 10,60

interface 0/8
description EdgeRouter
vlan participation exclude 1
vlan participation include 10,60
vlan tagging 10,60

5. Define the voice VLAN.

auto-voip vlan 60

6. Add the OUI value of the IP phone to the list (04:18:D6 in this example).

auto-voip oui 04:18:D6 oui-desc ubnt

7. Enable OUI-based Auto-VoIP on the required ports.

interface 0/1
auto-voip oui-based

NOTE: Using the auto-voip oui-based global configuration command will enable the feature on all ports.

8. (Optional) Change the associated CoS value (7 is default)

auto-voip oui-based priority 0-7

9. (Optional) Enable LLDP on the port(s).

interface 0/1
 lldp receive
 lldp transmit
 lldp med

10. Exit to operational mode.


11. Save the changes to the startup configuration.

write memory

Steps: Testing & Verification

Back to Top

1. Verify the VLAN creation.

show vlan 

VLAN ID VLAN Name                        VLAN Type
------- -------------------------------- -------------------
1       default                          Default
10      VLAN0010                         Static
60      VLAN0060                         Static

2. Verify the port VLAN state of the interfaces.

show interfaces switchport general 

Intf      PVID  Ingress    Acceptable  Untagged  Tagged   Forbidden  Dynamic
                Filtering  Frame Type  Vlans     Vlans    Vlans      Vlans
--------- ----- ---------- ---------- --------- --------- --------- ---------
0/1       10    Disabled   Admit all  10,60               1
0/8       1     Disabled   Admit all            10,60     1

show interfaces switchport 0/1
Port: 0/1
VLAN Membership Mode: General
General Mode PVID: 10
General Mode Untagged VLANs: 10,60
General Mode Forbidden VLANs: 1

show interfaces switchport 0/8
Port: 0/8
VLAN Membership Mode: General
General Mode PVID: 1 (default)
General Mode Untagged VLANs:
General Mode Tagged VLANs: 10,60
General Mode Forbidden VLANs: 1

3. Verify the mac-address table.

show mac-addr-table              

VLAN ID  MAC Address         Interface              IfIndex  Status
-------  ------------------  ---------------------  -------  ------------
10       F0:9F:C2:09:9A:E5   0/1                    3        Learned
60       04:18:D6:C3:A5:BA   0/1                    3        Learned     

4. Verify the operational state of the Auto-VoIP feature.

show auto-voip 

VoIP VLAN ID................................... 60
Maximum Number of Voice Channels Supported..... 20
Number of Voice Channels Detected.............. 0

show auto-voip oui-table

Telephony OUI  Status         Description
-------------  ----------     -----------
04:18:D6       Configured     ubnt

show auto-voip oui-based interface 0/1

VoIP VLAN ID................................... 60
Priority....................................... 7

Interface  Auto VoIP Mode Operational Status
---------  -------------- ------------------
0/1        Enabled        Up

Related Articles

Back to Top