Got it

Configuring a DHCP Server on a Switch to Provide VoIP Access

Latest reply: Jun 28, 2018 17:21:05 2491 6 4 0 0

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 

7e33bade110e434d84554a9047aa10ce


 

Configuration Roadmap

The configuration roadmap is as follows:

  1. Create VLANs.

  2. Configure the link type and default VLAN of the interface connected to the IP phone.

  3. Configure the interface to trust the 802.1p priority of packets.

  4. Configure an IP address pool.

  5. Configure Option 184 in the address pool.

  6. 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

  1. 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

  2. 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

  3. Configure the interface to trust the 802.1p priority of packets.

    [Quidway] interface xgigabitethernet 0/0/1[Quidway-XGigabitEthernet0/0/1] trust 8021p

  4. Enable DHCP globally,

    [Quidway] dhcp enable

  5. 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.

thanks for sharing!
View more
  • x
  • convention:

well described doc. thanks
View more
  • x
  • convention:

Thank you for sharing a good technical case
View more
  • x
  • convention:

really well explained and very good documented. thank you for sharing
View more
  • x
  • convention:

Great!Configuring a DHCP Server on a Switch to Provide VoIP Access-2687777-1
View more
  • x
  • convention:

Very good one!Configuring a DHCP Server on a Switch to Provide VoIP Access-2689515-1
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.