Networking Forums

Networking Forums > Computer Networking > Linux Networking > DHCP leases from old box to new box.

Reply
Thread Tools Display Modes

DHCP leases from old box to new box.

 
 
edavid3001@gmail.com
Guest
Posts: n/a

 
      11-04-2005, 02:47 PM
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.)

 
Reply With Quote
 
 
 
 
James Knott
Guest
Posts: n/a

 
      11-05-2005, 01:38 AM
(E-Mail Removed) wrote:

> 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.)


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.

 
Reply With Quote
 
edavid3001@gmail.com
Guest
Posts: n/a

 
      11-07-2005, 10:33 PM
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.

 
Reply With Quote
 
edavid3001@gmail.com
Guest
Posts: n/a

 
      11-11-2005, 02:48 PM
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.

 
Reply With Quote
 
Robert Nichols
Guest
Posts: n/a

 
      11-11-2005, 11:26 PM
In article <(E-Mail Removed) .com>,
<(E-Mail Removed)> wrote:
: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%
ositive, 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.

--
Bob Nichols AT comcast.net I am "RNichols42"
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving between VLAN's with DHCP leases newsgroups.jd@gmail.com Windows Networking 1 11-28-2007 07:26 PM
DHCP released leases go to new computers too soon rschatz Windows Networking 14 08-17-2007 11:05 PM
Odd issue with DHCP leases & RAS zebulebu Windows Networking 4 03-10-2006 09:10 AM
How to enable DHCP leases hitosry ? Deephazz Windows Networking 3 12-07-2005 05:36 PM
Newbie and DHCP no free leases Walter Zambotti Linux Networking 0 05-27-2004 06:14 AM



1 2 3 4 5 6 7 8 9 10 11