# Programming the DHCP Server

IMPORTANT: DHCP options 128-135 used to configure legacy Mitel IP endpoints have been reclassified as public options by the Internet Engineering Task Force (see RFC 2133 and RFC 3925). To comply with the change, Mitel recommends using either option 43 or 125, depending on the server's ability to support them and on administrator preference. The embedded server supports both options; 125 is the factory-programmed default. The old options can still be used to provide backward compatibility with IP sets that have yet to be upgraded with firmware that supports the new options. After the upgrade, the old options may be removed to prevent future conflicts with standard use or other vendors' use of these options. The following procedure applies to new installations only. For upgrade procedures, see the MiVoice Business Technician's Handbook.

NOTE: 69xx IP Phones do not support DHCP Options 128 through 130.

When you program the DHCP server in MiVoice Business, the following conditions apply.

- You must populate the subnets that you want the DHCP server to respond to. By default, the subnet 192.168.1.0 is assigned. If different subnets will be used in your installation, then delete this default subnet.

- Configure the DHCP options that you want applied to the subnets. Apply each option to the defined subnets at one of the following scopes: Global, Subnet, or Range. The DHCP server responds with option information to DHCP requests based on the priority of the scope setting. The highest priority is Range, followed by Subnet, and lastly Global. A request from a subnet, or scope, that is not defined will not elicit a DHCP response.

- If you deleted the default subnet of 192.168.1.0, the associated DHCP option information for this subnet is ignored. However, you should delete any DHCP options assigned to this subnet as a precautionary measure.

- 69xx IP Phones must get their firmware from an external TFTP server when there are more than 200 of them on a 3300 ICP controller or 1500 on all MiVoice Business server variants. If you have these devices in your network, configure DHCP option 66 to point the phones to the external server.

When you program the DHCP server on a Windows 2019 server, ensure the following:

- The DHCP server is deployed.

1. Start Server Manager.

2. On the Manage menu, click Add Roles and Features.

3. Select Server Roles, and select the DHCP Server check box under Roles.

- Download the DHCP Config Helper application from Software Download Center (under the MiVoice Business category).

## Programming

- To program the DHCP server in MiVoice Business (applies to all platforms except Container-based MiVoice Business (cMiVB)), refer to Configuration > DHCP in the Server Manager Help.

- To program an external Windows 2019 DHCP server (applies to Container-based MiVoice Business (cMiVB):

1. In the Windows 2019 server, Start Server Manager.

2. On the Tools menu, click DHCP.
   The DHCP window is displayed.

3. In the left pane, navigate to DHCP > server name> IPv4.

4. Right-click IPv4, and click New Scope.
   The New Scope Wizard window is displayed.

5. Follow the wizard to enter the following details (skip rest of the wizard windows that are not listed below by clicking Next):

- Scope Name (for example, VOIPScope)

- IP Address Range

- Configure DHCP Options

- Select Yes, I want to configure these options now.

- Router (Default Gateway)

- Domain Name and DNS Servers (if applicable)

- Activate Scope

- Select No, I will activate this scope later.

- Click Finish.

6. In the left pane, navigate to DHCP > server name> IPv4.

7. Right-click IPv4, and click Set Predefined Options.
   The Predefined Options and Values window is displayed.

8. Click Add.
   The Option Type window is displayed.

9. Enter the following, and click OK.

10. Name - Mitel option

11. Data type - Encapsulated

12. Code - 125 or 43

13. Description - For Mitel phone

10. In the Windows 2019 server, start the DHCP Config Helper application.

NOTE: You can download the DHCP Config Helper application from Software Download Center (under the MiVoice Business category).

11. Enter the following:

12. TFTP Server Address ( sw_tftp ) - FQDN of the TFTP server provided in the welcome e-mail.

13. Call Server Address [ call_srv ] - FQDN of the call server provided in the welcome e-mail.

14. VLAN ID [ vlan ] (if applicable)

15. Diffserv Codepoint (dscp) (if applicable)

12. Click Update Display.

NOTE: The Update Display button is not available until you specify the mandatory fields.

13. Click Copy Hex Bytes to clipboard, and past the Hex Bytes to a txt file using the Notepad application.

14. In the Windows 2019 server, start Windows PowerShell.

15. Enter the following commands:

1. netsh

2. dhcp

3. server

4. scope <ip address of the scope>

5. set optionvalue 125 ENCAPSULATED <paste the Hex Bytes from the txt file)

16. In the DHCP window, in the left pane, navigate to DHCP > server name > IPv4 > Scope.

17. Click Scope Options.
    The DHCP Option 125 is displayed on the right side of the pane.

NOTE: If the DHCP Option is not displayed, then on the Action menu, click Refresh.

15. In the DHCP window, in the left pane, navigate to DHCP > server name > IPv4.

16. Right-click Scope and click Activate.