Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Jeff Pancrazio on April 01, 2002, 06:10:22 PM

Title: DHCP Managment?
Post by: Jeff Pancrazio on April 01, 2002, 06:10:22 PM
Has anyone found a way for a linux/e-smith newbie to EASLY manage the DHCPd and it's leases with a plug in or something.. I have been using e-smith for a week and have found a good and easy way to use most every aspect of the server except this.. Any suggestions would be nice.
My setup!.
Title: Re: DHCP Managment?
Post by: Jeff Pancrazio on April 01, 2002, 06:13:43 PM
Sorry, got happy with the tab key.

My setup and need is, i have the e-server connected to my cable modem and having it hand out address for clients, I am using a win 2000 server DC w/AD for the internal network for file saring and practicing for MCSA. I would like to be able to see the leases and know what address some of the machine (5 in total) get so i can connect to them easly by IP internally for telnet and stuff with out internal name resolution.  I must be missing something rather simple, because this server seems to do everything else!.
Title: Re: DHCP Managment?
Post by: Dan Brown on April 01, 2002, 07:42:30 PM
I'm sure there's a way to find this on the SME server, but probably the easiest is to just check the clients--run winipcfg on win9x, and ipconfig on win2k.  You can specify in the hostnames and addresses panel that those machines always get the same IP address.
Title: Re: DHCP Managment?
Post by: Jeff Pancrazio on April 01, 2002, 08:53:52 PM
Yes, that is the easiest way, BUT i am having trouble with a off brand print-server for a network card that is only setup to use DHCP and i want to find out the address that it is getting.. I have been finding it by using languards lanscan to scan my local network address and find all the listing computers.
Title: Re: DHCP Managment?
Post by: Dan Brown on April 01, 2002, 09:43:24 PM
Do you have the MAC address of the print server?  If so, you can specify an address for it in the hostnames and addresses panel in the server manager.
Title: Re: DHCP Managment?
Post by: sander on April 02, 2002, 07:42:13 PM
the dhcpd.leases file is located in /var/lib/dhcp/ directory

use putty and mc to go there from your own computer

there is also a cgi script for easyly managing the leases file

hope this helps

sander
Title: Re: DHCP Managment?
Post by: Jeff Pancrazio on April 03, 2002, 12:57:52 AM
Thanks everyone!.. Sander, you talked about a cgi-script can u point me in the direction of that, thanks!.
Title: Re: DHCP Managment?
Post by: tibor on April 03, 2002, 03:21:50 AM
Look at this cgi script at http://lanlord.sourceforge.net/
Title: Re: DHCP Managment?
Post by: Aaron on April 03, 2002, 03:39:11 AM
Funny you should mention LanLord, I completed an e-smith RPM a few weeks back. Feel free to give it a test yourself: http://www.edwardssystems.com/e-smith/ and let me know what you think.
Title: Re: DHCP Managment?
Post by: sander on April 03, 2002, 09:21:26 AM
i installed this rpm and this is quite nice - i can easyly review the leases

but can you add some features?
manage ip addresses like the lanlord script

like can i specify to a specific computer an ip address ( i would like to specify the ip addresses in order of computers in the hub)

sander
Title: Re: DHCP Managment?
Post by: tibor on April 03, 2002, 09:22:07 PM
See this: http://www.e-smith.org/docs/manual/5.1/admin-hostnames.html#admin-hostnames-dhcp
Title: Re: DHCP Managment?
Post by: Aaron on April 04, 2002, 05:30:13 AM
As Tibor's link says, if you enter that particular computers MAC address and desired IP into the Hostnames table it will be assigned that IP while still using DHCP for the rest of its network config. However, dont expect to see that computer/address listed in the DHCP Report as it is a static address.
Title: Re: DHCP Managment?
Post by: sander on April 04, 2002, 09:12:45 AM
the point is that i don't have an internal server

i just wanted to sort the ip addresses in order of them being on the hub.

my workstation is in the first slot and it gets ip 10
the second computer on the hub: ip 11

the dhcp range starts from ip 10

can i change the leases file and then restart the server and so it gets an ip address from the leases file, not what it has still in cache ( what it had earlier)?

sander