LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 03-18-2002, 10:35 PM   #1
NMX
Member
 
Registered: Jan 2002
Location: Buenos Aires, Argentina
Distribution: Slackware, LFS
Posts: 32

Rep: Reputation: 15
dhcpd question...


I was trying to setup a dhcp server for only one machine...I know its useless but I just want to do it cos` I want to learn how it works....

intalled the package ( my distro slack8 ) edit the dhcpd.conf and it started to listen the eth0 interface....

On the other machine (win98) I configured the NIC to ask for the ip...no dns, no wins, no nothing....just the name and the workgroup of the machine...

it doesn`t work...

dont know why......I`ve got this in my dhcpd.conf file...

----------------------

Subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.50 192.168.0.100;
Option subnet-mask 255.255.255.0;
Option domain-name-servers 200.51.254.254,200.51.254.251;
option routers 192.168.0.131;
option broadcast-address 192.168.0.255;
default-lease-time 60;
max-lease-time 120;
option netbios-node-type 8;
option ip-forwarding on;
option domain-name "giuffra.com";
}

--------------------------------------

....and it doesnt work....what am I missing..???
 
Old 03-18-2002, 11:03 PM   #2
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 991

Rep: Reputation: 30
try with more than one client

try with more than one client and see if it works. with only one client you wont see much difference. i did the same and it worked.

did you start the DHCP server(DHCPD)?
 
Old 03-19-2002, 12:13 AM   #3
NMX
Member
 
Registered: Jan 2002
Location: Buenos Aires, Argentina
Distribution: Slackware, LFS
Posts: 32

Original Poster
Rep: Reputation: 15
Yes, I executed dhcpd -d -f ...but it just kept listening to the eth0 if....
I`ll Try with more than one client....I dont think that will make things works...but...what the hell...if it worked with you....
 
Old 03-19-2002, 12:15 AM   #4
NMX
Member
 
Registered: Jan 2002
Location: Buenos Aires, Argentina
Distribution: Slackware, LFS
Posts: 32

Original Poster
Rep: Reputation: 15
for you...for you...not "with you"....gooood..my english sucks....
 
Old 03-19-2002, 01:09 AM   #5
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
Just a quick thought. Where is your dhcpd.conf file located. I am pretty sure it is supposed to be in the /etc/ dir. Also you need to have a dhcpd.leases file which should be in /var/state/dhcp/
To make this file just execute the command:
touch /var/state/dhcp/dhcpd.leases
 
Old 03-19-2002, 07:10 PM   #6
NMX
Member
 
Registered: Jan 2002
Location: Buenos Aires, Argentina
Distribution: Slackware, LFS
Posts: 32

Original Poster
Rep: Reputation: 15
it seems that the dhcpd server is dead...the rare thing is that is says that it listening to the port....but nothing happens...I dunno what the hell is going on...checked the logs...the /var/etc/dhcp/dhcp.leases file, bla bla bla....

Do I have to open the port 67/68..???...How do I do that?...by editing the /etc/services file?....
 
Old 03-19-2002, 09:28 PM   #7
bbenz3
Member
 
Registered: Feb 2002
Location: Orlando
Distribution: Whatever I feel like at the time I install.
Posts: 284

Rep: Reputation: 30
Yes those two ports must be open. However unless you are running a firewall that is closing them, they should be open. If you have a firewall post it and maybe either myself or someone else can detect something that might be wrong. Post your setup as best you can. ie) what NICs you have and where they go to, along with your firewall script.
 
Old 03-19-2002, 10:30 PM   #8
NMX
Member
 
Registered: Jan 2002
Location: Buenos Aires, Argentina
Distribution: Slackware, LFS
Posts: 32

Original Poster
Rep: Reputation: 15
No firewall...just masquerading...

Well...its ok...I`ll figure sth out....thank you very much for your answers you all...
 
Old 03-20-2002, 11:27 AM   #9
NMX
Member
 
Registered: Jan 2002
Location: Buenos Aires, Argentina
Distribution: Slackware, LFS
Posts: 32

Original Poster
Rep: Reputation: 15
Thumbs up

It started working....dont remember what I did....but its working!!!...

weird!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcpd.conf question nmayotte Linux - Networking 4 03-18-2004 04:24 PM
dhcpd.conf question dlm4444 Linux - Networking 0 02-21-2004 04:16 PM
DHCPD and IPTABLES question arobinson74 Linux - Networking 3 04-04-2003 05:15 AM
quick question about my dhcpd problem scrawny Linux - Networking 4 02-16-2003 07:29 AM
dhcpd lease question Jase Linux - Networking 2 01-31-2002 10:42 AM


All times are GMT -5. The time now is 08:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration