Layer 2 Technologies – Voice VLAN

show voice vlan

To display the voice VLAN status for all interfaces or for a specific interface if the voice VLAN type is OUI, use the show voice vlan Privileged EXEC mode command.

Syntax

show voice vlan [type oui [{interface-id | detailed}] ]

Parameters

  • type oui—(Optional) Common and OUI-voice-VLAN specific parameters are displayed.
  • interface-id—(Optional) Specifies an Ethernet port ID.
  • detailed—(Optional) Displays information for non-present ports in addition to present ports.

Default Configuration

If the type parameter is omitted the current Voice VLAN type is used.

If the interface-id parameter is omitted then information about all present interfaces is displayed. If detailed is used, non-present ports are also displayed.

Command Mode

Privileged EXEC mode

User Guidelines

Using this command without parameters displays the current voice VLAN type parameters and local and agreed voice VLAN settings.

Using this command with the type parameter displays the voice VLAN parameters relevant to the type selected. The the local and agreed voice VLAN settings are displayed only if this is the current voice VLAN state.

The interface-id parameter is relevant only for the OUI VLAN type.

Examples

The following example displays the voice VLAN parameters.

switch>show voice vlan
 
Administrate Voice VLAN state is oui-enabled
 
The Operational Voice VLAN-ID is 2
 
Aging timeout: 1440 minutes
 
CoS: 6
 
Remark: Yes
 
OUI table
 
MAC Address - Prefix   Description
 
--------------------   ------------------
 
00:E0:BB               3COM
 
00:03:6B               Cisco
 
00:E0:75               Veritel
 
00:D0:1E               Pingtel
 
00:01:E3               Simens
 
00:60:B9               NEC/Philips
 
00:0F:E2               Huawei-3COM
 
00:09:6E               Avaya
 
Interface        Enabled    Secure    Activated  CoS Mode -------------    -------    -------   ---------  -------te1/0/1              Yes        Yes         Yes      all te1/0/2              Yes        Yes         No       src te1/0/3              No         No
 
...

voice vlan state

To set the type of voice VLAN that is functional on the device or disable voice VLAN entirely, use the voice vlan state Global Configuration mode command.

The no format of the command returns to the default.

Syntax

voice vlan state {oui-enabled | disabled] no voice vlan state

Parameters

  • oui-enabled—Voice VLAN is of type OUI.
  • disabled—Voice VLAN is disabled.

Default Configuration

Disabled

Command Mode

Global Configuration mode

User Guidelines

If the administrative state is:

  • disabled — The operational state is disabled.
  • oui-enabled —The operational state is oui-enabled.

Examples

Example 1 —The following example enables the OUI mode of Voice VLAN. The first try did not work – it was necessary to first disable voice VLAN.

switchxxxxxx(config)# voice vlan state oui-enabled Disable the voice VLAN before changing the voice VLAN trigger.
switchxxxxxx(config)# voice vlan state disabled
switchxxxxxx(config)# voice vlan state oui-enabled
<CR>

voice vlan id

To statically configure the VLAN identifier of the voice VLAN, use the voice vlan id Global Configuration mode command. To return the voice VLAN to the default VLAN (1), use the no format of the command.

Syntax

voice vlan id vlan-id no voice vlan id

Parameters

vlan id vlan-id—Specifies the voice VLAN (range 1-4094).

Default Configuration VLAN ID 1.

Command Mode

Global Configuration mode

User Guidelines

If the Voice VLAN does not exist, it is created automatically. It will not be removed automatically by the no version of this command.

Example

The following example enables VLAN 35 as the voice VLAN on the device.

switchxxxxxx(config)# voice vlan id 35
 
For Auto Voice VLAN, changes in the voice VLAN ID, CoS/802.1p, and/or DSCP will cause the switch to advertise the administrative voice VLAN as static voice VLAN which has higher priority than voice VLAN learnt from external sources.
 
Are you sure you want to continue? (Y/N)[Y] Y
 
30-Apr-2011 00:19:36 %VLAN-I-VoiceVlanCreated: Voice Vlan ID 35 was created. switchxxxxxx(config)# 30-Apr-2011 00:19:51 %VLAN-I-ReceivedFromVSDP: Voice VLAN updated by VSDP. Voice VLAN-ID 35, VPT 5, DSCP 46

voice vlan oui-table

To configure the voice OUI table, use the voice vlan oui-table Global Configuration mode command. To restore the default configuration, use the no form of this command.

Syntax

voice vlan oui-table {add mac-address-prefix | remove mac-address-prefix} [text] no voice vlan oui-table

