locked
Changin the ip address of authorized dhcp server RRS feed

  • Question


  • 2 Servers were found in the directory service:

    We have two dhcp server  both are authorized and one is running(AD02)  at the same time , the other one (ad03)
    dhcp service has disabled and kept.


    recently ad03 we have changed the ip address of ad03 from 192.168.2.15 to  192.168.1.15

    but still if i run "Netsh dhcp show server" the second DHCP shows the old ip(192.168.2.15)

    How can i change without uninstalling dhcp role on the second server

    Netsh dhcp show server

            Server [AD02.test.local] Address [192.168.1.11] Ds location: cn=AD02
    .test.local

            Server [AD03.test.local] Address [192.168.2.15] Ds location: cn=ad03
    .test.local
    Friday, March 9, 2012 8:05 AM

Answers

  • Hello,

    Run this commands:

    Net stop dhcpserver

    Netsh DHCP delete server AD03.test.local 192.168.2.15

    Net start dhcpserver

    Netsh DHCP add server AD03.test.local 192.168.1.15

    Regards

    • Proposed as answer by Abhijit Waikar Friday, March 9, 2012 10:01 AM
    • Marked as answer by Rick Tan Monday, March 12, 2012 6:20 AM
    Friday, March 9, 2012 9:43 AM
  • Hello ,

    Try Kamal Instructions, If that is not giving any resolution then go ahead with ADSIEdit and change the DHCP entry to your new IP address and then check.

    Please check the below thread which discuss the same problem.

    http://social.technet.microsoft.com/Forums/en-US/winserverNIS/thread/9f508f75-c331-4363-867c-e0b35aa96acb/

    Regards,

    _Prashant_


    MCSA|MCITP SA|Microsoft Exchange 2003 Blog - http://prashant1987.wordpress.com Disclaimer: This posting is provided AS-IS with no warranties/guarantees and confers no rights.

    • Marked as answer by Rick Tan Monday, March 12, 2012 6:22 AM
    Friday, March 9, 2012 9:21 AM

  • Since you have changed the IP Address of the server prior to the unauthorization process.ouldn't verify the server name by ip address, it shows it as a missing object.On a Domain Controller, open an mmc and add the snap-in ADSI Edit.

    Right click on ADSI Edit and click connect to.

    In connection settings, connection point, select or type a Distinguished Name or Naming Context.  Enter CN=NetServices,CN=Services,CN=Configuration,DC=Your Domain,DC=com then click ok.

    Expand the default naming context, highlight the path in the left pane, and you should see CN=DhcpRoot on the right.

    Double click it, and edit the dhcpServers attribute to reflect the correct computers.

    Restart your dhcp service.  Then verify your list in Manage Authorized Servers... you may have to click the refresh button.

    Reference link:
    http://support.microsoft.com/kb/306925

    Hope this helps


    Best Regards,

    Sandesh Dubey.

    MCSE|MCSA:Messaging|MCTS|MCITP:Enterprise Adminitrator | My Blog

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    • Marked as answer by Rick Tan Monday, March 12, 2012 6:21 AM
    Sunday, March 11, 2012 11:16 PM

