10-05-2018 01:59 PM - edited 03-21-2019 12:52 AM
Article ID:5861
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 generally 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.
When the Dynamic Voice VLAN mode is Auto Voice VLAN, Auto Voice VLAN becomes operational only if one or more triggers occur. Possible triggers are static voice VLAN configuration, voice VLAN information received in neighbor CDP advertisement, and voice VLAN information received in the VSDP. If desired, you can activate Auto Voice VLAN immediately without waiting for a trigger.
When Auto Smartport is enabled, depending on Auto Voice VLAN mode, Auto Smartport is enabled when Auto Voice VLAN becomes operational. If desired, you can make Auto Smartport independent of Auto Voice VLAN.
Note: The defaults and the voice VLAN triggers are designed to have no effect on installations without a voice VLAN or on switches that have already been configured. You can manually disable and enable Auto Voice VLAN and/or Auto Smartport to fit your deployment if needed.
Auto Voice VLAN is responsible in maintaining the voice VLAN, but depends on Auto Smartport to maintain the voice VLAN port memberships. Auto Voice VLAN performs the following functions when it is in operation:
Note: If connecting the device to a Cisco UC device, you may need to configure the port on the UC device using the switchport voice vlan command to ensure the UC device advertises its voice VLAN in CDP at the port.
Note: The device can synchronize with VSDP-capable switches in the same management VLAN and in the directly connected IP subnets configured at the device.
Auto Smartport works with CDP and/or LLDP to maintain the port memberships of the voice VLAN when voice end-points are detected from the ports:
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.
The following constraints exist:
To manually configure the Auto Voice VLAN settings on your switch, follow this workflow:
Note: By default, CDP, LLDP, LLDP-MED, auto Smartport mode, and basic QoS with trusted DSCP are all enabled. All ports are members of default VLAN 1, which is the default Voice VLAN.
This article provides instructions on how to configure Voice VLAN Properties on a switch through the Command Line Interface (CLI).
Note: In this scenario, a switch with pre-configured Voice VLAN Telephony OUI settings is being configured with Auto Voice VLAN settings.
Step 1. To display the voice vlan local information about the Voice VLAN local configuration, enter the following:
SG350X#show voice vlan local
Note: In this example, the current Voice VLAN type is Telephony OUI.
Step 2. (Optional) To display the Voice VLAN status for all interfaces or for a specific interface if the Voice VLAN type is OUI, enter the following:
The options are:
Note: In this example, the information on the OUI-enabled Voice VLAN is displayed.
You should now have successfully displayed the current Voice VLAN settings on your 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/cisco. If you have configured a new username or password, enter the 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:
SG350X#configure
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.
Manually re-configuring the voice VLAN ID, CoS/802.1p, and/or DSCP from their default values results in a static voice VLAN, which has higher priority than auto voice VLAN that was learned from external sources.
Note: If the device is currently in Telephony OUI mode, you must disable it before you can configure Auto Voice VLAN.
Step 9. To change the administrative state from OUI-enabled to auto-enabled (or auto-triggered), 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 Auto Voice VLAN, enter the following:
SG350X(config)#voice vlan state [auto-enabled]
Step 12. (Optional) To configure the voice VLAN be enabled by a trigger, enter the following:
SG350X(config)#voice vlan state [auto-triggered]
Note: In this example, auto-triggered is enabled. When the device detects a Voice VLAN advertisement, Auto Voice VLAN is activated. The operational state is auto-enabled only if one of the following occurs:
Step 13. (Optional) To restart the Voice VLAN discovery process on all Auto Voice VLAN-enabled switches in the VLAN by removing all externally learned voice VLAN attributes and resetting the voice VLAN to the default voice VLAN, enter the following:
SG350X(config)#voice vlan refresh
Step 14. Enter the exit command to go back to the Privileged EXEC mode:
SG350X(config)#exit
You should now have successfully configured the Auto Voice VLAN settings on your switch through the CLI.
Step 1. To display the Voice VLAN status for all interfaces or for a specific interface if the Voice VLAN type is auto, enter the following:
SG350X#show voice vlan type auto [interface-id | detailed]
The options are:
Note: In this example, the information on the auto-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 local
Step 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-config
Step 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 Auto Voice VLAN 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: