- Table of Contents
-
- H3C WX3000 Series Unified Switches Switching Engine Command Reference-6W103
- 00-Preface
- 01-CLI Command
- 02-Login Command
- 03-Configuration File Management Command
- 04-VLAN Command
- 05-Auto Detect Command
- 06-Voice VLAN Command
- 07-GVRP Command
- 08-Basic Port Configuration Command
- 09-Link Aggregation Command
- 10-Port Isolation Command
- 11-Port Security-Port Binding Command
- 12-DLDP Command
- 13-MAC Address Table Management Command
- 14-MSTP Command
- 15-802.1x and System Guard Command
- 16-AAA Command
- 17-MAC Address Authentication Command
- 18-IP Address and Performance Command
- 19-DHCP Command
- 20-ACL Command
- 21-QoS-QoS Profile Command
- 22-Mirroring Command
- 23-ARP Command
- 24-SNMP-RMON Command
- 25-Multicast Command
- 26-NTP Command
- 27-SSH Command
- 28-File System Management Command
- 29-FTP-SFTP-TFTP Command
- 30-Information Center Command
- 31-System Maintenance and Debugging Command
- 32-VLAN-VPN Command
- 33-HWPing Command
- 34-DNS Command
- 35-Smart Link-Monitor Link Command
- 36-PoE-PoE Profile Command
- 37-Routing Protocol Command
- 38-UDP Helper Command
- 39-Index
- Related Documents
-
Title | Size | Download |
---|---|---|
06-Voice VLAN Command | 55.67 KB |
Voice VLAN Configuration Commands
display voice vlan error-info
Syntax
display voice vlan error-info
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.
<device> display voice vlan error-info
Fail to apply voice VLAN ACL rules to the following port(s):
GigabitEthernet1/0/10 GigabitEthernet1/0/15
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 currently supported OUI addresses and the related information.
Related commands: voice vlan, voice vlan enable.
Examples
# Display the OUI addresses and the related information of the voice VLAN.
<device> 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
display voice vlan status
Syntax
display voice vlan status
View
Any view
Parameters
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 commands: voice vlan, voice vlan enable.
Examples
# Display the information about the voice VLAN.
<device> 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 display voice vlan status command output description
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. |
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 “display vlan”.
display vlan
Syntax
display vlan vlan-id
View
Any view
Parameters
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 commands: voice vlan.
Examples
# Display all the ports in the current voice VLAN, assuming that the current voice VLAN is VLAN 6.
<device> 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 currently.
voice vlan
Syntax
voice vlan vlan-id enable
undo voice vlan enable
View
Parameters
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.
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 commands: display voice vlan status.
Examples
# Create VLAN 2, and enable the voice VLAN function on it.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] vlan 2
[device-vlan2] quit
[device] 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.
Can't change voice vlan configuration when other voice vlan is running
voice vlan aging
Syntax
voice vlan aging minutes
undo voice vlan aging
View
System view
Parameters
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 minutes.
Related commands: display voice vlan status.
Examples
# Set the aging time of the voice VLAN to 100 minutes.
System View: return to User View with Ctrl+Z.
[device] voice vlan aging 100
voice vlan enable
Syntax
voice vlan enable
undo voice vlan enable
View
Ethernet port view
Parameters
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 commands: display voice vlan status.
Examples
# Enable the voice VLAN function on GigabitEthernet 1/0/2.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] interface GigabitEthernet 1/0/2
[device-GigabitEthernet1/0/2] voice vlan enable
voice vlan legacy
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 the WX3000 series devices and other vendors’ voice devices by automatically adding the voice VLAN tag to the voice data coming from other vendors’ voice devices.
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 GigabitEthernet 1/0/1.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] interface GigabitEthernet 1/0/1
[device-GigabitEthernet1/0/1] voice vlan legacy
voice vlan mac-address
Syntax
voice vlan mac-address oui mask oui-mask [ description text ]
undo voice vlan mac-address oui
View
System view
Parameters
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 the device starts, there are five default OUI addresses.
Table 1-2 Default OUI addresses of the device
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 commands: display voice vlan oui.
Examples
# Set 00aa-bb00-0000 as an OUI address, with the description string being “ABC”.
System View: return to User View with Ctrl+Z.
[device] voice vlan mac-address 00aa-bb00-0000 mask ffff-ff00-0000 description ABC
voice vlan mode
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 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 commands: display voice vlan status.
Examples
# Configure the voice VLAN operation mode on GigabitEthernet 1/0/2 to manual.
System View: return to User View with Ctrl+Z.
[device] interface GigabitEthernet 1/0/2
[device-GigabitEthernet1/0/2] undo voice vlan mode auto
voice vlan security enable
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.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] undo voice vlan security enable