Syntax
display voice vlan error-info
View
Any view
Parameters
None
Description
Use the display voice vlan error-info command
to display the ports on which the voice VLAN function fails to be enabled.
When ACL number
applied to a port reaches to its threshold, voice VLAN cannot be enabled on
this port.
Examples
# Display the ports on which voice VLAN
fails to be enabled.
<Sysname> display voice vlan
error-info
Fail to apply voice VLAN ACL rules to
the following port(s):
GigabitEthernet1/0/10 GigabitEthernet1/0/15
1.1.2 display voice vlan oui
Syntax
display voice vlan oui
View
Any view
Parameters
None
Description
Use the display voice vlan oui command
to display the organizationally unique identifier (OUI) list used for
identifying voice traffic.
The output of the command displays the OUI
addresses, their masks, and descriptions.
By default, there are five pre-defined OUI
addresses in the system. You can use the voice vlan mac-address command
to add, modify, or remove OUI addresses.
Examples
# Display the OUI list for the voice VLAN.
<Sysname> display voice vlan
oui
Oui Address Mask Description
0003-6b00-0000 ffff-ff00-0000 Cisco
phone
000f-e200-0000 ffff-ff00-0000 H3C
Aolynk phone
00d0-1e00-0000 ffff-ff00-0000
Pingtel phone
00e0-7500-0000 ffff-ff00-0000
Polycom phone
00e0-bb00-0000 ffff-ff00-0000 3Com phone
Syntax
display voice vlan status
View
Any view
Parameters
None
Description
Use the display voice vlan status
command to display voice VLAN-related information.
The output of the command displays
information such as the voice VLAN security mode and voice VLAN assignment mode
(manual or automatic).
Related commands: voice vlan, voice
vlan enable.
Examples
# Display the information about the voice
VLAN.
<Sysname>
display voice vlan status
Voice Vlan status: ENABLE
Voice Vlan ID: 2
Voice Vlan security mode: Security
Voice Vlan aging time: 100 minutes
Current voice vlan enabled port mode:
PORT MODE
--------------------------------
GigabitEthernet1/0/2
AUTO
GigabitEthernet1/0/3
MANUAL
Table 1-1
Description on the fields of the display voice
vlan status command
|
Field
|
Description
|
|
Voice Vlan status
|
The status of global voice VLAN function:
enabled or disabled.
|
|
Voice Vlan ID
|
The VLAN which is currently enabled with voice
VLAN.
|
|
Voice Vlan security mode
|
The status of voice VLAN security mode:
enabled or disabled.
|
|
Voice Vlan aging time
|
The voice VLAN aging time
|
|
Current voice vlan enable port mode
|
The ports on which the voice VLAN
function is enabled.
|
Caution:
The Current
voice vlan enable port mode field lists the ports with the voice VLAN
function enabled. Note that not all of them are transmitting packets in the
voice VLAN. To view the ports operating in the voice VLAN currently, use the display
vlan command.
Syntax
display vlan vlan-id
View
Any view
Parameters
vlan-id: Specifies
the ID of the current voice VLAN in the range of 1 to 4094.
Description
Use the display vlan command to
display information about the specified VLAN.
For the voice VLAN, this command displays all
the ports in the VLAN.
Related commands: voice vlan, voice
vlan enable.
Examples
# Display all the ports in the current
voice VLAN, assuming that the current voice VLAN is VLAN 6.
<Sysname> display vlan 6
VLAN ID: 6
VLAN Type: static
Route Interface: not configured
Description: VLAN 0006
Name: VLAN 0006
Tagged Ports:
GigabitEthernet1/0/5
Untagged Ports:
GigabitEthernet1/0/6
The output indicates that GigabitEthernet 1/0/5
and GigabitEthernet 1/0/6 are in the voice VLAN.
Syntax
voice vlan vlan-id enable
undo voice vlan enable
View
System view
Parameters
vlan-id: Specifies
the ID of the VLAN to be enabled with the voice VLAN function, in the range of
2 to 4094. Note that the VLAN must already exist.
Description
Use the voice vlan command to configure
the specified VLAN as the voice VLAN, that is, enable voice VLAN globally.
Use the undo voice vlan enable command
to remove the voice VLAN configuration from the specified VLAN.
By default, voice VLAN is disabled
globally.
After a VLAN is configured as the voice
VLAN, the switch will modify QoS priorities for the traffic in the VLAN to
improve its transmission preference, guaranteeing that the voice data can be
transmitted preferentially.
To make the voice VLAN function take effect
on a port, you must enable the function both globally and on the port with the voice
vlan enable command.
Caution:
l
If you want to delete a VLAN with voice VLAN
function enabled, you must disable the voice VLAN function first.
l
The voice VLAN function can be enabled for only
one VLAN at one time.
Related commands: display voice vlan status.
Examples
# Create VLAN 2, and enable the voice VLAN
function on it.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] vlan 2
[Sysname-vlan2] quit
[Sysname] voice vlan 2 enable
# After the voice VLAN function of VLAN 2
is enabled, if you enable the voice VLAN function for other VLANs, the system
will prompt that your configuration fails.
[Sysname] voice
vlan 4 enable
Can't change voice vlan configuration
when other voice vlan is running
Syntax
voice vlan aging minutes
undo voice vlan aging
View
System view
Parameters
minutes: Sets
the voice VLAN aging timer in minutes, in the range of 5 to 43200.
Description
Use the voice vlan aging command to
set the voice VLAN aging timer.
Use the undo voice vlan aging command
to restore the default.
By default, the voice VLAN aging timer is
1440 minutes.
If a port is configured to work in automatic
voice VLAN assignment mode, the switch automatically assigns the port to the
voice VLAN when receiving a packet with the source MAC address matching an
entry in the OUI list of the switch. As soon as the port is assigned to the
voice VLAN, the voice VLAN aging timer starts. If no recognizable voice traffic
has been received before the timer expires, the port is removed from the voice
VLAN.
The voice VLAN aging timer does not take
effect on ports working in manual voice VLAN assignment mode, because these
ports are assigned to the voice VLAN statically.
When setting the voice VLAN aging timer,
consider the usage frequency of IP phones. Note that:
l
A large voice VLAN aging timer setting can
prevent a port from being assigned to or removed from the voice VLAN
frequently, keeping voice communication stable. However, this may cause a port to
stay in the voice VLAN even if it has not transmitted voice traffic for a long
time, occupying system resources and bringing about security problems.
Therefore, you are recommended to set a large voice VLAN aging timer in a
network with credible network devices and many voice applications.
l
A small voice VLAN aging timer enables the
switch to remove a port that has not transmitted voice traffic from the voice
VLAN timely, thus improving network security. However, this may cause the port to
be assigned to or removed from the voice VLAN frequently. Therefore, you are
recommended to set a small voice VLAN aging timer in a network with only a few
voice applications.
Related commands: display voice vlan
status.
Examples
# Set the aging time of the voice VLAN to
100 minutes.
<Sysname>
system-view
System View: return to User View with
Ctrl+Z.
[Sysname] voice vlan aging 100
Syntax
voice vlan enable
undo voice vlan enable
View
Ethernet port view
Parameters
None
Description
Use the voice vlan enable command to
enable the voice VLAN function on the port.
Use the undo voice vlan enable
command to disable the voice VLAN function on the port.
By default, the voice VLAN function is
disabled on all ports.
To have the voice VLAN function take effect
on a port, you must enable it both globally and on the port. Note that the
operations are order independent.
Related commands: display voice vlan
error-info, display voice vlan status.
Examples
# Enable the voice VLAN function on GigabitEthernet1/0/2.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] interface GigabitEthernet
1/0/2
[Sysname-GigabitEthernet1/0/2] voice
vlan enable
Syntax
voice vlan legacy
undo voice vlan legacy
View
Ethernet port view
Parameters
None
Description
Use the voice vlan legacy command to
enable the voice VLAN legacy function. This function realizes the communication
between H3C device and other vendors’ voice device by automatically
adding the voice VLAN tag to the voice data coming from other vendors’
voice device.
Use the undo voice vlan legacy command
to disable the voice VLAN legacy function.
By default, the voice VLAN legacy function
is disabled.
Examples
# Enable the voice VLAN legacy function on GigabitEthernet1/0/1.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] interface GigabitEthernet
1/0/1
[Sysname-GigabitEthernet1/0/1] voice
vlan legacy
Syntax
voice vlan mac-address oui mask oui-mask
[ description text ]
undo voice vlan mac-address oui
View
System view
Parameters
oui: Specify
a MAC address, in the format of H-H-H.
oui-mask: Specify
a MAC address mask, made up of consecutive Fs and consecutive 0s. It specifies
the matching length of the OUI address. When the switch receives a packet, it
matches the bits in the source MAC address corresponding to the Fs against the
OUI list.
text:
Description of the MAC address, containing 1 to 30 characters.
Description
Use the voice vlan mac-address
command to add an OUI entry to the OUI list for the specified MAC address. The
OUI list contains the MAC addresses of recognizable voice devices. A packet is
considered as a voice packet only when its source MAC address can match an
entry in the OUI list.
Use the undo voice vlan mac-address
command to remove an OUI entry from the OUI list.
By default, the OUI list contains the five
pre-defined OUI addresses in Table 1-2. You can modify them with the voice
vlan mac-address command.
The OUI list can contain up to 16 OUI
address entries.
Table 1-2 Default OUI addresses of a switch
|
Number
|
OUI address
|
Vendor
|
|
1
|
0003-6b00-0000
|
Cisco phone
|
|
2
|
000f-e200-0000
|
H3C Aolynk phone
|
|
3
|
00d0-1e00-0000
|
Pingtel phone
|
|
4
|
00e0-7500-0000
|
Polycom phone
|
|
5
|
00e0-bb00-0000
|
3Com phone
|
Related commands: display voice vlan oui.
Examples
# Add MAC address 00aa-bb00-0000 to the OUI
list and configure its description as ABC.
<Sysname>
system-view
System View: return to User View with
Ctrl+Z.
[Sysname] voice vlan mac-address
00aa-bb00-0000 mask ffff-ff00-0000 description ABC
Syntax
voice vlan mode auto
undo voice vlan mode auto
View
Ethernet port view
Parameters
None
Description
Use the voice vlan mode auto command
to configure the voice VLAN assignment mode of the Ethernet port to automatic.
Use the undo voice vlan mode auto command
to configure the voice VLAN assignment mode of the Ethernet port to manual.
You cannot and need not to assign a port
working in automatic voice VLAN assignment mode to the voice VLAN manually.
When the port receives a packet whose source MAC address matches the OUI list,
the port is assigned to the voice VLAN automatically, and the packet is tagged
with the voice VLAN tag. If the port has not received any voice data before the
voice VLAN aging timer expires, the port is removed from the voice VLAN automatically.
By default, an Ethernet port works in
automatic voice VLAN assignment mode.
A port working in manual voice VLAN
assignment mode needs to be assigned to the voice VLAN manually. The port stays
in the voice VLAN no matter whether voice data is present on the port, that is,
the voice VLAN aging timer does not take effect on the port.
Related commands: display voice vlan
status.
Examples
# Configure the voice VLAN assignment mode
on GigabitEthernet1/0/2 to manual.
<Sysname>
system-view
System View: return to User View with
Ctrl+Z.
[Sysname] interface GigabitEthernet
1/0/2
[Sysname-GigabitEthernet1/0/2] undo
voice vlan mode auto
Syntax
voice vlan security enable
undo voice vlan security enable
View
System view
Parameters
None
Description
Use the voice vlan security enable
command to enable the voice VLAN security mode.
Use the undo voice vlan security enable
command to disable the voice VLAN security mode.
In security mode, the ports in a voice VLAN
and with voice devices attached to can only forward voice data. Data packets
with their MAC addresses not among the OUI addresses that can be identified by
the system will be filtered out. This mode has no effects on other VLANs.
By default, the voice VLAN security mode is
enabled.
Related commands: display voice vlan
status.
Examples
# Disable the voice VLAN security mode.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] undo voice vlan security
enable