Avatar of csh2010
csh2010
Flag for Saudi Arabia asked on

Lync 2013 DHCPUtil

Dear Experts
when i try to configure DHCPUtil for Lync 2013 everything goes ok but when i do emulate it will fail like below



C:\>Run the DHCPUtil.exe -SipServer: CSH-Lync2013.csh.com.sa -WebServer CSH-Lync
2013.csh.com.sa -RunConfigScript
'Run' is not recognized as an internal or external command,
operable program or batch file.

C:\>DHCPUtil.exe -SipServer: CSH-Lync2013.csh.com.sa -WebServer CSH-Lync2013.csh
.com.sa -RunConfigScript
SIP Server FQDN : CSH-Lync2013.csh.com.sa
Certificate Provisioning Service URL : https://CSH-Lync2013.csh.com.sa:443/CertP
rov/CertProvisioningService.svc

Option 120:
000C4353482D4C796E63323031330363736803636F6D02736100

Vendor Class Identifier: MS-UC-Client
Option 43 (for vendor=MS-UC-Client):
        Full Option 43 value (Length: 180) : 010C4D532D55432D436C69656E740205687
474707303174353482D4C796E63323031332E6373682E636F6D2E7361040334343305252F4365727
450726F762F4365727450726F766973696F6E696E67536572766963652E737663
        sub-option 1 <UC Identifier>: 4D532D55432D436C69656E74
        sub-option 2 <URL Scheme>: 6874747073
        sub-option 3 <Web Server FQDN>: 4353482D4C796E63323031332E6373682E636F6D
2E7361
        sub-option 4 <Port>: 343433
        sub-option 5 <Relative Path for Cert Prov>: 2F4365727450726F762F43657274
50726F766973696F6E696E67536572766963652E737663
Executing command:
"C:\DHCPConfigScript.bat" Configure MS-UC-Client 000C4353482D4C796E6332303133036
3736803636F6D02736100 4D532D55432D436C69656E74 6874747073 4353482D4C796E63323031
332E6373682E636F6D2E7361 343433 2F4365727450726F762F4365727450726F766973696F6E69
6E67536572766963652E737663

C:\>DHCPConfigScript.bat Configure MS-UC-Client 000C4353482D4C796E63323031330363
736803636F6D02736100 4D532D55432D436C69656E74 6874747073 4353482D4C796E633230313
32E6373682E636F6D2E7361 343433 2F4365727450726F762F4365727450726F766973696F6E696
E67536572766963652E737663

C:\>netsh dhcp server delete optionvalue 120

Command completed successfully.

C:\>netsh dhcp server delete optiondef 120

Command completed successfully.

C:\>netsh dhcp server delete class MSUCClient

Command completed successfully.

C:\>if /I Configure EQU Cleanup goto :EOF

C:\>netsh dhcp server add optiondef 120 UCSipServer Binary 0 comment="Sip Server
 Fqdn"

Command completed successfully.

C:\>netsh dhcp server set optionvalue 120 Binary 000C4353482D4C796E6332303133036
3736803636F6D02736100

Command completed successfully.

C:\>netsh dhcp server add class MSUCClient "UC Vendor Class Id" "MS-UC-Client" 1


Command completed successfully.

C:\>netsh dhcp server add optiondef 1 UCIdentifier Binary 0 Vendor=MSUCClient co
mment="UC Identifier"

Command completed successfully.

C:\>netsh dhcp server set optionvalue 1 Binary vendor=MSUCClient 4D532D55432D436
C69656E74

Command completed successfully.

C:\>netsh dhcp server add optiondef 2 URLScheme Binary 0 Vendor=MSUCClient comme
nt="URL Scheme"

Command completed successfully.

C:\>netsh dhcp server set optionvalue 2 Binary vendor=MSUCClient 6874747073

Command completed successfully.

C:\>netsh dhcp server add optiondef 3 WebServerFqdn Binary 0 Vendor=MSUCClient c
omment="Web Server Fqdn"

Command completed successfully.

C:\>netsh dhcp server set optionvalue 3 Binary vendor=MSUCClient 4353482D4C796E6
3323031332E6373682E636F6D2E7361

Command completed successfully.

C:\>if not 343433 == NULL (netsh dhcp server add optiondef 4 WebServerPort Binar
y 0 Vendor=MSUCClient comment="Web Server Port" )

Command completed successfully.

C:\>if not 343433 == NULL (netsh dhcp server set optionvalue 4 Binary vendor=MSU
CClient 343433 )

Command completed successfully.

C:\>netsh dhcp server add optiondef 5 CertProvRelPath Binary 0 Vendor=MSUCClient
 comment="Cert Prov Relative Path"

Command completed successfully.

C:\>netsh dhcp server set optionvalue 5 Binary vendor=MSUCClient 2F4365727450726
F762F4365727450726F766973696F6E696E67536572766963652E737663

Command completed successfully.

C:\>DHCPUtil.exe -EmulateClient
Starting Discovery ...
Sending Packet (Size: 280, Network Adapter: 192.168.1.21, Attempt Type: Broadcas
t only)
--Begin Packet--
DHCP: INFORM                (xid=98C1F545)
DHCP: Op Code           (op)      = 1
DHCP: Hardware Type     (htype)   = 6
DHCP: Hops              (hops)    = 0
DHCP: Transaction ID    (xid)     = 2562848069
DHCP: Seconds           (secs)    = 0
DHCP: Flags             (flags)   = 0000
DHCP: Client IP Address (ciaddr)  = 192.168.1.21
DHCP: Your IP Address   (yiaddr)  = 0.0.0.0
DHCP: Server IP Address (siaddr)  = 0.0.0.0
DHCP: Relay IP Address  (giaddr)  = 0.0.0.0
DHCP: Client HW Address (chaddr)  = 001A6B65C903
DHCP: Server Host Name  (sname)   =
DHCP: Boot File Name    (file)    =
DHCP: Magic Cookie                = 99.130.83.99
DHCP: Option Field
    DHCP: DHCP MESSAGE TYPE(  53) = (Length: 1) DHCP INFORM
    DHCP: Server Identifier(  54) = (Length: 0) 0.0.0.0
    DHCP: Client Identifier(  61) = (Length: 7) ¿ (01001A6B65C903)
    DHCP: SIP Server( 120)        = (Length: 0) enc:0  ()
    DHCP: Host Name(  12)         = (Length: 6) DC-SRV
    DHCP: Vendor Identifier(  60) = (Length: 12) MS-UC-Client
    DHCP: Param Req List(  55)    = (Length: 2) 120 43
    DHCP: Vendor Info(  43)       = (Length: 0)  ()
    DHCP: End of this option field
--End Packet--


Result: Failure =  1
Microsoft Server OSActive DirectoryChat / IM

Avatar of undefined
Last Comment
Cliff Galiher

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Cliff Galiher

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
csh2010

ASKER
ok thanks for your comment but i have one doubt that the web server name as it is the same name of front end is this make any issue?
Cliff Galiher

That could cause problems, but not based on the output you posted. Right now I'm just seeing the DHCPUtil creating the discover packet, but not getting *ANY* DHCP response, just an immediate failure. Which is a bit more fundamental to DHCP than a web server vs. a front end issue.
csh2010

ASKER
so do you suggest me to do dhcputil in other dhcp server i mean to build another dhcp server?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Cliff Galiher

No, just run the test on a client, not on the server.