如何启用 Dell EMC Networking N 系列交换机上的语音 VLAN 功能

Summary: 如何使用 Dell N 系列交换机上的语音 VLAN

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

功能描述

Dell EMC Networking N 系列交换机上语音 VLAN 功能用来针对时间敏感的 Voice over IP (VoIP) 流量实现优先通信。此功能允许 N 系列交换机在每个端口基础上从数据流量中识别和分离 VoIP 流量,并使管理员能够为这些端口上接收的 VoIP 流量设置差分服务代码点 (DSCP) 或 802.1p 优先级值。

 

语音 VLAN 功能只能在 6.5.1.x 以下操作系统版本中的常规模式接口上进行配置。在 6.5.1.x 及更高版本中,增加了使用访问模式接口,作为一个选项。  在访问模式下配置端口时,单个语音设备可以验证到语音 VLAN。  在任何版本上连接到语音设备时,干线模式端口上不支持语音 VLAN 功能,但是,干线模式端口可以将语音 VLAN 流量传递到另一台交换机。

 

默认情况下,全局禁用语音 VLAN 功能,必须先在每个接口上启用和配置该功能,然后才能进行 VoIP 流量优先级设定。

 

HOW12385_zh_CN__1icon 语音 VLAN 功能与接口自动 VoIP 功能不兼容。默认情况下,所有接口上都禁用自动 VoIP 功能。在启用语音 VLAN 之前,请使用命令 show switchport voice 验证是否已禁用接口自动 VoIP 功能。

 
 

启用语音 VLAN(对于 6.5.1.x 以下的固件版本) 

1.  全局启用语音 VLAN 功能。

Dell# configure 
Dell(config)# voice vlan

 

2.  使用无标记的数据流量和有标记的 VoIP 流量 VLAN 配置常规模式的接口。在下面的示例配置中,VLAN 5 为无标记的数据流量,VLAN 10 被标记为 VoIP 流量。

Dell(config)# interface GigabitEthernet 1/0/1
Dell(config-if)# switchport mode general
Dell(config-if)# switchport general pvid 5
Dell(config-if)# switchport general allowed vlan add 5 untagged
Dell(config-if)# switchport general allowed vlan add 10 tagged

 

3.  为 VoIP 流量 VLAN 设置语音 VLAN 优先级。

Dell(config-if)# voice vlan 10

 

启用语音 VLAN(对于 6.5.1.x 及更高的固件版本)

1.全局启用语音 VLAN 功能。

Dell# configure 
Dell(config)# switchport voice vlan


2.配置接口为无标记数据流量和有标记 VoIP 流量 VLAN 的常规模式,或无标记数据流量 VLAN 的访问模式。在下面的示例配置中,VLAN 5 为无标记的数据流量,VLAN 10 被标记为 VoIP 流量。

常规模式交换机端口配置:
Dell(config)# interface gigabitethernet 1/0/1
Dell(config-if)# switchport mode general
Dell(config-if)# switchport general pvid 5
Dell(config-if)# switchport general allowed vlan add 5 untagged
Dell(config-if)# switchport general allowed vlan add 10 tagged

 

访问模式交换机端口配置:
Dell(config)# interface gigabitethernet 1/0/1
Dell(config-if)# switchport mode access
Dell(config-if)# switchport access vlan 5


3.为 VoIP 流量 VLAN 设置语音 VLAN 优先级。

Dell(config-if)# switchport voice vlan 10


 

其他语音 VLAN 命令

使用命令 show voice vlan 检查全局语音 VLAN 功能状态。
 
Dell# show voice vlan

管理模式...............Enable

使用命令 show voice vlan interface 检查某个接口上的语音 VLAN 功能状态。
 
Dell# show voice vlan interface gigabitethernet 1/0/1

接口......................................Gi1/0/1
语音 VLAN 接口模式......................已启用
语音 VLAN COS 覆盖........................错
语音 VLAN DSCP 值..........................46
语音 VLAN 端口状态.........................已禁用
语音 VLAN 验证......................已启用



其他命令


使用命令 show switchport voice 查看所有接口上自动 VoIP 功能的状态。

Dell# show switchport voice

接口 自动 VoIP 模式 流量类别
---------  -------------- ------------------
Gi1/0/1    已禁用       6
Gi1/0/2    已禁用       6
Gi1/0/3    已禁用       6
(输出有删节)

通过使用接口命令 no switchport voice detect auto 禁用某个接口上的自动 VoIP 功能。

Affected Products

PowerSwitch N1100-ON Series, PowerSwitch N1500 Series, PowerSwitch N2000 Series, PowerSwitch N2100 Series, PowerSwitch N3000 Series, Dell EMC PowerSwitch N3100 Series, PowerSwitch N4000 Series
Article Properties
Article Number: 000120400
Article Type: How To
Last Modified: 05 Jun 2025
Version:  7
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.