To do...
Use the command...
Remarks
Enter interface view
interface
interface-type
interface-number
—
Configure the port to operate in
manual voice VLAN assignment
mode
undo voice vlan mode auto
Required
Disabled by default
Assign the port (access, trunk, or
hybrid) in manual voice VLAN
assignment mode to the voice
VLAN
For how to assign a port to a
VLAN, see the chapter “VLAN
configuration.”
Required
After you assign an access port to
the voice VLAN, the voice VLAN
becomes the PVID of the port
automatically.
Configure the voice VLAN as the
PVID of the port (trunk or hybrid)
For how to assign a port to a
VLAN, see the chapter “VLAN
configuration.”
Optional
This operation is required for
untagged inbound voice traffic
and prohibited for tagged inbound
voice traffic.
Enable voice VLAN on the port
voice vlan
vlan-id
enable
Required
NOTE:
•
You can configure different voice VLANs on different ports at the same time. However, you can
configure one port with only one voice VLAN, and this voice VLAN must be a static VLAN that already
exists on the device.
•
You cannot enable voice VLAN on a port where Link Aggregation Control Protocol (LACP) is enabled.
•
To make voice VLAN take effect on a port that is enabled with voice VLAN and operates in manual voice
VLAN assignment mode, you must assign the port to the voice VLAN manually.
Displaying and maintaining voice VLAN
To do...
Use the command...
Remarks
Display the voice VLAN state
display voice vlan state
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display the OUI addresses that the
system supports
display voice vlan oui
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Voice VLAN configuration examples
Automatic voice VLAN mode configuration example
Network requirements
As shown in
,
•
The MAC address of IP phone A is 0011-1100-0001. The phone connects to a downstream device
named PC A whose MAC address is 0022-1100-0002 and to Ethernet 1/0/1 on an upstream
device named Device A.
120