Two subnets in DHCP Server

Stephan Schöffel schoeffel at fh-bingen.de
Thu Sep 3 08:43:21 UTC 2009


Hi there,

I'm trying to make my dhcp server provide addresses for two subnets. It 
works well for the first, but not on the second.

Here is the dhcpd.conf


#################################
option option-135 code 135 = text;
option option-135 "pxe";
option space PXE;

ddns-update-style none;
max-lease-time 172800;

authoritative;

use-host-decl-names on;
deny unknown-clients;
default-lease-time 14400;
option domain-name "fh-bingen.de";
option domain-name-servers 143.93.65.1, 143.93.79.1;

subnet 143.93.77.0 netmask 255.255.255.0 {
  option routers 143.93.77.254;
  option vendor-class-identifier "PXEClient";
  default-lease-time 14400;
  max-lease-time 172800;

Host MacMini {
        hardware ethernet 00:16:cb:ab:b6:89;
        fixed-address 143.93.77.189;
 }

} ###Ende 143.93.77.0/24

subnet 143.93.79.0 netmask 255.255.255.0 {
  option routers 143.93.79.254;
  option vendor-class-identifier "FB2";
  default-lease-time 14400;
  max-lease-time 172800;

Host HP_P2015dn {
        hardware ethernet 00:1a:4b:2f:00:9c;
        fixed-address 143.93.79.171;
 }

}


But regarding the logs, it doesn't even seem to listen on the second net.

Sep  3 10:24:42 myshn dhcpd: Listening on 
LPF/eth0/00:13:72:f7:97:3f/143.93.77/24
Sep  3 10:24:42 myshn dhcpd: Sending on   
LPF/eth0/00:13:72:f7:97:3f/143.93.77/24
Sep  3 10:24:42 myshn dhcpd: Sending on   Socket/fallback/fallback-net
Sep  3 10:28:36 myshn dhcpd: DHCPDISCOVER from 00:1a:4b:2f:00:9c via 
eth0: network 143.93.77/24: no free leases



The server address is 143.93.77.181. Does it have to have another NIC in 
the 143.93.79.0/24 net?

Thanks
Stephan




More information about the ubuntu-users mailing list