Hi..grp
I want to run DHCP server in my NAT server [redhat 9]..
i have assigened public ip to eth0...and 192.168.1.0 network assigned to eth1....
#my dhcpd.conf file look like this
ddns-update-style ad-hoc;
ddns-update-style interim;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.201 192.168.1.220;
default-lease-time 86400;
max-lease-time 86400;
option routers 192.168.1.1;
option ip-forwarding off;
option broadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 202.144.10.50;
}
#NAT file is
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -A INPUT -p tcp -i eth0 --dport 67 -j ACCEPT
/sbin/iptables -A INPUT -p tcp -i eth0 --dport 68 -j ACCEPT
/sbin/iptables -A INPUT -p udp -i eth0 --dport 67 -j ACCEPT
/sbin/iptables -A INPUT -p udp -i eth0 --dport 68 -j ACCEPT
but if iam starting dhcp service it gives error like
[root@localhost rc.d]# service dhcpd start
Starting dhcpd: Internet Software Consortium DHCP Server V3.0pl1
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Wrote 0 leases to leases file.
No subnet declaration for eth0 (public ip).
** 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]
"
pls help.me