Parameters

  • add mac-address-prefix—Adds the specified MAC address prefix to the voice VLAN OUI table (length: 3 bytes).
  • remove mac-address-prefix—Removes the specified MAC prefix address from the voice VLAN OUI table (length: 3 bytes).
  • text—(Optional) Adds the specified text as a description of the specified MAC address to the voice VLAN OUI table (length: 1–32 characters).

Default Configuration

The default voice VLAN OUI table is:

OUIDescription
00:01:e3Siemens AG Phone
00:03:6bCisco Phone
00:09:6eAvaya Phone
00:0f:e2Huawei-3COM Phone
00:60:b9NEC/Philips Phone
00:d0:1ePingtel Phone
00:e0:75Veritel Polycom Phone
00:e0:bb3COM Phone

Command Mode

Global Configuration mode

User Guidelines

The classification of a packet from VoIP equipment/phones is based on the packet’s OUI in the source MAC address. OUIs are globally assigned (administered) by the IEEE.

In MAC addresses, the first three bytes contain a manufacturer ID

(Organizationally Unique Identifiers (OUI)) and the last three bytes contain a unique station ID.

Since the number of IP phone manufacturers that dominates the market is limited and well known, the known OUI values are configured by default and OUIs can be added/removed by the user when required.

Example

The following example adds an entry to the voice VLAN OUI table.

switchxxxxxx(config)# voice vlan oui-table add 00:AA:BB experimental

voice vlan cos mode

To select the OUI voice VLAN Class of Service (CoS) mode, use the voice vlan cos mode Interface Configuration mode command. To return to the default, use the no form of this command.

Syntax

voice vlan cos mode {src | all }

no voice vlan cos mode

Parameters

  • src—QoS attributes are applied to packets with OUIs in the source MAC address. See the User Guidelines of voice vlan oui-table.
  • all—QoS attributes are applied to packets that are classified to the Voice VLAN.

Default Configuration

The default mode is src.

Command Mode

Interface Configuration mode

Example

The following example applies QoS attributes to voice packets.

switchxxxxxx(config-if)# voice vlan cos mode all

voice vlan cos

To set the OUI Voice VLAN Class of Service (CoS), use the voice vlan cos Global Configuration mode command. To restore the default configuration, use the no form of this command.

Syntax

voice vlan cos cos [remark ] no voice vlan cos

Parameters

  • cos cos—Specifies the voice VLAN Class of Service value. (Range: 0–7)
  • remark—(Optional) Specifies that the L2 user priority is remarked with the CoS value.

Default Configuration

The default CoS value is 5.

The L2 user priority is not remarked by default.

Command Mode

Global Configuration mode

Example

The following example sets the OUI voice VLAN CoS to 7 and does not do remarking.

switchxxxxxx(config)# voice vlan cos 7

voice vlan aging-timeout

To set the OUI Voice VLAN aging timeout interval, use the voice vlan aging-timeout Global Configuration mode command. To restore the default configuration, use the no form of this command.

Syntax

voice vlan aging-timeout minutes no voice vlan aging-timeout

Parameters

aging-timeout minutes—Specifies the voice VLAN aging timeout interval in minutes. (Range: 1–43200).

Default Configuration

1440 minutes

Command Mode

Global Configuration mode

Example

The following example sets the OUI Voice VLAN aging timeout interval to 12 hours.

switchxxxxxx(config)# voice vlan aging-timeout 720

voice vlan enable

To enable OUI voice VLAN configuration on an interface, use the voice vlan enable Interface Configuration mode mode command. To disable OUI voice VLAN configuration on an interface, use the no form of this command.

Syntax

voice vlan enable no voice vlan enable

Parameters

This command has no arguments or keywords.

Default Configuration

Disabled

Command Mode

Interface Configuration mode

User Guidelines

This command is applicable only if the voice VLAN state is globally configured as OUI voice VLAN (using show voice vlan).

The port is added to the voice VLAN if a packet with a source MAC address OUI address (defined by voice vlan oui-table) is trapped on the port. Note: The packet VLAN ID does not have to be the voice VLAN, it can be any VLAN.

The port joins the voice VLAN as a tagged port.

If the time since the last MAC address with a source MAC address OUI address was received on the interface exceeds the timeout limit (configured by voice vlan aging-timeout), the interface is removed from the voice VLAN.

Example

The following example enables OUI voice VLAN configuration on te1/0/2.

switchxxxxxx(config)# interface te1/0/2
switchxxxxxx(config-if)# voice vlan enable

Was this article helpful?

Related Articles

Leave A Comment?