10-05-2018 01:59 PM - edited 03-21-2019 12:52 AM
Article ID:5734
The Voice Virtual Local Area Network (VLAN) is used when traffic from Voice over Internet Protocol (VoIP) equipment is assigned to a specific VLAN that is made up of voice devices such as IP phones, Voice over Internet Protocol (VoIP) endpoints, and voice systems. The switch can automatically detect and add port members to the Voice VLAN, and assign the configured Quality of Service (QoS) to packets from the Voice VLAN. If the voice devices are in different Voice VLANs, IP routers are needed to provide communication.
The Voice VLAN feature permits the switch ports to carry voice traffic with Layer 3 IP precedence and Layer 2 class of service (CoS) values from an IP phone. Based on IEEE 802.1p CoS, the switch supports QoS which uses classification and scheduling to send network traffic from the switch. You can configure the Cisco IP phone to forward traffic with an IEEE 802.1p priority, and configure the switch to trust or override the traffic priority assigned by an IP phone.
Configuring Voice VLANs ensures that the VoIP devices will not have to contend directly with the broadcasts, data, and other traffic from other VLANs which could cause delays when delivering the traffic. Voice VLANs make the network configuration simple by marking the packets for QoS and which are assigned higher priority.
In the scenario below, the ports on the switch that are connected to the IP Phones are configured with Voice VLAN settings.
The switch supports two dynamic Voice VLAN modes: Telephony Organization Unique Identifier (OUI) mode and Auto Voice VLAN mode. The two modes affect how Voice VLAN and/or Voice VLAN port memberships are configured. The two modes are mutually exclusive to each other.
Voice VLAN QoS
Voice VLAN can propagate the CoS/802.1p and Differentiated Services Code Point (DSCP) settings by using Link Layer Discovery Protocol-Media Endpoint Discovery (LLDP-MED) Network policies. The LLDP-MED is set by default to response with the Voice QoS setting if an appliance sends LLDP-MED packets. MED-supported devices must send their voice traffic with the same CoS/802.1p and DSCP values, as received with the LLDP-MED response.
You can disable the automatic update between Voice VLAN and LLDP-MED and use your own network policies.
Working with the OUI mode, the device can additionally configure the mapping and remarking (CoS/802.1p) of the voice traffic based on the OUI.
By default, all interfaces are CoS/802.1p trusted. The device applies the quality of service based on the CoS/802.1p value found in the voice stream. In Auto Voice VLAN, you can override the value of the voice streams using advanced QoS. For Telephony OUI voice streams, you can override the quality of service and optionally remark the 802.1p of the voice streams by specifying the desired CoS/802.1p values and using the remarking option under Telephony OUI.
Voice VLAN Constraints
The following constraints exist:
In addition, the following constraints are applicable for Telephony OUI:
To manually configure the Voice VLAN Telephone OUI settings on your switch, follow this workflow:
This article provides instructions on how to configure Voice VLAN Telephony OUI Properties on a switch through the CLI.
The default VLAN of the switch is VLAN 1 which cannot act as the Voice VLAN. However, if there is no other configured VLAN, VLAN 1 can be assigned to Voice VLAN.
Note: To know how to configure VLAN settings on your switch through the CLI, click here for instructions.
Step 1. Log in to the switch console. The default username and password is cisco. If you have configured a new username or password, which is highly recommended, enter those credentials instead.
Note: To learn how to access an SMB switch CLI through SSH or Telnet, click here.
Note: The commands may vary depending on the exact model of your switch. In this example, the SG350X switch is accessed through Telnet.
Step 2. From the Privileged EXEC mode of the switch, enter the Global Configuration mode by entering the following:
Step 3. In the Global Configuration mode, enter the Interface Configuration context by entering the following:
SG350X(config)#voice vlan id [vlan-id]Note: In this example, Voice VLAN 40 is being configured.
Step 4. Press Y on your keyboard to continue.
Step 5. To specify a value of VPT (802.1p VLAN priority tag) that will be advertised by LLDP in the Network Policy TLV, enter the following:
SG350X(config)#voice vlan vpt [vpt-value]Step 6. Press Y on your keyboard to continue.
Step 7. To specify a value of DSCP that will be advertised by LLDP in the Network Policy TLV, enter the following:
SG350X(config)#voice vlan dscp [dscp-value]Step 8. Press Y on your keyboard to continue.
Configure Telephony OUI Operational Settings
To configure the Telephony OUI Operational settings, take note of these guidelines:
Step 9. To change the administrative state from auto-enabled (or auto-triggered) to OUI-enabled, you must first set the administrative state to disabled by entering the following:
SG350X(config)#voice vlan state [disabled]Step 10. Press Y on your keyboard to continue.
Step 11. To enable Telephony OUI Voice VLAN, enter the following:
SG350X(config)#voice vlan state [oui-enabled]Step 12. To set the OUI Voice VLAN CoS, enter the following:
SG350X(config)#voice vlan cos [cos-value] [remark]The options are:
Note: The CoS queue to be designated to the voice traffic is like a buffer that filters the outbound traffic, and holds it until it can leave the switch through an outgoing port. The default value is five. In this example, the CoS value is set to 7 which is the highest priority.
Step 13. To set the OUI Voice VLAN aging timeout interval, enter the following:
SG350X(config)#voice vlan aging-timeout [minutes]Note: In this example, the aging timeout interval is set to 600 minutes or 10 hours.
Configure Telephone OUI Table Settings
Step 14. (Optional) To configure the voice OUI table, enter the following:
SG350X(config)#voice vlan oui-table {[add|remove]mac-address-prefix} [description]The options are:
The default Voice VLAN OUI table is:
OUI |
Description |
00:01:e3 |
Siemens AG Phone |
00:03:6b |
Cisco Phone |
00:09:6e |
Avaya Phone |
00:0f:e2 |
Huawei-3COM Phone |
00:60:b9 |
NEC/Philips Phone |
00:d0:1e |
Pingtel Phone |
00:e0:75 |
Veritel Polycom Phone |
00:e0:bb |
3COM Phone |
Note: In this example, a SamplePhone with MAC address prefix 00:34:ab is added in the OUI table.
Configure Telephone OUI Interface Settings
To have a Voice VLAN work properly, the voice devices, such as Cisco phones and VoIP endpoints, must be assigned to the Voice VLAN where it sends and receives its voice traffic. Some of the possible scenarios are as follows:
The device expects the attaching voice devices to send Voice VLAN, tagged packets. On ports where the Voice VLAN is also the native VLAN, Voice VLAN untagged packets are possible.
Step 15. Enter the interface context of the port that you want to configure by entering the following:
SG350X(config)#interface [interface-id]Note: In this example, port ge1/0/13 is entered.
Step 16. To enable OUI Voice VLAN configuration on an interface, enter the following:
SG350X(config-if)#voice vlan enableStep 17. To choose the OUI Voice VLAN CoS mode, enter the following:
SG350X(config-if)#voice vlan cos mode [src | all]The QoS attributes can be assigned per port to the voice packets in one of the following modes:
Note: In this example, all is entered.
Step 18. Enter the exit command to go back to the Global Configuration context:
SG350X(config-if)#exitStep 19. Repeat steps 15 to 17 to configure more interfaces.
Note: In this example, the port ge1/0/25 is assigned to the Voice VLAN which QoS attributes are applied to packets with OUIs in the source MAC address.
Step 20. Enter the end command to go back to the Privileged EXEC mode:
SG350X(config-if)#endYou should now have successfully configured the Voice VLAN Telephony OUI settings on your switch.
Step 1. To display the Voice VLAN status for all interfaces or for a specific interface if the Voice VLAN type is OUI, enter the following:
SG350X#show voice vlan type oui [interface-id | detailed]The options are:
Note: In this example, the information on the OUI-enabled Voice VLAN is displayed.
Step 2. (Optional) To display the voice vlan local information about the Voice VLAN local configuration, enter the following:
SG350X#show voice vlan localStep 3. (Optional) In the Privileged EXEC mode of the switch, save the configured settings to the startup configuration file by entering the following:
SG350X#copy running-config startup-configStep 4. (Optional) Press Y for Yes or N for No on your keyboard once the Overwrite file [startup-config]… prompt appears.
You should now have displayed the Voice VLAN Telephony OUI configuration settings on your switch through the CLI.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: