EdgeSwitch - OUI-Based Auto-VoIP


Readers will learn how to configure EdgeSwitch OUI-Based Auto-VoIP (Voice over IP). Using this feature, IP phones can be identified based on their OUI (Organizationally Unique Identifier).

Applicable to the latest EdgeOS firmware on all EdgeRouter models. Please see the Related Articles below for more information.
Device used in this article:

Table of Contents

  1. Network Diagram
  2. Auto-VoIP and VLAN Configuration
  3. Related Articles

Network Diagram

Back to Top

The network topology is shown below and the following interfaces are in use on the EdgeRouter:


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


  • 0/1 - Untagged (U) VLAN10 / Voice (V) VLAN60
  • 0/8 - Tagged (T) VLAN10,60


The traffic from the phone will be placed in VLAN60. The client behind the phone is placed in VLAN10.

Auto-VoIP and VLAN Configuration

Back to Top

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.


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.

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 Auto-VoIP 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. Change the associated CoS value (7 is the default).

auto-voip oui-based priority 0-7

9. Enable LLDP on the port(s).

interface 0/1
 lldp transmit
lldp receive
lldp transmit-tlv
lldp transmit-mgmt
lldp notification
lldp med confignotification
lldp med transmit-tlv capabilities network-policy

10. Exit to operational mode and save the changes to the startup configuration.

write memory

Related Articles

Back to Top

EdgeSwitch - Management Access Using HTTPS and SSH

EdgeSwitch - Tagging and Untagging Port VLANs

Intro to Networking - How to Establish a Connection Using SSH

We're sorry to hear that!