Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

dhcpd server

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
vaguy02
Guru
Guru
User avatar
Posts: 424
Joined: Fri Feb 25, 2005 10:35 pm
Location: Hopefully in one place
Contact:
Contact vaguy02
Website

dhcpd server

  • Quote

Post by vaguy02 » Tue Mar 01, 2005 2:50 am

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;
}
Top
Sith_Happens
Veteran
Veteran
User avatar
Posts: 1807
Joined: Wed Dec 15, 2004 2:08 am
Location: The University of Maryland at College Park
Contact:
Contact Sith_Happens
Website

  • Quote

Post by Sith_Happens » Tue Mar 01, 2005 2:54 am

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
Top
vaguy02
Guru
Guru
User avatar
Posts: 424
Joined: Fri Feb 25, 2005 10:35 pm
Location: Hopefully in one place
Contact:
Contact vaguy02
Website

  • Quote

Post by vaguy02 » Tue Mar 01, 2005 2:57 am

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
Top
Sith_Happens
Veteran
Veteran
User avatar
Posts: 1807
Joined: Wed Dec 15, 2004 2:08 am
Location: The University of Maryland at College Park
Contact:
Contact Sith_Happens
Website

  • Quote

Post by Sith_Happens » Tue Mar 01, 2005 3:10 am

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
Top
vaguy02
Guru
Guru
User avatar
Posts: 424
Joined: Fri Feb 25, 2005 10:35 pm
Location: Hopefully in one place
Contact:
Contact vaguy02
Website

  • Quote

Post by vaguy02 » Tue Mar 01, 2005 3:13 am

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.
Top
Sith_Happens
Veteran
Veteran
User avatar
Posts: 1807
Joined: Wed Dec 15, 2004 2:08 am
Location: The University of Maryland at College Park
Contact:
Contact Sith_Happens
Website

  • Quote

Post by Sith_Happens » Tue Mar 01, 2005 3:17 am

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
Top
srlinuxx
l33t
l33t
User avatar
Posts: 627
Joined: Sat Nov 22, 2003 11:11 pm
Contact:
Contact srlinuxx
Website

  • Quote

Post by srlinuxx » Tue Mar 01, 2005 5:12 am

try ddns-update-style interim; instead of ad-hoc and see.
--You talk the talk, but do you waddle the waddle?
-Gentoo Monthly Screenshots
Top
WarMachine
Apprentice
Apprentice
Posts: 181
Joined: Mon Jul 15, 2002 7:57 pm

  • Quote

Post by WarMachine » Tue Mar 01, 2005 5:42 am

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
Top
vaguy02
Guru
Guru
User avatar
Posts: 424
Joined: Fri Feb 25, 2005 10:35 pm
Location: Hopefully in one place
Contact:
Contact vaguy02
Website

  • Quote

Post by vaguy02 » Tue Mar 01, 2005 2:26 pm

I tried the interim but I still don't get any results. Any other ideas?
Top
srlinuxx
l33t
l33t
User avatar
Posts: 627
Joined: Sat Nov 22, 2003 11:11 pm
Contact:
Contact srlinuxx
Website

  • Quote

Post by srlinuxx » Thu Mar 03, 2005 5:24 pm

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
Top
kloune
Apprentice
Apprentice
User avatar
Posts: 185
Joined: Sun May 09, 2004 3:33 pm
Location: lost

  • Quote

Post by kloune » Fri Mar 04, 2005 12:14 am

This is what mine looks like and it works perfectly. Hope it helps.
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;
}
Top
TheX
Guru
Guru
User avatar
Posts: 349
Joined: Sat Jul 31, 2004 9:12 pm
Location: .de

  • Quote

Post by TheX » Fri Mar 04, 2005 12:53 am

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: Select all

ifconfig eth0 192.168.0.1
or add

Code: Select all

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: Select all

IFACE="eth0"
is set in mine.

TheX
Top
Post Reply

12 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic