Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DHCP help please (linux terminal server)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tscolari
l33t
l33t


Joined: 02 May 2004
Posts: 602
Location: curitiba - pr - Brazil

PostPosted: Thu Jan 06, 2005 8:04 pm    Post subject: DHCP help please (linux terminal server) Reply with quote

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
View user's profile Send private message
tscolari
l33t
l33t


Joined: 02 May 2004
Posts: 602
Location: curitiba - pr - Brazil

PostPosted: Fri Jan 07, 2005 9:33 am    Post subject: Reply with quote

no one can help me with this config/or why the dhcp refuses to start?
_________________
------------------------------------
Tiago Scolari
Back to top
View user's profile Send private message
robdd
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2005
Posts: 142
Location: Sydney Australia

PostPosted: Fri Jan 07, 2005 12:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
tscolari
l33t
l33t


Joined: 02 May 2004
Posts: 602
Location: curitiba - pr - Brazil

PostPosted: Fri Jan 07, 2005 3:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
tscolari
l33t
l33t


Joined: 02 May 2004
Posts: 602
Location: curitiba - pr - Brazil

PostPosted: Sat Jan 08, 2005 12:54 am    Post subject: Reply with quote

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
View user's profile Send private message
professorfrink
n00b
n00b


Joined: 05 Apr 2004
Posts: 11
Location: Winnipeg, Manitoba, Canada

PostPosted: Mon Jan 10, 2005 3:19 am    Post subject: Better late then never Reply with quote

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
View user's profile Send private message
dholm
Retired Dev
Retired Dev


Joined: 11 Aug 2003
Posts: 35
Location: Sweden

PostPosted: Tue Jan 18, 2005 1:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
saltine
n00b
n00b


Joined: 25 Mar 2005
Posts: 24
Location: Winnipeg, Canada

PostPosted: Wed Apr 13, 2005 8:52 pm    Post subject: Reply with quote

I added a functional but unfinished script for making configuring dhcp and tftp a breeze.
It even grabs memtest86 and adds it as a boot option.
https://forums.gentoo.org/viewtopic-t-322744-highlight-pxe.html
_________________
Recipe for Network Booting
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum