Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-28-2002, 09:54 AM
|
#1
|
LQ Newbie
Registered: Aug 2002
Posts: 4
Rep:
|
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
|
|
|
08-28-2002, 10:49 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
08-28-2002, 11:31 AM
|
#3
|
LQ Newbie
Registered: Aug 2002
Posts: 4
Original Poster
Rep:
|
Is the second comment added to a specific conf file or just executed at the command line? Thanks for the feedback.
|
|
|
08-28-2002, 11:34 AM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
just from console
|
|
|
08-28-2002, 11:47 AM
|
#5
|
LQ Newbie
Registered: Aug 2002
Posts: 4
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 11:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|