Configuring DHCP Servers Manually on 32Bit and/or 64Bit Windows Server (Option 120 and Option 43)

Configuring DHCP Servers Manually on 32Bit and/or 64Bit Windows Server (Option 120 and Option 43)

I needed to configure the three DHCP Servers. One of them was located on 64Bit Windows 2008R2 and two of them were located on 32Bit Windows 2003R2.  First of all, I had to copy DHCPUtil.exe and DHCPConfigSctip.bat files from Lync server to my DHCP server.  The files were copied from Lync server.  You can find them in “C:\Program Files\Common Files\Microsoft Lync Server 2010” folder.

After that, I run “DHCPUtil.exe -SipServer lyncsrv.domain.com” on the Lync server, and received the following output:

Configuring DHCP Servers Manually on 32Bit and/or 64Bit Windows Server (Option 120 and Option 43)

Please note that I run this command on the Lync server, not on DHCP servers.  Output of the command gives me two options:

  1. Run DHCPUtil on the DHCP Server: use ‘-RunConfigScript’ switch
  2. Run the following command on the DHCP Server (modify the path of DHCPConfigScript.bat appropriately): “C:\Program Files\Common Files\Microsoft Lync Server 2010\DHCPConfigScript.bat” Configure MS-UC-Client 00076C796E6373727606646F6D61696E03636F6D00 4D532D55432D436C69656E74 6874747073 6C796E637372762E646F6D61696E2E636F6D 343433 2F4365727450726F762F4365727450726F766973696F6E696E67536572766963652E737663

Option 1 is for 64Bit machined and option 2 is for 32Bit machines.

On my 64Bit Windows Server 2008R2 DHCP Server, all I had to do is to run “DHCPUtil.exe -SipServer lyncsrv.domain.com -RunConfigScript” command. And that was it, it was very simple and easy.  DHCP Server is configured and ready to use.

I also had Windows 2003R2 32Bit servers.   This meant that I had to run the following command on my DHCP server: “DHCPConfigScript.bat Configure MS-UC-Client 00076C796E6373727606646F6D61696E03636F6D00 4D532D55432D436C69656E74 6874747073 6C796E637372762E646F6D61696E2E636F6D 343433 2F4365727450726F762F4365727450726F766973696F6E696E67536572766963652E737663”

I run above command on one of the servers and everything worked great.  It created all DHCP options that are needed and everything looked good.

I had problem on my second server.  The script told me that command was run successfully, but it added only one option called Unknown.  Obviously, this is not what I needed.

I deleted the Unknown option, and tried to run the same command a few more times. Yeah, I know, usually it does not help, but I wanted to try it.  Well, it did not work.

I deleted the Unknown option one more time, and decided manually to create necessary options.

These are the steps that I had to do:

Open DHCP Server Console and right click on the server name.

Click on Set Predefined Options.

Click on Add button and create a new Option Type as it is shown on the picture.

Configuring DHCP Servers Manually on 32Bit and/or 64Bit Windows Server (Option 120 and Option 43)

Clicked OK twice and clicked on the Server Options of the DHCP Server Console.

Now I had to check the same output that I saw before.

Configuring DHCP Servers Manually on 32Bit and/or 64Bit Windows Server (Option 120 and Option 43)

This shows the input for different options that have to setup manually.  It shows me what I need to enter for Option 120, and sub-options 1, 2, 3, 4, and 5.

Right click on the Server Options and click on Configure Options.

Select “120 SIP Server” and enter the first set of number that you see next to the Option 120.  The number should be entered in the Binary Section of the Option 120.  In this case it is 00076C796E6373727606646F6D61696E03636F6D00.

Configuring DHCP Servers Manually on 32Bit and/or 64Bit Windows Server (Option 120 and Option 43)

The next step is to define new Vendor Class.

Right click on server name in the DHCP console and select Define Vendor Classes.

Enter the following: Display name is MSUCClient, Description is “UC Vendor Class ID”.  Enter MS-UC-Client in the ASCII Section.

Configuring DHCP Servers Manually on 32Bit and/or 64Bit Windows Server (Option 120 and Option 43)

Note: It did not work for me when I tried it the first time.  The error told me that the MSUCClient class was, but I could not see it or use it.  I had to open Command Prompt and use the following command:

“netsh dhcp server delete class MSUCClient”.

It worked after that.

Next step is to create sub-options 1 through 5.

Right click on the server name in DHCP Console and select Set Predefined Options.  In the Option Class select MSUCClient.

Create the following five options:

Configuring DHCP Servers Manually on 32Bit and/or 64Bit Windows Server (Option 120 and Option 43)

Configuring DHCP Servers Manually on 32Bit and/or 64Bit Windows Server (Option 120 and Option 43)

Configuring DHCP Servers Manually on 32Bit and/or 64Bit Windows Server (Option 120 and Option 43)

Configuring DHCP Servers Manually on 32Bit and/or 64Bit Windows Server (Option 120 and Option 43)

Configuring DHCP Servers Manually on 32Bit and/or 64Bit Windows Server (Option 120 and Option 43)

Close Predefined Options and Values dialog box.

Right click on the Server Options and click on Configure Options.

Click on Advanced tab and select MSUCClient in the Vendor class box.

Add options 001 through 005 exactly as we added Option 120, using the correct values that we received when we run “DHCPUtil.exe -SipServer lyncsrv.domain.com”.

In my case, the values are:

sub-option 1 UC Identifier: 4D532D55432D436C69656E74

sub-option 2 URL Scheme: 6874747073

sub-option 3 Web Server FQDN: 6C796E637372762E646F6D61696E2E636F6D

sub-option 4 Web Server Port: 343433

sub-option 5 Relative Path for Cert Prov: 2F4365727450726F762F43657274

That’s it.  Everything is setup.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s