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 07-09-2003, 05:32 PM   #1
NVETHIS
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Rep: Reputation: 0
DHCP Server and 2 NIC's


I am setting up a RH9 box to serve as a Router/Firewall, DNS, and DHCP server. I'm having a little problems with getting this done. For the dhcp server, having 2 nics is causing a little of a problem i think. I have eth0 on dhcp getting an ip from my cable company. The other nic I have is eth1 with an ip of 192.168.0.1 (serving as my router and firewall).
Here's a copy of my dhcpd.conf:
ddns-update-style ad-hoc;
default-lease-time 7200;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.200;
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, 24.53.64.35, 24.53.64.34;
option domain-name "computerxpress.d2g.com";
}

and this is the error I get when I try and start the dhcpd service:
Starting dhcpd: Internet Software Consortium DHCP Server V3.0pl1
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit
Wrote 0 leases to leases file.

No subnet declaration for eth0 (67.20.191.215).
** Ignoring requests on eth0. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth0 is attached. **


Not configured to listen on any interfaces!

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
[FAILED]

Anyone have any ideas on how I can fix this? Is there and interface option to let the dhcpd.conf know to use eth1 as the serving interface? Thanks.

Bryan
NVETHIS Networks
 
Old 07-09-2003, 06:19 PM   #2
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
actually you have to specify one, for it to work in rh9.

i forget where it is in the .conf ill find it in a second
 
Old 07-09-2003, 06:22 PM   #3
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
hum cant find it.. you can dl and install webmin, and configure the interface that way...

till i can figure out where it is.
 
Old 07-09-2003, 06:36 PM   #4
hakcenter
Member
 
Registered: Apr 2003
Location: Not to far from the computer screen
Distribution: RedHat 9.0
Posts: 324

Rep: Reputation: 30
found it
vi /etc/sysconfig/dhcpd

add
DHCPARGS=eth0
 
Old 07-10-2003, 10:26 AM   #5
NVETHIS
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Original Poster
Rep: Reputation: 0
SWEET I'll try that. Thanks.

-B
 
  


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
Need Advice; 3 NIC's; High Volume Mail Server; Sendmail; Iptables? Killer Bassist Linux - Networking 3 12-05-2005 12:40 AM
DHCP won't grab IP for either NIC's. mrsolo Linux - Networking 4 12-31-2003 04:10 PM
Server with 2 NIC's TheRealDeal Linux - General 2 09-22-2003 10:08 PM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 12:24 PM
x1 server, x2 NIC's, x2 networks jcbotha Linux - Networking 2 03-12-2003 12:59 PM


All times are GMT -5. The time now is 12:40 AM.

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