Two subnets, one with PXE clients
Osmany
osmany at oc.quimefa.cu
Wed Mar 3 14:49:20 UTC 2010
> What did the server say ? It should work, and is working for others.
>
> When you added the second NIC, the problem you got is the one I had
> in mind when I wrote "it will complicate matters if you do" !
>
> Have you defined both subnets to be members of a shared network ? If
> not then you'll never get it working right.
>
Ok. this is what I have:
authoritative;
ddns-updates on;
ddns-update-style interim;
ddns-domainname "oc.quimefa.cu.";
ddns-rev-domainname "in-addr.arpa.";
ignore client-updates;
include "/etc/bind/rndc.key";
zone oc.quimefa.cu.{
primary 127.0.0.1;
key rndc-key;
}
zone 4.25.10.in-addr.arpa.{
primary 127.0.0.1;
key rndc-key;
}
option domain-name "oc.quimefa.cu";
option domain-name-servers 10.25.4.8;
option ntp-servers 10.25.4.6;
option ip-forwarding off;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
class "PXEClients" {
match if substring (option vendor-class-identifier, 0, 3)="PXE";
one-lease-per-client on;
next-server 192.168.0.2;
filename "/ltsp/pxelinux.0";
option root-path "/opt/ltsp/i386";
allow booting;
allow bootp;
}
subnet 10.25.4.0 netmask 255.255.255.0 {
option routers 10.25.4.1;
option broadcast-address 10.25.4.255;
one-lease-per-client on;
pool{
range 10.25.4.20 10.25.4.46;
range 10.25.4.48 10.25.4.51;
range 10.25.4.53 10.25.4.78;
range 10.25.4.80 10.25.4.94;
range 10.25.4.96 10.25.4.170;
range 10.25.4.172 10.25.4.210;
range 10.25.4.212 10.25.4.229;
allow unknown-clients;
deny members of "PXEClients";
}
}
subnet 192.168.0.0 netmask 255.255.255.0 {
pool{
range 192.168.0.3 192.168.0.50;
allow members of "PXEClients";
}
}
when I add the second IP to the interface the dhcp3-server does not
start and I get this in the syslog:
Internet Systems Consortium DHCP Server V3.1.1
Mar 3 09:46:28 apolo dhcpd: Copyright 2004-2008 Internet Systems
Consortium.
Mar 3 09:46:28 apolo dhcpd: All rights reserved.
Mar 3 09:46:28 apolo dhcpd: For info, please visit
http://www.isc.org/sw/dhcp/
Mar 3 09:46:28 apolo dhcpd: Wrote 0 class decls to leases file.
Mar 3 09:46:28 apolo dhcpd: Wrote 197 leases to leases file.
Mar 3 09:46:28 apolo dhcpd: Interface eth2 matches multiple shared
networks
More information about the dhcp-users
mailing list