View previous topic :: View next topic |
Author |
Message |
tscolari l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/162848838440d8c5b215f6e.jpg)
Joined: 02 May 2004 Posts: 602 Location: curitiba - pr - Brazil
|
Posted: Thu Jan 06, 2005 8:04 pm Post subject: DHCP help please (linux terminal server) |
|
|
im following this guide: http://www.gentoo.org/doc/en/ltsp.xml
i think i did all as said, but im having problems to set dhcp runing.
when i try to run it:
# /etc/init.d/dhcp start
* Setting ownership on dhcpd.leases... [ ok ]
* Starting dhcpd... [ !! ]
i will take this dhcp.conf example from the guide to ask help:
Quote: | // Some general options
default-lease-time 21600;
max-lease-time 21600;
use-host-decl-names on;
ddns-update-style ad-hoc;
// Bootp options
allow booting;
allow bootp;
// Network Options
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 log-servers 192.168.0.254;
option domain-name "yourdomain.com";
// LTSP Path Options
option root-path "192.168.0.254:/opt/ltsp-4.1/i386";
filename "/lts/vmlinuz-2.4.26-ltsp-2";
// If your workstations have ISA NICs uncomment the following
// lines and alter the driver and IO
#option option-128 code 128 = string;
#option option-129 code 129 = text;
#option option-128 e4:45:74:68:00:00;
#option option-129 "NIC=ne IO=0x300";
shared-network WORKSTATIONS {
subnet 192.168.0.0 netmask 255.255.255.0 {
// Distribute dynamic IPs to the workstations
range dynamic-bootp 192.168.0.1 192.168.0.16;
// Workstation specific configuration for PXE booting
#host ws001 {
# hardware ethernet 00:E0:06:E8:00:84;
# fixed-address 192.168.0.1;
#}
}
} |
This is my questions:
First of all, my server is runing already over a dhcp.
Ive a master server which i dont have acess to write/configure. So my server is under his network.
should i set my dhcp refering to this server or not?
for example, my server is IPA, and the other one is IPB
could i use this:
Quote: | // Network Options
option subnet-mask 255.255.255.0;
option broadcast-address 200.17.214.0;
option routers ?;
option domain-name-servers IPB;
option log-servers ?;
option domain-name "IPB_domain"; |
the master server is responsable for setting all names to machines... so i thoght maybe it could be the "domain-name-servers"
Would this dhcp/ltsp work in my network? (Even if it is under a other dhcp network?)
Could i listen in my network a machine that is not configurated on the master dhcp server?
I need some help here to make the dhcp deamon starts
can anyone give me a hand? _________________ ------------------------------------
Tiago Scolari |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tscolari l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/162848838440d8c5b215f6e.jpg)
Joined: 02 May 2004 Posts: 602 Location: curitiba - pr - Brazil
|
Posted: Fri Jan 07, 2005 9:33 am Post subject: |
|
|
no one can help me with this config/or why the dhcp refuses to start? _________________ ------------------------------------
Tiago Scolari |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
robdd Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Jan 2005 Posts: 142 Location: Sydney Australia
|
Posted: Fri Jan 07, 2005 12:49 pm Post subject: |
|
|
Hi Tiago - I don't know anything about ltsp, but if no-one else will help I'll have a try..
I think that if there is already a DHCP server on your network then that's a problem. I'm guessing that your dhcpd daemon sees that there's already a dhcp daemon running, and refuses to start.
What you may have to do is set up two network cards, and use the first network card to talk to your host network. If you set up the second network card with a different IP address range then they shouldn't conflict. Then anyone on your second network will send requests to your DHCP server, and the host network won't know anything about it. But then you'll have to set up NAT to let people on your network access your host network.
Hope this helps. Regards, _________________ Rob Diamond
Gentoo Hack, hack, hacker
Sydney, Australia |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tscolari l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/162848838440d8c5b215f6e.jpg)
Joined: 02 May 2004 Posts: 602 Location: curitiba - pr - Brazil
|
Posted: Fri Jan 07, 2005 3:51 pm Post subject: |
|
|
hmmm
i understand
i ll try install another network card on the server and see if i can make it work, thanks a lot for the help! _________________ ------------------------------------
Tiago Scolari |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
tscolari l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/162848838440d8c5b215f6e.jpg)
Joined: 02 May 2004 Posts: 602 Location: curitiba - pr - Brazil
|
Posted: Sat Jan 08, 2005 12:54 am Post subject: |
|
|
just another question
if i convince the root of the master server, he could change his dhcp configuration in a way that my hd-less machine boot by my server?
having nfs, and all configurated in my server, could an external dhcp server makes a pc boot by my server? _________________ ------------------------------------
Tiago Scolari |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
professorfrink n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1675184174087e76ca9fa1.jpg)
Joined: 05 Apr 2004 Posts: 11 Location: Winnipeg, Manitoba, Canada
|
Posted: Mon Jan 10, 2005 3:19 am Post subject: Better late then never |
|
|
You probably already know this by now but you cannot have comments start with // in the dhcpd.conf file.
Replace those with #.
It is noted in that LTSP howto.
I had the same problem and fixed it before I found the note in the howto. _________________ Me fail English? That's unpossible! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dholm Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_flexo.gif)
Joined: 11 Aug 2003 Posts: 35 Location: Sweden
|
Posted: Tue Jan 18, 2005 1:32 pm Post subject: |
|
|
Don't forget to edit /etc/conf.d/dhcp. Mine was listening on my outgoing interface (eth0) instead of the local interface (eth1) which caused the dhcp init script to fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
saltine n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/420477930424461d6e5c96.png)
Joined: 25 Mar 2005 Posts: 24 Location: Winnipeg, Canada
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|