Voice VLAN Commands

This chapter contains the following sections:

show voice vlan

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

Syntax

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

Parameters

type auto—(Optional) Displays common and specific Auto-voice-VLAN parameters.

type oui—(Optional) Displays common and specific OUI-voice-VLAN parameters.

interface interface-id—(Optional) Specifies an Ethernet interface ID or a list of Ethernet interface IDs (Relevant only for the OUI type).

Default Configuration

If the type keyword is not specified, the current voice VLAN type is used.

If the interface-id parameter is not specified, the information for all interfaces is displayed.

Command Mode

Privileged EXEC mode

User Guidelines

Using this command without parameters displays the parameters of the current voice VLAN type. Using this command with the type parameter displays the voice VLAN parameters relevant to the type selected.

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

Examples

Example 1—The following example displays the auto voice VLAN parameters (this is independent of the voice VLAN state actually enabled).

switchxxxxxx# show voice vlan type auto
Voice VLAN ID       : 1
Voice VLAN VPT      : 5
Voice VLAN DSCP     : 46

Example 2—The following example displays the current voice VLAN parameters when the voice VLAN state is auto-enabled.

switchxxxxxx# show voice vlan
Administrate Voice VLAN state   : auto-enabled
Voice VLAN ID       : 1
Voice VLAN VPT      : 5
Voice VLAN DSCP     : 46

Example 3—The following example displays the voice VLAN parameters when both Auto voice VLAN and OUI are disabled.

switchxxxxxx# show voice vlan
Administrate Voice VLAN state   : disable
Voice VLAN ID       : 1
Voice VLAN VPT      : 5
Voice VLAN DSCP     : 46
Voice VLAN Aging    : 1440 minutes
Voice VLAN CoS      : 6
Voice VLAN 1p Remark: disabled

Example 4—The following example displays the voice VLAN parameters when the voice VLAN operational state is OUI.

switchxxxxxx# show voice vlan
Administrate Voice VLAN state   : oui-enabled
Voice VLAN ID       : 2
Voice VLAN VPT      : 5
Voice VLAN DSCP     : 46
Voice VLAN Aging    : 1440 minutes
Voice VLAN CoS      : 6
Voice VLAN 1p Remark: disabled

voice vlan enable

To enable the administrative voice VLAN on an interface, use the voice vlan enable Interface Configuration mode command.

To disable the administrative voice VLAN on an interface, use the no form of this command.

Syntax

voice vlan enable

no voice vlan enable

Default Configuration

Disabled

Command Mode

Interface Configuration mode

Example

switchxxxxxx(config)# interface gi1
switchxxxxxx(config-if)# voice vlan enable

voice vlan aging-timeout

To set the aging timeout of the OUI voice VLAN, use the voice vlan aging-timeout Global Configuration mode command.

Syntax

voice vlan aging-timeout minutes

Parameters

minutes—The time delay in minutes to remove an interface from the voice VLAN after all MAC addresses of the phones detected on the interfaces have aged out. (Range: 30 to 65536 minutes)

Default Configuration

The default aging timeout is 1440 minutes.

Command Mode

Global Configuration mode

Example

switchxxxxxx(config)# voice vlan aging-timeout 500

voice vlan cos

To set the CoS value of the OUI voice VLAN, use the voice vlan cos Global Configuration mode command.

To revert to its default setting, use the no form of this command.

Syntax

voice vlan cos cos [remark]

no voice vlan cos

Parameters

cos—The voice VLAN CoS value. (Range: 0 to 7)

remark—(Optional) The Layer 2 user priority is remarked with the CoS value.

Default Configuration

The default CoS value is 6.

The Layer 2 user priority is not remarked by default.

Command Mode

Global Configuration mode

Example

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

switchxxxxxx(config)# voice vlan cos 7

voice vlan cos mode

To set the CoS mode of the OUI voice VLAN, use the voice vlan cos mode Interface Configuration mode command.

To revert to its default setting, 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 voice vlan oui-table command for more information.

all—QoS attributes are applied to packets that are classified to the voice VLAN.

Default Configuration

The default mode is src.

Command Mode

Global Configuration mode

Example

The following example applies QoS attributes to all voice packets:

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

voice vlan dscp

To specify the DSCP value that will be advertised by LLDP in the network policy TLV, use the voice vlan dscp Global Configuration mode command.

To revert to its default setting, use the no form of this command.

Syntax

voice vlan dscp dscp-value

no voice vlan dscp

Parameters

dscp-value—The DSCP value to packets received on the voice VLAN. (Range: 0 to 63)

Default Configuration

46

Command Mode

Global Configuration mode

Example

switchxxxxxx(config)# voice vlan dscp 63

voice vlan mode

To configure the voice VLAN mode on an interface, use the voice vlan mode Interface Configuration mode command.

To revert to its default setting, use the no form of this command.

Syntax

voice vlan mode {auto | manual}

no voice vlan mode

Parameters

auto—Specifies that the port is identified as a candidate to join the voice VLAN. When a packet with a source OUI MAC address that identifies the remote equipment as voice equipment is seen on the port, the port joins the voice VLAN as a tagged port. If the time since the last telephony MAC address was aged out of the MAC address table exceeds the voice VLAN aging time, the port is removed from the voice VLAN.

manual—Specifies that the port is manually assigned to the voice VLAN.

Default Configuration

The default mode is auto.

Command Mode

Interface Configuration mode

Example

switchxxxxxx(config)# interface gi1
switchxxxxxx(config-if)# voice vlan mode manual

voice vlan oui-table

To configure the voice VLAN OUI table, use the voice vlan oui-table Global Configuration mode command.

To revert to its default setting, use the no form of this command.

Syntax

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

no voice vlan oui-table

Parameters

add mac-address-prefix—Adds the specified MAC address prefix to the voice VLAN OUI table.

remove mac-address-prefix—Removes the specified MAC prefix address from the voice VLAN OUI table.

description—(Optional) The description for the specified MAC address in the voice VLAN OUI table. (Length: 1 to 32 characters)

Default Configuration

The default voice VLAN OUI table is:

OUI

Description

00:e0:bb

3Com Phone

00:03:6b

Cisco Phone

00:e0:75

Veritel Polycom Phone

00:d0:1e

Pingtel Phone

00:01:e3

Siemens AG Phone

00:60:b9

NEC/Philips Phone

00:0f:e2

Huawei-3Com Phone

00:09:6e

Avaya Phone

Command Mode

Global Configuration mode

User Guidelines

The classification of a packet from VoIP equipment or 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.

Because the number of IP phone manufacturers that dominate the market is limited and well known, the known OUI values are configured by default and OUIs can be added or 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 state

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

Syntax

voice vlan state {auto-enabled | disabled | oui-enabled}

Parameters

auto-enabled—Sets the voice VLAN type to Auto.

disabled—Disables the voice VLAN.

oui-enabled—Sets the voice VLAN type to OUI.

Default Configuration

The voice VLAN type is set to Auto.

Command Mode

Global Configuration mode

User Guidelines

By default, CDP, LLDP, and LLDP MED are enabled on the switch. All ports are members of the default VLAN (VLAN 1), which is also the default voice VLAN.

Example

switchxxxxxx(config)# voice vlan state auto-enabled
switchxxxxxx(config)# voice vlan state disabled
switchxxxxxx(config)# voice vlan state oui-enabled
The Voice VLAN for OUI cannot be the default VLAN

voice vlan id

To set a VLAN as the voice VLAN, use the voice vlan id Global Configuration mode command.

To revert to its default setting, use the no form of this command.

Syntax

voice vlan id VLAN-id

no voice vlan id

Parameters

VLAN-id—Identifier of the VLAN as the voice VLAN. (Range: 1 to 4094)

Default Configuration

The default voice VLAN is VLAN 1.

Command Mode

Global Configuration mode

Example

switchxxxxxx(config)# vlan 104
switchxxxxxx(config-vlan)# exit
switchxxxxxx(config)# voice vlan id 104

voice vlan vpt

To define the voice VLAN priority tag (VPT) that will be advertised by LLDP in the network policy TLV, use the voice vlan vpt Global Configuration mode command.

To revert to its default setting, use the no form of this command.

Syntax

voice vlan vpt vpt-value

no voice vlan vpt

Parameters

vpt-value—The VPT value to be advertised. (Range: 0 to 7)

Default Configuration

5

Command Mode

Global Configuration mode

Example

The following example sets 7 as the voice VLAN VPT:

switchxxxxxx(config)# voice vlan vpt 7