Server 2008 R2 netsh dhcp command problem


hi,

i configuring dhcp services on couple of 2008 r2 servers. in new scopes need configure different dns servers depending on clients class id. when using gui utility attempt contact dns servers, fails , asks if want add them anyway. fine clients able contact respective dns servers there no problem.

when try add these using netsh commands command fails error server x.x.x.x not valid dns server.

i have literally thousands of scopes create in near future need use command line, can suggest how can  use command netsh dhcp server <a href="file://\\">\\<servername> scope a.b.c.d set optionvalue 6 ipaddress user="<classid>" "x.x.x.x" "y.y.y.y" or other method scriptable? establishing routing between dhcp servers , of dns servers not option.

thanks

chris

hi chris,

thank post.

run "netsh dhcp server set optionvalue" show command syntax. find forceflag parameters resolve issue. need add dhcpfullforce ahead of option value like:
netsh dhcp server <a href="\\<servername">file://\\">\\<servername> scope a.b.c.d set optionvalue 6 ipaddress user="<classid>" dhcpfullforce "x.x.x.x" "y.y.y.y"

ps: show “xxx not valid dns server” servers has been added force.

if there more inquiries on issue, please feel free let know.

regards,
rick tan
technet subscriber support
if technet subscription user , have feedback on our support quality, please send feedbackhere.


rick tan

technet community support




Windows Server  >  Network Infrastructure Servers



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL