Hi
I'm no expert on DHCP so i come to you for help.
My problem is that i have a CentOS 5.5 server on which i want to install a DHCP server. I have two NICs where eth0 has access to the internet and where eth1 should act as an DHCP server.
I have installed dhcpd and this is how my dhcpd.conf file looks like.
Code:
ddns-update-style ad-hoc;
ignore client-updates;
default-lease-time 600;
max-lease-time 7200;
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.2 10.0.0.25;
option domain-name-servers 10.0.0.100;
option routers 10.0.0.100;
option broadcast-address 10.0.0.255;
default-lease-time 600;
max-lease-time 7200;
}
ifconfig looks like this
Code:
eth0 Link encap:Ethernet HWaddr 00:1B:21:4A:F5:72
inet addr:10.0.15.107 Bcast:10.0.15.255 Mask:255.255.255.0
inet6 addr: fe80::21b:21ff:fe4a:f572/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4251 errors:0 dropped:0 overruns:0 frame:0
TX packets:4097 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:355808 (347.4 KiB) TX bytes:516984 (504.8 KiB)
eth1 Link encap:Ethernet HWaddr 00:04:76:F5:94:9D
inet addr:10.0.0.100 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:225 Base address:0xcc00
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:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)
When i start dhcpd on eth1 i get no error messages but when i connect any devices to eth1 they don't get any IP. I cant find anything in any logs about devices trying to get an IP address.
I dont have any firewall rules in iptables.
Anyone have a hint about whats wrong?