Syntax
display voice vlan error-info
View
Any view
Parameter
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.
Example
# Display the ports on which voice VLAN
fails to be enabled.
<H3C> display voice vlan
error-info
Fail to apply voice VLAN ACL rules
to the following port(s):
Ethernet1/0/10 Ethernet1/0/15
Syntax
display voice vlan oui
View
Any view
Parameter
None
Description
Use the display voice vlan oui command
to display the currently supported OUI addresses and the related information.
Related command: voice vlan,
voice vlan enable.
Example
# Display the OUI addresses and the related
information of the voice VLAN.
<H3C> 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
Parameter
None
Description
Use the display voice vlan status
command to display voice VLAN-related information, including voice VLAN
operation mode, port mode (manual or automatic ), and so on.
Related command: voice vlan, voice
vlan enable.
Example
# Display the information about the voice
VLAN.
<H3C> 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
--------------------------------
Ethernet1/0/2 AUTO
Ethernet1/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 a port listed in this field may not currently
operate in a voice VLAN. To view the ports operating in the voice VLAN currently,
use the display vlan command, which is described in section 1.1.4 “display vlan”.
Syntax
display vlan vlan-id
View
Any view
Parameter
vlan-id:
Voice VLAN ID in the range of 1 to 4094. VLAN 1 can not be enabled with voice
VLAN function.
Description
Use the display vlan command to
display all the ports in the voice VLAN currently.
Related command: voice vlan.
Example
# Display all the ports in the current
voice VLAN, assuming that the current voice VLAN is VLAN 6.
<H3C> display vlan 6
VLAN ID: 6
VLAN Type: static
Route Interface: not configured
Description: VLAN 0006
Name: VLAN 0006
Tagged Ports:
Ethernet1/0/5
Untagged Ports:
Ethernet1/0/6
The output indicates that Ethernet1/0/5 and
Ethernet1/0/6 are in the voice VLAN currently.
Syntax
voice vlan vlan-id enable
undo voice vlan enable
View
System view
Parameter
vlan-id: ID
of the VLAN that needs to be enabled with the voice VLAN function, ranging from
2 to 4094.
Description
Use the voice vlan command to enable
voice VLAN globally.
Use the undo voice vlan enable command
to disable voice VLAN globally.
Caution:
l
If you enable the voice VLAN function for a
specified VLAN, the specified VLAN must exist, otherwise, your configuration
fails.
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 command: display voice vlan
status.
Example
# Create VLAN 2, and enable the voice VLAN
function on it.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] vlan 2
[H3C-vlan2] quit
[H3C] 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.
[H3C] 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
Parameter
minutes:
Aging time (in minutes) to be set for a voice VLAN, ranges from 5 to 43,200.
Description
Use the voice vlan aging command to
set the aging time for a voice VLAN.
Use the undo voice vlan aging
command to restore the default value.
By default, the aging time for a voice VLAN
is 1,440 minites.
Related command: display voice vlan
status.
Example
# Set the aging time of the voice VLAN to
100 minutes.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] voice vlan aging 100
Syntax
voice vlan enable
undo voice vlan enable
View
Ethernet port view
Parameter
None
Description
Use the voice vlan enable command to
enable voice VLAN on a port.
Use the undo voice vlan enable
command to disable voice VLAN on a port.
The voice VLAN function takes effect on a
port only when it is enabled in both system view and port view. Note that the
operation to enable the voice VLAN function for a port is independent of that
to enable the function globally, which means you may first enable the function
on a port and then enable it globally.
Related command: display voice vlan
status.
Example
# Enable the voice VLAN function on Ethernet1/0/2.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface Ethernet 1/0/2
[H3C-Ethernet1/0/2] voice vlan enable
Syntax
voice vlan mac-address oui mask oui-mask [ description text
]
undo voice vlan mac-address oui
View
System view
Parameter
oui: MAC
address, in the format of H-H-H.
oui-mask:
MAC address valid length, indicated by a mask in the format of H-H-H.
text:
Description string of the MAC address, containing 1 to 30 characters.
Description
Use the voice vlan mac-address
command to set a MAC address used by a voice VLAN to identify a voice device.
Use the undo voice vlan mac-address
command to cancel the configuration.
The maximum number of MAC addresses can be
identified by the OUI address system is 16. If the number increases, the system
processes no more. After a switch starts, there are five default OUI addresses.
Table 1-2 Default
OUI addresses of a switch
|
Number
|
OUI addresses
|
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 command: display voice vlan oui.
Example
# Set 00aa-bb00-0000 as an OUI address,
with the description string being “ABC”.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] 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
Parameter
None
Description
Use the voice vlan mode auto command
to configure the voice VLAN operation mode on an Ethernet port to automatic.
Use the undo voice vlan mode auto
command to configure the voice VLAN operation mode on an Ethernet port to
manual.
By default, the voice VLAN operation mode
on an Ethernet port is automatic.
Related command: display voice vlan
status.
Example
# Configure the voice VLAN operation mode
on Ethernet1/0/2 to manual.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface Ethernet 1/0/2
[H3C-Ethernet1/0/2] undo voice vlan mode
auto
Syntax
voice vlan security enable
undo voice vlan security enable
View
System view
Parameter
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 command: display voice vlan
status.
Example
# Disable the voice VLAN security mode.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] undo voice vlan security enable