DHCP leases from old box to new box.

Discussion in 'Linux Networking' started by edavid3001, Nov 4, 2005.

  1. edavid3001

    edavid3001 Guest

    I am replacing old DHCP servers that are end of life with some new
    servers.

    Every machine I support uses a telnet like application - so I can't
    just switch IP addresses on the clients. Doing so drops their
    sessions, thus loosing their work.

    Is it true that to move the leases all I need to do is copy the
    dhcpd.leases file from the old server to the new server, shut down the
    old DHCPD and start up the new one? (Of course, the new server is
    configured like the old.)
     
    edavid3001, Nov 4, 2005
    #1
    1. Advertisements

  2. edavid3001

    James Knott Guest

    DHCP servers look at the MAC address when assigning IP addresses. A new
    computer, with a new NIC, will have a new MAC address. Incidentally, if
    it's necessary to have consistent addresses, map DHCP addresses to MACs.
    This way, specified IPs will be permanently assigned to the specific
    computers.
     
    James Knott, Nov 5, 2005
    #2
    1. Advertisements

  3. edavid3001

    edavid3001 Guest

    So you recommend my DHCP server use DHCP client and use reservations to
    assign the DHCP servers their settings?

    No no no.

    My DHCP servers have static IP settings. I'd never have my DHCP
    servers get their IP settings from DHCP.

    Doesn't really address the question, however after much digging it
    looks like that's all I have to do. Move the old leases file from the
    old DHCP server to the new DHCP server, making sure neither are up at
    the same moment.
     
    edavid3001, Nov 7, 2005
    #3
  4. edavid3001

    edavid3001 Guest

    I did this and it did work just fine. Though it seems as if my NT 4
    clients wouldn't renew if the new server had a different IP. Not 100%
    positive, but I got "Unable to renew lease" doing ipconfig /renew when
    I had the leases on the server but hadn't changed it's IP address yet.
     
    edavid3001, Nov 11, 2005
    #4
  5. :I did this and it did work just fine. Though it seems as if my NT 4
    :clients wouldn't renew if the new server had a different IP. Not 100%
    :positive, but I got "Unable to renew lease" doing ipconfig /renew when
    :I had the leases on the server but hadn't changed it's IP address yet.

    One of the options typically supplied in the lease is the IP address of
    the issuing server (dhcp-server-identifier). A client would first try
    to renew from that server before resorting to DHCPDISCOVER to locate a
    new server.
     
    Robert Nichols, Nov 12, 2005
    #5
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.