Home » Archive » Configuring DHCP Options for Lync Phone Edition Manually

Configuring DHCP Options for Lync Phone Edition Manually

I came across a weird issue on a client site where the dhcputil script did not apply all the options required for Lync Phone Edition devices to connect to Lync. In order to get around this problem I had to create the DHCP Options manually.

To do this you still need to run dhcputil.exe file in order to gather the binary string for each MSUCClient option.

  1. Open DHCP MMC on the DHCP Server and right click on the ipv4 server. Choose Define Vendor Classes
  2. Click Add
  3. In the display name enter MSUCClient and Description write UC Vendor Class Id
  4. In the binary string remove the double zero and enter the following Binary 4D532D55432D436C69656E74 This should reveal as ASCII MS-UC-Client
  5. Press OK and Close
  6. Next right click on the ipv4 server. Choose Set Predefined Options
  7. Option Class leave as DHCP Standard Options and Press Add
  8. On the Option Type window, in the Name field enter UCSipServer. Choose Binary as the data type. In the code field enter 120. In the description enter UC Sip Server and press OK
  9. Next repeat step 8 substituting with the following information; Name: DNS Search List, Data Type: String, Code 119, Description DNS Search List and press OK
  10. Change the Option Class to MSUCClient and press Add
  11. In the Option Type enter the Name as: UCIdentifier, Data Type: Binary, Code 1, Description UC Identifier and Press OK
  12. Repeat step 11 with the following information
    Name: URLScheme
    Data Type: Binary
    Code: 2
    Description: URL Scheme
    Name: WebServerFqdn
    Data Type: Binary
    Code: 3
    Description: Web Server FQDN
    Name: WebServerPort
    Data Type: Binary
    Code: 4
    Description: Web Server Port
    Name: CertProvRelPath
    Data Type: Binary
    Code: 5
    Description: Certificate Server Relative Path
  13. Now you will need to run your DHCPUtil.exe utility to gather the Binary needed for your Options. Run the following commanddhcputil.exe -SipServer <frontend pool fqdn> -WebServer <frontend pool fqdn> and press enter
  14. You should get an output similar to this
  15. Take notice of the sub-options for full option 43 and option 120. These will be custom to your deployment. If you are wondering, we don’t need to create option 43 when setting the sub options.
  16. Now on the DHCP Server or Scope options depending on where you want to set these options right click and select configure options
  17. Click on the Advanced tab and from Vendor Class select MSUCClient
  18. Select 001 UCIdentifier and enter the binary string from sub-option 1 on the dhcputil output. Be careful to first remove the double zero before you start otherwise you need to delete the string and start again!. In my case the binary string would be 4D532D55432D436C69656E74 This should translate to ASCII MS-UC-Client
  19. Next select 002 URLScheme and enter the binary string of sub-option 2 (again remove the 00) In my case this would be 6874747073 which translates to ASCII https
  20. Next select 003 WebServerFqdn and enter the binary string of sub-option 3 (remove 00). In my case this would be 6C7330312E686F73746564686F7573652E636F2E756B which translates to the FQDN of the frontend pool ls01.hostedhouse.co.uk
  21. Next select 004 WebServerPort and enter the binary string from sub-option 4 (remove 00) 343433 . This translates to ASCII 443
  22. Finally select 005 CertProvRelPath and enter the binary string from sub-option 5 (remove 00). In my case this would be 2F4365727450726F762F4365727450726F766973696F6E696E67536572766963652E737663 which translates to ASCII /CertProv/CertProvisioningService.svc
  23. Now change the vendor class back to DHCP Standard Options and Select 120 UCSipServer (remove the 00). Add in the binary string from Option 120 on the dhcputil output. In my case this is 00046C7330310B686F73746564686F75736502636F02756B00 which translates to my frontend server ..ls01.hostedhouse.co.uk
  24. Now choose Option 119 DNS Search List and enter “LOCAL.DOMAIN” (with Quotes) e.g. hostedhouse.co.uk
  25. Now Choose Option 42 NTP Servers and enter the IP address of your domain time server e.g.

This completes the manual process of creating DHCP Options to support Lync Phone Edition

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: