Chapter 49: Voice VLAN Commands
676 Section VII: Virtual LANs
SWITCHPORT VOICE VLAN
Syntax
switchport voice vlan
vid
Parameters
vid Specifies the ID number (VID) of the VLAN that is to
function as the voice VLAN for ports. You can specify
just one VID.
Mode
Port Interface mode
Description
Use this command to add a port to a voice VLAN. The VLAN, which must
already exist, is identified by its VID. A port is added as a tagged port to
the designated VLAN. It transmits the VID in the LLDP-MED network
policy TLV to an IP phone, which, in turn, sends its packets using this
VLAN ID.
A port can be a member of just one voice VLAN at a time. A port that is
already a member of a voice VLAN is removed from its current assignment
before it is added to its new assignment.
This command performs these functions:
Adds the designated port to the voice VLAN as a tagged port. The
equivalent commands are “SWITCHPORT MODE TRUNK” on
page 587 and “SWITCHPORT TRUNK ALLOWED VLAN” on
page 589. (The port’s current untagged assignment is not changed.)
Activates QoS on the switch, if it is not already. The equivalent
command is “MLS QOS ENABLE” on page 1071.
Configures the port to trust CoS. The equivalent command is “MLS
QOS TRUST COS” on page 1079.
Confirmation Command
“SHOW VLAN” on page 582
Examples
This example adds ports 5 to 16 to a voice VLAN that has the VID 12:
awplus> enable