HI.
Want to setup DHCP for Nic eth1 (192.168.2.201).
From eth1 will be cable to dhcp network (7 clients).
In the same time, I have another Nic eth0 (192.168.1.201), where internet cable comes to server. (I have disable this to get working eth1 first)
so my problem is that, I can not start Dhcp!
[root@localhost ~]# service dhcpd restart
Shutting down dhcpd:
[FAILED]
Starting dhcpd:
[FAILED]
My configuration is:
1. [root@localhost ~]# ifconfig
eth1 Link encap:Ethernet HWaddr 00:14:85:34:5C:AF
inet addr:192.168.2.201 Bcast:192.168.2.255 Mask:255.255.255.0
2. [root@localhost ~]# dhcpd -d
No subnet declaration for eth1 (192.168.2.201).
** Ignoring requests on eth1. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth1 is attached. **
Not configured to listen on any interfaces!
3. [root@localhost ~]# vi /etc/sysconfig/dhcpd
# Command line options here
DHCPDARGS=eth1
4. ----/etc/dhcpd.conf ----------
# dhcpd.conf
ddns-update-style ad-hoc;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.2.201;
option routers 192.168.2.201;
option domain-name-servers 192.168.2.201;
option domain-name "your_domain.org"; # You really should fix this
option option-128 code 128 = string;
option option-129 code 129 = text;
get-lease-hostnames true;
next-server 192.168.2.201;
option root-path "192.168.2.201:/opt/ltsp/i386";
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.199;
if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
filename "/lts/2.6.16.1-ltsp-1/pxelinux.0";
}
else{
filename "/lts/vmlinuz-2.6.16.1-ltsp-1";
}
}
----end-of-------/etc/dhcpd.conf ----------
what to do?
Am I doing something wrong?
thanks.