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 |
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 |
hum cant find it.. you can dl and install webmin, and configure the interface that way...
till i can figure out where it is. |
found it
vi /etc/sysconfig/dhcpd add DHCPARGS=eth0 |
SWEET:D I'll try that. Thanks.
-B |
All times are GMT -5. The time now is 10:17 AM. |