Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcpd 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
vaguy02
Guru
Guru


Joined: 25 Feb 2005
Posts: 424
Location: Hopefully in one place

PostPosted: Tue Mar 01, 2005 2:50 am    Post subject: dhcpd server Reply with quote

I'm setting up a firewall/router at home and I'm trying to set up the dhcpd server. I followed the home router guide, but on start up when it starts to run the dhcpd process I get the red !! marks on the side and I've tried with My xp box and it won't grab a dhcp address. But if I put a static address in the xp box it gets on the internet fine, so I know most of the settings are right. Any help?

my /etc/dhcp/dhcpd.conf:

authoritative;
ddns-update-style ad-hoc;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.250;
default-lease-time 259200;
max-lease-time 518400;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;
}
Back to top
View user's profile Send private message
Sith_Happens
Veteran
Veteran


Joined: 15 Dec 2004
Posts: 1807
Location: The University of Maryland at College Park

PostPosted: Tue Mar 01, 2005 2:54 am    Post subject: Reply with quote

Just some nomenclature comments:

DHCP: Dynamic Host Configuration Protocol, protocol by which a host can assign clients IP addresses in a dynamic fashion
dhcpcd: DHCP client deamon, deamon which contacts a local DHCP server to recieve an IP address
dhcpd: DHCP deamon, deamon which runs on the DHCP server and assigns IP's
_________________
"That question was less stupid; though you asked it in a profoundly stupid way."
I'm the brains behind Jackass! | Tutorials: Shorewall
Back to top
View user's profile Send private message
vaguy02
Guru
Guru


Joined: 25 Feb 2005
Posts: 424
Location: Hopefully in one place

PostPosted: Tue Mar 01, 2005 2:57 am    Post subject: Reply with quote

I thought I got all of the different terms right, the differences between dhcpd and dhcp but if I didn't. I'm sorry. I hope someone can still help
Back to top
View user's profile Send private message
Sith_Happens
Veteran
Veteran


Joined: 15 Dec 2004
Posts: 1807
Location: The University of Maryland at College Park

PostPosted: Tue Mar 01, 2005 3:10 am    Post subject: Reply with quote

I was just giving you a little info that's all. I still understood what you were talking about. I wish I could give you some specifiic help on your problem but I've never had to set up a dhcp server, I use a standalone firewall/router that also acts as a dhcp server.
_________________
"That question was less stupid; though you asked it in a profoundly stupid way."
I'm the brains behind Jackass! | Tutorials: Shorewall
Back to top
View user's profile Send private message
vaguy02
Guru
Guru


Joined: 25 Feb 2005
Posts: 424
Location: Hopefully in one place

PostPosted: Tue Mar 01, 2005 3:13 am    Post subject: Reply with quote

That's actually what I'm trying to do right now, is to set up a firewall/router standalone gentoo box that has a dhcp server so my xp box and roommates can dhcpcd an address from it.
Back to top
View user's profile Send private message
Sith_Happens
Veteran
Veteran


Joined: 15 Dec 2004
Posts: 1807
Location: The University of Maryland at College Park

PostPosted: Tue Mar 01, 2005 3:17 am    Post subject: Reply with quote

My standalone came preconfigured though, it's a Linksys. Since it has firewall, router, and wireless capabilities out of the box, it was just easier.
_________________
"That question was less stupid; though you asked it in a profoundly stupid way."
I'm the brains behind Jackass! | Tutorials: Shorewall
Back to top
View user's profile Send private message
srlinuxx
l33t
l33t


Joined: 22 Nov 2003
Posts: 627

PostPosted: Tue Mar 01, 2005 5:12 am    Post subject: Reply with quote

try ddns-update-style interim; instead of ad-hoc and see.
_________________
--You talk the talk, but do you waddle the waddle?
-Gentoo Monthly Screenshots
Back to top
View user's profile Send private message
WarMachine
Apprentice
Apprentice


Joined: 15 Jul 2002
Posts: 181

PostPosted: Tue Mar 01, 2005 5:42 am    Post subject: Reply with quote

read the manpage for dhcpd (or maybe dhcp, I forget) it will list 2 things you need compiled into the kernel for it to work
Back to top
View user's profile Send private message
vaguy02
Guru
Guru


Joined: 25 Feb 2005
Posts: 424
Location: Hopefully in one place

PostPosted: Tue Mar 01, 2005 2:26 pm    Post subject: Reply with quote

I tried the interim but I still don't get any results. Any other ideas?
Back to top
View user's profile Send private message
srlinuxx
l33t
l33t


Joined: 22 Nov 2003
Posts: 627

PostPosted: Thu Mar 03, 2005 5:24 pm    Post subject: Reply with quote

look in your logs and tell us what it's problem is and perhaps we can figure it out.
_________________
--You talk the talk, but do you waddle the waddle?
-Gentoo Monthly Screenshots
Back to top
View user's profile Send private message
kloune
Apprentice
Apprentice


Joined: 09 May 2004
Posts: 185
Location: lost

PostPosted: Fri Mar 04, 2005 12:14 am    Post subject: Reply with quote

This is what mine looks like and it works perfectly. Hope it helps.
Quote:

ddns-update-style ad-hoc;
allow bootp;

default-lease-time 6000;
max-lease-time 10000;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
#log-facility dhcpd;

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.20 192.168.1.250;
option routers 192.168.1.1;
option domain-name "xxx.xxx.xxx";
option domain-name-servers a.b.c.d, a.b.c.d, a.b.c.d;
}
Back to top
View user's profile Send private message
TheX
Guru
Guru


Joined: 31 Jul 2004
Posts: 349
Location: .de

PostPosted: Fri Mar 04, 2005 12:53 am    Post subject: Reply with quote

your dhcpd.conf seems to be alright !!

but take a look at your networkcard-configuration. Perhaps the eth1 (for example) is not set correctly. You will have to set a static IP to this interface. with f.e.
Code:
ifconfig eth0 192.168.0.1

or add
Code:
iface_eth1="192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0"
to your /etc/conf.d/net .

Take a look at your /etc/conf.d/dhcpd !
There has to be set wich networkinterface will provide your dhcp !
Code:
IFACE="eth0"
is set in mine.

TheX
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