LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-28-2002, 09:54 AM   #1
hwb0014
LQ Newbie
 
Registered: Aug 2002
Posts: 4

Rep: Reputation: 0
need help with dhcpd.conf file running two nics


problem is this:

I am running a linksys router in a RH72 firewall running two nics. One for the router and the other for the internal lan. At the same time, my firewall is also a dhcp and a DNS server. Is it wise to have the DHCP server and DNS on the firewall? Another thing is my dhcpd.conf file needs to be configured correctly. When i restart the dhcpd daemon, it fails because it asks me to declare a subnet for eth0 (from router). How would my syntax be for declaring a subnet for this particular interface. I have checked various websites and howto's but none were helpful.

My dhcpd.conf looks something like this:

subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.254;
option subnet-mask 255.255.255.0;

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

option time-offset -18000; # Eastern Standard Time

range 192.168.1.10 192.168.1.100;
}

What device is this script variable for? Does it automatically assume it is for eth1? If so, then how do I declare a script for the likes of eth0?

Any help would be appreciated! Thanks
 
Old 08-28-2002, 10:49 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980
it doesn't use eth0 / eth1 directly, it simply takes the declared subnet ranges and masks them up to the ip addresses and interfaces you are already using on the machine. to get around this either...

a) delcare an empty subnet for the external interface:

subnet a.b.c.d netmask 255.255.255.0 { }

or b) start the dhcpd server on a specific interface only:

#dhcpd eth0

or which ever subnet you wish to assign addresses on. I normally go to option b) and just start it from a command line (i.e. not on boot) i'm sure it's possible to do it on bott with that option, but i'm not fussed enough to find out how. so either way there's your answer hopefully.
 
Old 08-28-2002, 11:31 AM   #3
hwb0014
LQ Newbie
 
Registered: Aug 2002
Posts: 4

Original Poster
Rep: Reputation: 0
Is the second comment added to a specific conf file or just executed at the command line? Thanks for the feedback.
 
Old 08-28-2002, 11:34 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980
just from console
 
Old 08-28-2002, 11:47 AM   #5
hwb0014
LQ Newbie
 
Registered: Aug 2002
Posts: 4

Original Poster
Rep: Reputation: 0
I think you hit it right on the button....I will try to declare the empty subnet to see if this works once I get home..Thanks for the feed
 
  


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
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 10:32 AM
can't file dhcpd.conf vito_huang Linux - Networking 6 01-28-2005 07:04 AM
dhcpd.conf with 2 NICS TheRealDeal Linux - General 1 11-19-2003 03:23 PM
Installed DHCP on RH7.2, no dhcpd.conf file??? AnthonyM Linux - Networking 8 07-30-2002 07:21 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 01:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration