Subscribe via RSS Feed Connect on LinkedIn

Setting Up DHCP Server Options Manually for Lync 2010/2013 Phones

02/02/2013 11 Comments

Lync Phone Edition requires a number of DHCP options to allow the phones to “find their way home” to the pool and sign in. The setup is the same for 2010 and 2013.

The Options required are:

  • Option 42: NTP Server
  • Option 43: Certificate Service Provisioning URL
  • Option 120: SIP Server

 

These can be worked out and setup on a DHCP server via an exe and a .bat file Tom Pacyk has a good post on the automatic deployment route here and Jeff Schertz has lots of detail on the options here

The bat file route works great, but often you’ll find Admins understandably nervous when you hand then an .exe .bat to run on their DHCP server (and the exe relies on Visual C++ Redistributable) , but fear not, you can setup all the options manually.

I’m doing this for Lync 2013 with Server 2012, but the steps for Lync 2010 and 2003/2008/R2 DHCP servers are similar.

 

DHCPUtil is at C:\Program Files\Common Files\Microsoft Lync Server 2013

image

The following command will generate the input values we need

DHCPUtil.exe -SipServer lonlyncpool01.lab1.com –WebServer  lonlyncpool01webint.lab1.com

image

 

Scope before Options are set

image

 

First We’ll point to an NTP Server

Server Options/Configure Options

image

image

NTP Server added

]image

 

The other options require
• Option 43: Certificate Service Provisioning URL
• Option 120: SIP Server

First we define a new vendor class.

image

Click Add and type the following, you need to Type the ASCII part, that will generate the Binary. Check your numbers match for typo’s.

 

dhcpvendor

 

 

 

 

 

 

 

 

 

 

 

 

image

image

image

image

image

image

We can see all these options in place

image

Back in Predefined Options, Choose DHCP Standard Options, Add…

image

image

Next

Server Options/ Configure Options

image

image

Tick each option and add the info generated in DHCPUtil

image

Note if you make a typo you have to delete the whole field and retype it, you can’t edit “mid string”. Also watch out for the initial “.” that starts the ASCII string, you ‘ll need to delete that.

image

image

image

image

image

And Under Server Options, DHCP Standard Options, choose 120 UCSipServer and

image

image

Time Server

image

DNs Search List

image

Jeff also recommends adding the 004 Time Server value (and be sure to enter your time server in DNS records as per the article)

image

 

You should have the following server options

image

and scope options

image

 

You can test if your DHCP config is correct from a machine that would hit that DHCP server and DHCPUtil.exe -emulateclient

It will send a broadcast out

image

and should get a response with the options and success

image

 

Test-CsPhoneBootStrap is also a useful test

image

If you are hitting any issues double check your input for typo’s, it’s really easy to have an single character error, or even “.” that will stop the options working

Take a second to share this, thanks, TomTwitter16LinkedIn12Facebook3Google+0
Tom Arbuthnot

Tom Arbuthnot

Managing Consultant at Modality Systems
Tom Arbuthnot is a Microsoft Lync Certified Master and MVP. He is currently Managing Consultant at Modality Systems. Tom is actively involved in the global Unified Communications community. He is a founding member of the Microsoft UC User Group London, a contributing writer to Lync Server 2013 Unleashed and a technical reviewer for Trainsignal. Modality Systems is a UC Centre of Excellence – specializing in strategy, infrastructure, user adoption, managed services and software development.
Tom Arbuthnot
Tom Arbuthnot
Filed in: Lync, Microsoft • Tags: , ,

Comments (11)

Trackback URL | Comments RSS Feed

  1. VCS says:

    Thanks for the excellent write-up. But one question, how would you add two pools/front-end servers to the SipServer value? A customer was asking for this the other day and I cannot find any references on how to do this anywhere. I have tried comma delimiting the server names but that doesn’t seem to work. Any suggestions?

  2. Selahattin says:

    Hi there,

    As you mentioned I have applied one by one all of the these instructions , but when running DHCPUtil.exe -emulateclient command from any other machine then I am getting the following error. I can be able to access correctly to the “https://aaa.domain.com:443/CertProv/CertProvisioningService.svc” from anywhere.

    DHCP Vendor Info(43) = (Length:5) UNAP(DC034E4150)

    Result : Failed 1.

    Kind Regards,

  3. james jiang says:

    Hi Tom,

    This is really useful for us, but we are having problems when trying to deploy Lync phone (CX600) into voice vlan, it works when the data and voice in the same vlan, but not working on separated vlan, do they have different to setup vlans?

    like I want:
    data in vlan 10: 192.168.10.0/24
    lync phone in vlan 11: 192.168.11.0/24

    where I can setup vlan-id for the phones?

    Thanks,

  4. Ken Barnett says:

    you can also try using option 43 option 10 (0A) ie in your case 0a02000b.
    where 0a is the option 02=1/2 of # of bytes and 000b = 11.

  5. kumar says:

    Hi,

    I have started the Lync 2010- polycom cx3000 configuration and also i followed the steps from http://blog.schertz.name/2010/12/configuring-lync-server-for-phone-edition-devices/ and from http://technet.microsoft.com/en-us/library/gg398261(v=ocs.14).aspx.

    But still i am getting error “certificate web service cannot be found pls contact your support team ” after scratched my head .

    Let me explain the scenario , before going to blast with production environment me and my customer decided to test with lab environment . so we created the test vlan in dhcp server . we enabled the dhcp options as suggested by jeff blog in test VLAN .

    But dns records like (_ntp._udp.domain.com , time.domain.com , ucupdates-r2.domain.com) not yet created why because dns server is in production environment. Still time also not synchronizing , and time is showing wrong when i have checked with the device system information .

    Also i updated latest ucupdates.exe in the lync control panel . But device was not getting update.

    Please anyone help me , thanks in advance.

    • kumar says:

      I unable to access the polycom cx3000 through web interface also….to do the manual change

Leave a Reply