LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 07-08-2004, 10:25 PM   #1
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Rep: Reputation: 30
dhcp server setup help requested


hello all. here is what I have. eth0 is pulling a dhcp from my cablemodem. eth1 is set up to my hub. When my second machine also attatched to the hub is given a static IP I can ping through. but I can't get it to pull a dhcp ip from my linux box(Fedroa). here is my conf. I am a newb and this was taken off the internet and tried to change it to my needs.
# Define global values that apply to all systems.

default-lease-time 86400;
max-lease-time 604800;
get-lease-hostnames true;
option subnet-mask 255.255.255.0;
#option domain "nuts.com";
#option domain-name-servers 172.16.12.1, 172.16.3.5;
#option lpr-servers 172.16.12.1;
#option interface-mtu 1500;

# Identify the subnet served, the options related
# to the subnet, and the range of addresses that
# are available for dynamic allocation.

subnet 20.20.20.0 netmask 255.255.255.0 {
#option routers 172.16.3.25;
option broadcast-address 20.20.20.255;
range 172.16.3.50 172.16.3.250;
}

subnet 172.16.12.0 netmask 255.255.255.0 {
option routers 172.16.12.1;
option broadcast-address 172.16.12.255;
range 172.16.12.64 172.16.12.192;
range 172.16.12.200 172.16.12.250;
}

# Identify each BOOTP client with a host statement

group {
use-host-decl-names true;
host acorn {
hardware ethernet 00:80:c7:aa:a8:04;
fixed-address 172.16.3.4;
}
host peanut {
hardware ethernet 08:80:20:01:59:c3;
fixed-address 172.16.12.2;
}
host hickory {
hardware ethernet 00:00:c0:a1:5e:10;
fixed-address 172.16.3.16;
}
}
 
Old 07-08-2004, 11:04 PM   #2
diablo111
Member
 
Registered: Jul 2004
Location: the other side of morning
Distribution: PCLOS, Fedora Core, Slackware and Mepis.
Posts: 54

Rep: Reputation: 15
Someone might be a little more knowlegable about setting up DCHP than myself...but I think it's much easier to use WEBMIN for configuration.

Just use YaST (as it looks like you're using SuSE) and find/install webmin...then open a web browser and enter in https://127.0.0.1:10000 , then login as root...it's a very handy tool

Anyway, this may not help you, but it's still a damn nice tool to have.
 
Old 07-09-2004, 12:09 AM   #3
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
That example is much larger than what is required to get you up and running.

This is a much simpler dhcpd.conf that should get you started:

Code:
# dhcpd.conf
#
# Configuration file for dhcpd
#

deny client-updates;
ddns-update-style interim;

# Configuration for the main range
subnet 192.168.1.0 netmask 255.255.255.0
{
        authoritive;
        range 192.168.1.100 192.168.1.200;
        default-lease-time 86400;
        option subnet-mask 255.255.255.0;
        option routers 192.168.1.1;
        option domain-name-servers 151.204.50.8, 151.198.0.68;
        option domain-name "home.com";
}

# EOF
Change your IP range and DNS servers to fit your network, though that is the common IP range for a home network.

Last edited by MS3FGX; 07-12-2004 at 12:10 AM.
 
Old 07-09-2004, 08:39 AM   #4
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Original Poster
Rep: Reputation: 30
ok this works for me I have set it up with a differant ip scheme but isn't the subnet supposed to be 192.168.1.0? just for any one else who may use this.
 
Old 07-09-2004, 01:05 PM   #5
salbox
LQ Newbie
 
Registered: Jun 2004
Location: germany
Distribution: debian woody + suse 9.1
Posts: 25

Rep: Reputation: 15
subnet 20.20.20.0 netmask 255.255.255.0 {
#option routers 172.16.3.25;
option broadcast-address 20.20.20.255;
range 172.16.3.50 172.16.3.250;
}


what's that? You define a net, 20.20.20.0,
and then you set range from 172.16.3.50 to 172.16.3.250...
you should define the range within the net you declared it in!
more like:

subnet 20.20.20.0 netmask 255.255.255.0 {
#option routers 172.16.3.25;
option broadcast-address 20.20.20.255;
range 20.20.20.50 20.20.20.250;
}


and you group up some machines...hope you really want to do that!!!
 
Old 07-09-2004, 08:21 PM   #6
gonus
Member
 
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Original Poster
Rep: Reputation: 30
yeah that was copied of the internet and pasted. I did some tweaking but now much i missed some of it. I am all fixed now.
 
  


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
Yast DHCP server setup warning message RichardD Linux - Networking 0 11-15-2005 06:30 AM
How do I setup a DHCP server on RedHat 9 xsabre Linux - Newbie 1 06-23-2004 05:48 PM
setup a dhcp server with suse 8.2 or redhat 6.2/9.0 The_SUSE_NEWBE Linux - Networking 1 06-10-2003 09:53 AM
setup a samba server with dhcp ebele Linux - Networking 1 12-12-2002 08:55 AM
Local DHCP Server Setup ddepuemd Linux - Newbie 1 05-16-2002 06:46 PM


All times are GMT -5. The time now is 05:37 AM.

Main Menu
Advertisement
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