LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-12-2002, 02:28 PM   #1
ddepuemd
LQ Newbie
 
Registered: Mar 2002
Location: North Carolina
Posts: 11

Rep: Reputation: 0
dhcpd


Trying to set up my REdHat 7.3 installation to access the internet and provide a network for my local machines at the same time. However, I have a few problems and would appreciate any help.

I use eth0 to access the inetnet and that works fine. I have all the scripts in place to provide masquerading for eth1 and I gave it an IP of 192.168.1.0. Spelled out the params in /etc/dhcpd.conf per instructions but when I try start dhcpd, I get an error that eth0 is not defined.

Any ideas?

Dean
 
Old 06-12-2002, 02:40 PM   #2
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
make sure to start dhcpd for device eth1 since it will start on device eth0 by default
 
Old 06-13-2002, 08:58 AM   #3
ddepuemd
LQ Newbie
 
Registered: Mar 2002
Location: North Carolina
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks!

The program starts up fine without an error now. However, PC's on that net do not get and address fron the server. They are connected through a mini-hub and when I boot under Windows XP, it works fine. (this is dual boot system).

Here is what /etc/dhcpd.conf looks like:

subnet 192.168.1.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;

option domain-name "pantherstudioscorp.com";
option domain-name-servers 192.168.1.1;

option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 192.168.1.128 192.168.1.255;
default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
# host ns {
# next-server marvin.redhat.com;
#hardware ethernet 12:34:56:78:AB:CD;
#fixed-address 207.175.42.254;
#}
}

I have also defined eth1 to be IP 192.168.1.0.

Is there anything else I have to do?

Thanks!
Dean
 
Old 06-13-2002, 09:17 AM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
If I remember right any IP number that end with x.x.x.0 or x.x.x.255 is reserved and you can not use it. Try setting the IP to 192.168.0.1. I think that this will take care of your problem.
 
Old 06-13-2002, 12:46 PM   #5
ddepuemd
LQ Newbie
 
Registered: Mar 2002
Location: North Carolina
Posts: 11

Original Poster
Rep: Reputation: 0
New dhcpd Problem

Tom, thanks for you advice.

When I set the IP to 192.168.0.1 and change the dhcpd.conf file to:

subnet 192.168.0.1 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.0.254;
option subnet-mask 255.255.255.0;

option domain-name "pantherstudioscorp.com";
option domain-name-servers 192.168.0.1;

option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range 192.168.0.10 192.168.0.100;
default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
# host ns {
# next-server marvin.redhat.com;
#hardware ethernet 12:34:56:78:AB:CD;
#fixed-address 207.175.42.254;
#}
}

I get the error:

Address range 192.168.0.10 to 192.168.0.100 not on net 192.168.0.1/255.255.255.0!


Any other ideas??

Thanks,
Dean
 
Old 06-13-2002, 04:42 PM   #6
ddepuemd
LQ Newbie
 
Registered: Mar 2002
Location: North Carolina
Posts: 11

Original Poster
Rep: Reputation: 0
dhcpd not working

When I changed the subnet to x.x.x.0, there were no errors when starting dhcpd on eth1. However, I still can't get any addresses to be assigned on my internal network.

Anyone know why?

I'm also trying to set up masquerade too!

Thanks,
Dean
 
Old 06-13-2002, 05:15 PM   #7
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
I don't know why, but when I tried using 192.168.0.x as my internal network, I got lots of weird errors... Just try using 192.168.1.x, and you should be fine. Keep the netmask the same.

IP addresses in the form x.x.x.0 and x.x.x.255 are indeed reserved (but I don't think you can't override that). The x.x.x.0 address is the network address by default, the x.x.x.255 address is the network broadcast address, by default. I believe that x.x.x.1 is the network gateway default address, but I may be wrong... Need to brush up on my IP fundamentals...
 
Old 06-13-2002, 06:32 PM   #8
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
be careful when specifying network ie
192.168.1.1/24 wrong
192.168.1.0/24 right (network need to have zero for the class you specify)
or
192.168.0.0/16 = 192.168.0.0 mask 255.255.0.0

+
you have defined range for bootp clients, that isn't dhcp from windows, that is for machines that boot from network.
 
Old 06-13-2002, 09:27 PM   #9
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Can you ping your server by ip number? if not stop the IP masquerading, this maybe your problem. Just stick with getting dhcp working first.
One more thing, there is a book named Linux for Windows NT/2000 Administrators, published by Sybex. This book gives easy to understand how-to's and examples. It's writen by Mark Minasi with help from Dan york and Craig Hunt..
The ISBN number is 0-7821-2730-4.
 
Old 06-17-2002, 04:54 AM   #10
ddepuemd
LQ Newbie
 
Registered: Mar 2002
Location: North Carolina
Posts: 11

Original Poster
Rep: Reputation: 0
dhcpd

Tom:

Thanks. Yes, I can ping the server from any of the PC's, no problem. I changed the range by removing the bootp statement.. Still can't get an IP!!!! I really don't understand it! It's driving me nuts. I removed the masq stuff too and still nothing.

Can anyone help??!?!?!

Thanks,
Dean
 
Old 06-17-2002, 08:43 PM   #11
FunkFlex
Member
 
Registered: Jan 2002
Location: UK
Distribution: Redhat 7.2
Posts: 35

Rep: Reputation: 15
This is what my dhcpd.conf looks like..
and it works fine on startup "dhcpd eth1"
I noticed that u left out option broadcast address..

max-lease-time 28800;
default-lease-time 14400;
option domain-name-servers 194.168.4.100, 194.168.8.100;
option domain-name "funkflex.homelinux.org";
option subnet-mask 255.255.255.0;
subnet 192.168.0.0 netmask 255.255.255.0 {
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
range 192.168.0.20 192.168.0.40;
}
 
  


Reply



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 subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 10:32 AM
dhcpd blackzone Linux - Networking 1 12-21-2004 09:41 AM
DHCPD startup failure, mdk 9.2, dhcpd v3.0.1rc11 fuzzyworm Linux - Networking 1 02-14-2004 03:58 AM
Dhcpd??? eXor Linux - Networking 6 10-18-2002 04:17 AM
dhcpd.master or dhcpd.conf rickg Linux - Networking 0 04-11-2002 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:42 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
Open Source Consulting | Domain Registration