Koozali.org: home of the SME Server

dhcp

krustykev

dhcp
« on: November 14, 2002, 04:30:32 PM »
how do i refresh the leases on my network.
i have had static ip addresses and now i want fixed but i have got to get rid of the old addresses. How can i do this?

Bill Talcott

Re: dhcp
« Reply #1 on: November 14, 2002, 09:15:18 PM »
Static IPs are allocated to hosts listed in the Hostnames and Addresses panel. Delete the entries there, and release and renew the IP on the client.

barry lynch

Re: dhcp
« Reply #2 on: November 14, 2002, 09:28:03 PM »
How do you change the DHCP settings?  I put in the wrong netmask and DHCP terminates when starting.  I can't find an option in the administration panel to change any of the DHCP settings?  will deleted the hostnames as mentioned previously force the reinput of DHCP info?

help appreciated.

barry

barry lynch

Re: dhcp
« Reply #3 on: November 15, 2002, 12:33:35 AM »
I found the answer for my initial question at "http://www.tech-geeks.org/article.php?story=20020917135813717#comments".  I'm now assigning addresses via DHCP!!!!

But I noticed in the log some error messages and was wondering if anyone could help me decipher them.

Nov 14 15:55:23 xenon dhcpd: DHCPDISCOVER from 00:08:c7:4f:f4:c7 via eth0
Nov 14 15:55:24 xenon dhcpd: DHCPOFFER on 192.168.92.65 to 00:08:c7:4f:f4:c7 via eth0
Nov 14 15:55:24 xenon dhcpd: DHCPREQUEST for 192.168.92.65 from 00:08:c7:4f:f4:c7 via eth0
Nov 14 15:55:24 xenon dhcpd: DHCPACK on 192.168.92.65 to 00:08:c7:4f:f4:c7 via eth0
Nov 14 20:56:08 xenon /usr/sbin/named[1535]: dynamic update failed: 'RRset exists (value dependent)' prerequisite not satisfied (NXRRSET)
Nov 14 20:56:08 xenon /usr/sbin/named[1535]: client 192.168.92.65#1598: update denied
Nov 14 15:56:08 xenon dhcpd: DHCPINFORM from 207.188.228.166
Nov 14 15:56:32 xenon last message repeated 3 times
Nov 14 15:57:54 xenon dhcpd: DHCPDISCOVER from 00:00:39:5b:50:26 via eth0
Nov 14 15:57:55 xenon dhcpd: DHCPOFFER on 192.168.92.66 to 00:00:39:5b:50:26 via eth0
Nov 14 15:57:55 xenon dhcpd: DHCPREQUEST for 192.168.92.66 from 00:00:39:5b:50:26 via eth0
Nov 14 15:57:55 xenon dhcpd: DHCPACK on 192.168.92.66 to 00:00:39:5b:50:26 via eth0
Nov 14 20:58:05 xenon /usr/sbin/named[1535]: dynamic update failed: 'RRset exists (value dependent)' prerequisite not satisfied (NXRRSET)
Nov 14 20:58:05 xenon /usr/sbin/named[1535]: client 192.168.92.66#1832: update denied
Nov 14 15:58:10 xenon dhcpd: DHCPREQUEST for 192.168.92.66 from 00:00:39:5b:50:26 via eth0
Nov 14 15:58:10 xenon dhcpd: DHCPACK on 192.168.92.66 to 00:00:39:5b:50:26 via eth0
Nov 14 20:58:11 xenon /usr/sbin/named[1535]: dynamic update failed: 'RRset exists (value dependent)' prerequisite not satisfied (NXRRSET)
Nov 14 20:58:11 xenon /usr/sbin/named[1535]: client 192.168.92.66#1841: update denied
Nov 14 15:59:15 xenon dhcpd: DHCPREQUEST for 192.168.92.65 from 00:08:c7:4f:f4:c7 via eth0
Nov 14 15:59:15 xenon dhcpd: DHCPACK on 192.168.92.65 to 00:08:c7:4f:f4:c7 via eth0
Nov 14 21:00:17 xenon /usr/sbin/named[1535]: dynamic update failed: 'RRset exists (value dependent)' prerequisite not satisfied (NXRRSET)
Nov 14 21:00:17 xenon /usr/sbin/named[1535]: client 192.168.92.65#1035: update denied
Nov 14 16:03:00 xenon dhcpd: DHCPDISCOVER from 00:50:04:84:b9:26 via eth0

any help appreciated,

barry

Kev

Re: dhcp
« Reply #4 on: November 15, 2002, 06:44:13 AM »
this does not make sense i want to go from dchp to assigning addresses myself but i want to refresh my dhcp leases and start again if i look in hostnames and addresses there are no addresses there

Bill Talcott

Re: dhcp
« Reply #5 on: November 15, 2002, 08:56:39 PM »
Kev wrote:
>
> this does not make sense i want to go from dchp to assigning
> addresses myself but i want to refresh my dhcp leases and
> start again if i look in hostnames and addresses there are no
> addresses there

Login as admin and run the configuration again, and disable DHCP if you want to switch to static IPs. http://forums.contribs.org/index.php?topic=5998.msg21364#msg21364 tells how to just clear out the existing leases.

If you are using DHCP, you can enter a computer in the Hostnames panel to assign it a static IP.

krustykev

Re: dhcp
« Reply #6 on: November 17, 2002, 01:50:05 PM »
i worked out if you go to the var/lib/dhcp/dhcp.leases in the command line you can manually remove them from there and they will be gone. Then you can start fresh assigning your own ip's dhcp gets pretty messy with a medium size network  if the computers get moved around the office. Same if people get a new machince cause old one is broke dhcp gives them a new number. This just makes it more confusing so if addresses are assigned manually you have better control in my opinion using dhcp with e-smith and 20 or so computers

Jerry Moss

Re: dhcp
« Reply #7 on: December 07, 2002, 07:20:10 PM »
Have to disagree with you on this one...

I'm a sysadmin at a medium sized school district, running 33 SME 4.x DHCP servers at 33 different sites, along with several Email and web servers.

I simply reserver a RANGE of IP's for network printers and workstations that require static ip's, and lease everything else.  Each server provides DHCP on two different networks using two NIC cards.

I will NEVER go back to keeping track of  >5000 IP's!. I never have to track down duplicate IP's on the network, and adding a network printer is as easy as having a tech plug it in, me looking at the lease file(s), and telneting in and configuring the printer.
I do kill the /var/lib/dhcp/dhcpd.leases file at midnight and then touch /var/lib/dhcp/dhcpd.leases and restart dhcpd to get a fresh lease file.