First I am assuming that you have a route to 137.53.23.95 from
192.168.0.1. if this is not correct and they are on the same lan. I
would install a nic in your server and assign one 192.168.0.254 and the
other 137.53.23.95.
Then your dchpd.conf would look something like this.
With router
--------------------- dhcpd.conf
--------------------------------------
default-lease-time 21600;
max-lease-time 21600;
option subnet-mask 255.255.255.0;
option broadcast-address 137.53.23.255;
option routers 137.53.23.95;
option domain-name-servers 137.53.23.95;
option domain-name "ltsp";
use-host-decl-names on;
option log-servers 137.53.23.95;
option root-path "137.53.23.95:/opt/ltsp/i386";
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.253;
}
host ws001 {
hardware ethernet 00:90:27:3E:A8:25;
fixed-address 192.168.0.1;
filename "/tftpboot/lts/vmlinuz-2.4.26-ltsp-1";
}
------------------------------------------------------------------------
-----------
Without router using linux server as router
You will only want to
--------------------- dhcpd.conf
--------------------------------------
default-lease-time 21600;
max-lease-time 21600;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.254;
option domain-name-servers 192.168.0.254;
option domain-name "ltsp";
use-host-decl-names on;
option log-servers 192.168.0.254;
option root-path "192.168.0.254:/opt/ltsp/i386";
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.10 192.168.0.253;
}
host ws001 {
hardware ethernet 00:90:27:3E:A8:25;
fixed-address 192.168.0.1;
filename "/tftpboot/lts/vmlinuz-2.4.26-ltsp-1";
}
------------------------------------------------------------------------
-----------
In terminal
echo 1 > /proc/sys/net/ipv4/ip_forward
Here is a good dhcp wiki
http://dhcp-monger.est-unique.net/wakka.php?wiki=Welcome
Richard Shade
Project Lead - CTI Systems
Effective Teleservices, Inc.
1903 Berry Dr.
Nacogdoches, TX 75965
(w) 936-559-2280
(c) 936-371-1817
"Playing by the Rules"
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vincent
Yau
Sent: Friday, May 27, 2005 6:58 PM
To: [email protected]
Subject: [Ltsp-discuss] dhcpd.conf help
Hi:
I am new to LTSP and I am not much of a dhcp expert, so please let me
know if I am missing something on configuring DHCP.
My server is running LTSP and it is a Linux box, with IP 137.53.23.95.
I am going to boot my client via a floopy and I have burned the ROM onto
the
floppy already. I have tried different variations of the following
dhcpd.conf but
I would get back either one of these 2 error messages from the server
log:
May 27 16:50:10 myserver dhcpd: no free leases on subnet
137.53.23.95
or
May 27 16:50:13 myserver dhcpd: No subnet declaration for eth0
(137.53.23.95).
So my client is connecting to the host. And I wish to grant my client
the IP addresses in the range of 192.168.0.1 to 192.168.0.250.
But I cannot get the config to work properly for me.
Am I missing a step in my dhcpd.conf?
Thanks for any tip.
-Vincent
--------------------- dhcpd.conf
--------------------------------------
default-lease-time 21600;
max-lease-time 21600;
option subnet-mask 255.255.255.0;
option broadcast-address 137.53.23.255;
option routers 137.53.23.95;
option domain-name-servers 137.53.23.95;
option domain-name "ltsp";
option root-path "137.53.23.95:/opt/ltsp/i386";
subnet 137.53.23.95 netmask 255.255.255.0 {
use-host-decl-names on;
option log-servers 137.53.23.95;
host ws001 {
hardware ethernet 00:90:27:3E:A8:25;
fixed-address 192.168.0.1;
filename "/tftpboot/lts/vmlinuz-2.4.26-ltsp-1";
}
}
------------------------------------------------------------------------
-----------
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit
http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.freenode.net