I can''t get it to give out addresses. Here''s what I have set up:
NIC1 (eth2) on an external IP, working as expected
NIC2 (eth0) on 192.168.20.0, netmask 255.255.255.0, no default gateway specified
/etc/dhcpd.conf looks like this:
default-lease-time 600;
max-lease-time 7200;
option domain-name-servers AN_IP, ANOTHER_IP, YET_ANOTHER_IP;
option domain-name "myvendor.whatever";
ddns-update-style ad-hoc;
subnet 192.168.40.32 netmask 255.255.255.224 {
range 192.168.40.50 192.168.40.62;
option routers 192.168.40.33;
option subnet-mask 255.255.255.0;
host 192.168.40.60 { hardware ethernet 00:10:5A:40:C9:EA; fixed-address 192.168.40.60; }
}
shared-network network_name {
subnet 192.168.20.0 netmask 255.255.255.0 {
range 192.168.20.10 192.168.20.199;
option routers 192.168.20.1;
option subnet-mask 255.255.255.0;
}
subnet 192.168.22.0 netmask 255.255.255.0 {
range 192.168.22.2 192.168.22.10;
option routers 192.168.22.1;
option subnet-mask 255.255.255.0;
}
host 192.168.22.2 { hardware ethernet 00:50:BF:5E:81:F5; fixed-address 192.168.41.2; }
host 192.168.22.3 { hardware ethernet 52:54:05:C4:99:EA; fixed-address 192.168.41.3; }
}
The DHCP server is connected to a test computer over a hub/switch, which otherwise successfully obtains an IP address from an alternate network (therefore I''m rather confident that it''s my configuration that is not right here).
The above configuration file wasn''t written by me, but I know it works. Basically, the computer trying to obtain the IP address (seemingly) can''t see the DHCP server and times out (and yes - it is set to automatically obtain an IP address).
eth0 has been added to modules.conf as DHCPARGS and DHCP seems to start just fine with:
service dhcpd start eth0
Anybody got any hints as to what might be wrong?
"Finishing in second place, simply means you are the first loser." - PouyaCat
"Literally, it means that Bob is everything you can think of, but not dead; i.e., Bob is a purple-spotted, yellow-striped bumblebee/dragon/pterodactyl hybrid with a voracious addiction to Twix candy bars, but not dead."- kSquared