Hi just new in linux enviroment and got stuck when configuring dhcp sever
when running it. any help is highly appreciated
1.
My /etc/dhcp.conf file
# global-definitions
ddns-update-style interim;
ignore client-updates;
option subnet-mask 255.255.255.0;
option domain-name "scott.ac.ke";
option domain-name-server 192.168.11.254;
default-lease-time 21600; # second till expire
max-lease-time 43200; # maximum lease time
subnet 192.168.11.0 netmask 255.255.255.0
{
option routers 192.168.1.22;
option subnet-mask 255.255.255.0;
range 192.168.11.1 192.168.11.25;
localdomain
{
Ethernet HWaddr 00:14:22:55
7:81;
fixed-address 192.168.11.55;
}
}
2.
The error i am getting
[root@localhost ~]# service dhcpd restart
Shutting down dhcpd: [FAILED]
Starting dhcpd: Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit
http://www.isc.org/sw/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
No subnet declaration for eth0 (192.168.10.112). (very funny adress what could be wrong)
** 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.
3.
dhcpd 3.0.1-server restart command gives different result
[root@localhost ~]# dhcpd 3.0.1-server restart
Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit
http://www.isc.org/sw/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
No subnet declaration for restart (0.0.0.0).
** Ignoring requests on restart. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface restart is attached. **
No subnet declaration for 3.0.1-server (0.0.0.0).
** Ignoring requests on 3.0.1-server. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface 3.0.1-server is attached. **
Not configured to listen on any interfaces!
4.THE ifcommand results
Link encap:Ethernet HWaddr 00:14:22:55
7:81
inet addr:192.168.10.112 Bcast:192.168.255.255 Mask:255.255.0.0
inet6 addr: fe80::214:22ff:fe55:d781/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:125279 errors:0 dropped:0 overruns:0 frame:0
TX packets:13710 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27140678 (25.8 MiB) TX bytes:1429740 (1.3 MiB)
Interrupt:169
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2088 errors:0 dropped:0 overruns:0 frame:0
TX packets:2088 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0