All replies

  • Go throuhgh below link which might be helpful .

    http://blogs.technet.com/b/networking/archive/2009/02/27/old-dhcp-servers-appear-in-the-list-of-authorized-servers-after-a-domain-rename.aspx

    http://www.windowsitpro.com/article/resource-kit/cool-things-to-do-with-netsh

    Regards,

    _Prashant_


    MCSA|MCITP SA|Microsoft Exchange 2003 Blog - http://prashant1987.wordpress.com Disclaimer: This posting is provided AS-IS with no warranties/guarantees and confers no rights.

    Friday, March 9, 2012 8:24 AM
  • Try by restarting DHCP server role on the server where u recently changed IP Address.

    Try to disalbe and re-enable the NIC.

    Try by restarting the server (DHCP)


    Kamal Sharma

    Friday, March 9, 2012 8:47 AM
  • Thanks

    The article says about removing the Old DHCP Servers appear in the list of Authorized servers after a Domain Rename

    My problem is , After changing the ip address of the Dhcp server ,  in the list of Authorized servers it still showing the old ipaddress

    I did the following  


    Start Adsiedit.msc.
    Open the configuration Container.
    Expand Services.
    Expand Net Services.

    i192.168.2.15$rcn=ad03.test.local$0x00000000$sad03.test.local$

    Actually the ip should be 192.168.1.15

    Friday, March 9, 2012 8:55 AM
  • Did you tried these steps too...

    Try by restarting DHCP server role on the server where u recently changed IP Address.

    Try to disalbe and re-enable the NIC.

    Try by restarting the server (DHCP)


    Kamal Sharma

    Friday, March 9, 2012 8:59 AM
  • Hello ,

    Try Kamal Instructions, If that is not giving any resolution then go ahead with ADSIEdit and change the DHCP entry to your new IP address and then check.

    Please check the below thread which discuss the same problem.

    http://social.technet.microsoft.com/Forums/en-US/winserverNIS/thread/9f508f75-c331-4363-867c-e0b35aa96acb/

    Regards,

    _Prashant_


    MCSA|MCITP SA|Microsoft Exchange 2003 Blog - http://prashant1987.wordpress.com Disclaimer: This posting is provided AS-IS with no warranties/guarantees and confers no rights.

    • Marked as answer by Rick Tan Monday, March 12, 2012 6:22 AM
    Friday, March 9, 2012 9:21 AM
  • Hello,

    Run this commands:

    Net stop dhcpserver

    Netsh DHCP delete server AD03.test.local 192.168.2.15

    Net start dhcpserver

    Netsh DHCP add server AD03.test.local 192.168.1.15

    Regards

    • Proposed as answer by Abhijit Waikar Friday, March 9, 2012 10:01 AM
    • Marked as answer by Rick Tan Monday, March 12, 2012 6:20 AM
    Friday, March 9, 2012 9:43 AM
  • Changing the IP of the DHCP server is not the big deal. You can unauthorized the DHCP server, remove the old IP from the AD database using ADSIEDIT.msc and authorize it again. The purpose of authorizing the DHCP server is to register the DHCP services in the AD.

    Run ipconfig /flushdns and ipconfig /registerdns to refresh the dhcp records in the DNS.


    Awinish Vishwakarma - MVP-DS

    My Blog: awinish.wordpress.com

    Disclaimer This posting is provided AS-IS with no warranties/guarantees and confers no rights.

    Friday, March 9, 2012 9:58 AM
  • Hi,

    Follow the commands suggested by Partis_70 or use ADSIEDIT to remove the old IP entry.

    Here is a technet article, this is basically to remove but you can add the server name or IP using the same process: http://blogs.technet.com/b/networking/archive/2009/02/27/old-dhcp-servers-appear-in-the-list-of-authorized-servers-after-a-domain-rename.aspx


    Best Regards,

    Abhijit Waikar.
    MCSA 2003 | MCSA:Messaging | MCTS | MCITP:Server Administrator | Microsoft Community Contributor | My Blog

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.



    Friday, March 9, 2012 10:03 AM
  • What is dhcproot under Net Services in the adsiedit, i can see my old dhcp server name and ip address  there .What  is exactly happening if i remove old ip

    Remove from DHCPServers Attribute

    Sunday, March 11, 2012 6:23 AM
  • What is dhcproot under Net Services in the adsiedit, i can see my old dhcp server name and ip address  there .What  is exactly happening if i remove old ip

    Remove from DHCPServers Attribute

    The DHCPServers Attribute contains list of authorized DHCP server in the domain. If you see old records and those DHCP server doesn't exists, you can safely delete them.




    Awinish Vishwakarma - MVP-DS

    My Blog: awinish.wordpress.com

    Disclaimer This posting is provided AS-IS with no warranties/guarantees and confers no rights.

    Sunday, March 11, 2012 6:37 AM
  • What is dhcproot under Net Services in the adsiedit, i can see my old dhcp server name and ip address  there .What  is exactly happening if i remove old ip

    Remove from DHCPServers Attribute

    In ADSIEDIT, DHCPServers attribute vaule shows the Authorized DHCP servers list. Using ADSIEDIT you can safely delete old DHCP server entry and add correct one.

    Or you may use the command line to perform this task, check the above technet article for more detail.

    Once you are done, restart DHCP server service.


    Best Regards,

    Abhijit Waikar.
    MCSA 2003 | MCSA:Messaging | MCTS | MCITP:Server Administrator | Microsoft Community Contributor | My Blog

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    Sunday, March 11, 2012 7:03 AM

  • Since you have changed the IP Address of the server prior to the unauthorization process.ouldn't verify the server name by ip address, it shows it as a missing object.On a Domain Controller, open an mmc and add the snap-in ADSI Edit.

    Right click on ADSI Edit and click connect to.

    In connection settings, connection point, select or type a Distinguished Name or Naming Context.  Enter CN=NetServices,CN=Services,CN=Configuration,DC=Your Domain,DC=com then click ok.

    Expand the default naming context, highlight the path in the left pane, and you should see CN=DhcpRoot on the right.

    Double click it, and edit the dhcpServers attribute to reflect the correct computers.

    Restart your dhcp service.  Then verify your list in Manage Authorized Servers... you may have to click the refresh button.

    Reference link:
    http://support.microsoft.com/kb/306925

    Hope this helps


    Best Regards,

    Sandesh Dubey.

    MCSE|MCSA:Messaging|MCTS|MCITP:Enterprise Adminitrator | My Blog

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    • Marked as answer by Rick Tan Monday, March 12, 2012 6:21 AM
    Sunday, March 11, 2012 11:16 PM