1. Welcome Guest! In order to create a new topic or reply to an existing one, you must register first. It is easy and free. Click here to sign up now!.
    Dismiss Notice

Netsh - DHCP Scope

Discussion in 'Windows Home Server' started by net_admin, Aug 18, 2009.

  1. net_admin

    net_admin Guest

    Hi,

    Not sure if this is the correct place to post this, but I didn't find any
    DHCP section.

    I found the cmd line below can set the DNS servers for a DHCP scope, but the
    problem is that it will reset the primary and secondary. I'd like to reset
    the secondary only. Does anyone know how to do that?

    netsh dhcp server 192.168.0.2 scope 192.168.10.0 set optionvalue 006
    IPADDRESS 10.1.1.1 10.1.1.2

    Regards.
     
  2. Hello net_admin,

    It is a change on the DHCP scope, so overwrite it with the new address and
    keep the old one:

    netsh dhcp server 192.168.0.2 scope 192.168.10.0 set optionvalue 006 IPADDRESS
    10.1.1.1 newipaddress

    Best regards

    Meinolf Weber
    Disclaimer: This posting is provided "AS IS" with no warranties, and confers
    no rights.
    ** Please do NOT email, only reply to Newsgroups
    ** HELP us help YOU!!!

    <!--coloro:blue--><span style="color:blue <!--/coloro-->
    > Hi,
    >
    > Not sure if this is the correct place to post this, but I didn't find
    > any DHCP section.
    >
    > I found the cmd line below can set the DNS servers for a DHCP scope,
    > but the problem is that it will reset the primary and secondary. I'd
    > like to reset the secondary only. Does anyone know how to do that?
    >
    > netsh dhcp server 192.168.0.2 scope 192.168.10.0 set optionvalue 006
    > IPADDRESS 10.1.1.1 10.1.1.2
    >
    > Regards.
    > <!--colorc--><!--/colorc-->
     

Share This Page