Hi, there.
Networking Requirements
Data flows of the HSI, VoIP, and IPTV services are transmitted on the network. Users require high quality of the VoIP service. Therefore, voice data flows must be transmitted with a high priority. If a voice device supports DHCP and has a high 802.1p priority (for example, 5), you can configure LLDP and voice VLAN on the switch. Then the switch uses the DHCP protocol to deliver the voice VLAN ID to the voice device and does not change the packet priority.
As shown in below, the voice device does not support VLAN configuration. In this case, the DHCP server on the switch can deliver the VLANID to the voice device through Option 184.
Figure Configuring a DHCP server to provide VoIP access

Configuration Roadmap
The configuration roadmap is as follows:
Create VLANs.
Configure the link type and default VLAN of the interface connected to the IP phone.
Configure the interface to trust the 802.1p priority of packets.
Configure an IP address pool.
Configure Option 184 in the address pool.
Enable DHCP globally and configure the DHCP server on the VLANIF interface to allocate IP addresses using the global IP address pool.
Data Preparation
To complete the configuration, you need the following data:
Voice VLAN and VLAN through which the IP phone applies for an IP address: VLAN 2 and VLAN 6
Network segment of the IP address pool
Content of Option 184: voice-vlan 6
Procedure
Configure VLANs and interface on the Switch.
# Create VLAN 2 and VLAN 6.
<Quidway> system-view[Quidway] vlan batch 2 6
# Configure the link type and default VLAN of XGigabitEthernet0/0/1.
[Quidway] interface xgigabitethernet 0/0/1[Quidway-XGigabitEthernet0/0/1] port hybrid pvid vlan 2[Quidway-XGigabitEthernet0/0/1] port hybrid tagged vlan 6[Quidway-XGigabitEthernet0/0/1] port hybrid untagged vlan 2[Quidway-XGigabitEthernet0/0/1] quit
Configure an IP address pool on the Switch.
# Create an IP address pool.
[Quidway] ip pool ip_access
# Configure the address range in the IP address pool.
[Quidway-ip-pool-ip_access] network 192.168.10.1 mask 24[Quidway-ip-pool-ip_access] gateway-list 192.168.10.254[Quidway-ip-pool-ip_access] option184 voice-vlan 6
Configure the interface to trust the 802.1p priority of packets.
[Quidway] interface xgigabitethernet 0/0/1[Quidway-XGigabitEthernet0/0/1] trust 8021p
Enable DHCP globally,
[Quidway] dhcp enable
Create the VLANIF interface corresponding to the default VLAN of XGigabitEthernet0/0/1. Configure the DHCP server on the VLANIF interface to allocate IP addresses using the global address pool.
[Quidway] interface Vlanif2[Quidway-Vlanif2] ip address 192.168.10.1 255.255.255.0[Quidway-Vlanif2] dhcp select global
Configuration Files
Configuration file of the Switch
#
sysname Quidway
#
vlan batch 2 6
#
dhcp enable
#
ip pool ip_access
gateway-list 192.168.10.254
network 192.168.10.0 mask 255.255.255.0
option184 voice-vlan 6
#
interface Vlanif2
ip address 192.168.10.1 255.255.255.0
dhcp select global
#
interface XGigabitEthernet0/0/1
port hybrid pvid vlan 2
port hybrid tagged vlan 6
port hybrid untagged vlan 2
trust 8021p#
return
Thank you.




