ISC DHCP - Two subnets on one physical interface.



I'm having some trouble trying to get dhcp to serve two subnets on one
interface.
The first is 10.0.0.0/24 which is for office workstations and
equipment. Everyone in here is assigned a static ip via mac address.
The second is a 'guest' network which is 10.0.10.0/24.

I was able to get dhcp to assign the ip address for both subnets by
making the subnet declaration 10.0.0.0/16. The problem is that there
are other settings that need to be set like the default route, dns,
netmask, etc.

In my first attempt, I made a pool and set all the settings to be that
of the guest network. I would then override those settings in the
host declarations for the office equipment. The problem is that it
didn't like having options such as routers,domain-name-servers, etc in
the host declarations.

Does anyone know how I can do this without a second NIC?

Below is my current config.
################ Current Config #################
max-lease-time 86400;
default-lease-time 14400;
ddns-update-style interim;

log-facility local4;

subnet 10.0.0.0 netmask 255.255.0.0 {
authoratative;
range 10.0.10.10 10.0.10.250; ## Guest Network

# don't let clients update A records for ddns
ignore client-updates;

# options
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.255;

option domain-name "domain.tld";
#option domain-name-servers 65.106.1.196,65.106.7.196;
#option routers 10.0.10.1;
option domain-name-servers 10.0.0.225;
option routers 10.0.0.1;

option ntp-servers 10.0.0.250;

option netbios-scope "";
option netbios-node-type 8;

host ws1 {hardware ethernet 00:13:21:d0:3f:0b;fixed-address 10.0.0.3;}
host ws2 {hardware ethernet 00:0d:9d:4c:94:4d;fixed-address 10.0.0.5;}
host ws3 {hardware ethernet 00:0d:9d:4b:35:bd;fixed-address 10.0.0.6;}
host ws4 {hardware ethernet 00:0b:cd:c3:ee:03;fixed-address 10.0.0.7;}
}
########################################

The following is what I would have liked to set up. Understandably
the following won't work because the two networks are not physically
separated, and there is only one NIC available for dhcp.


max-lease-time 86400;
default-lease-time 14400;
ddns-update-style interim;

log-facility local4;

subnet 10.0.10.0 netmask 255.255.255.0 {
authoratative;
range 10.0.10.10 10.0.10.250; ## Guest Network

# don't let clients update A records for ddns
ignore client-updates;

# options
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.10.255;

option domain-name "guest.domain.tld";
option domain-name-servers 65.106.1.196,65.106.7.196;
option routers 10.0.10.1;
}


subnet 10.0.0.0 netmask 255.255.255.0 {
authoratative;

# don't let clients update A records for ddns
ignore client-updates;

# options
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.255;

option domain-name "domain.tld";
option domain-name-servers 10.0.0.225;
option routers 10.0.0.1;

option ntp-servers 10.0.0.250;

option netbios-scope "";
option netbios-node-type 8;

host ws1 {hardware ethernet 00:13:21:d0:3f:0b;fixed-address 10.0.0.3;}
host ws2 {hardware ethernet 00:0d:9d:4c:94:4d;fixed-address 10.0.0.5;}
host ws3 {hardware ethernet 00:0d:9d:4b:35:bd;fixed-address 10.0.0.6;}
host ws4 {hardware ethernet 00:0b:cd:c3:ee:03;fixed-address 10.0.0.7;}
}

.



Relevant Pages

  • Re: ISC DHCP - Two subnets on one physical interface.
    ... making the subnet declaration 10.0.0.0/16. ... of the guest network. ... # don't let clients update A records for ddns ... option routers 10.0.0.1; ...
    (comp.os.linux.networking)
  • RE: 2 x DC, 2 sites and NT4 servers same domain HELP
    ... with regards to the dhcp and dns on a second ... site, i understand i can install dhcp on a different subnet, but would it be ... a good idea to install dns on this server too, or should i keep it to only ...
    (microsoft.public.windows.server.migration)
  • Re: DHCP relay, superscope and laptops
    ... each of which has it's own subnet. ... The Switch then acts as a DHCP relay, ... relaying DHCP requests to a central DHCP server, ... What we did as a workaround, was that we created one superscope for each ...
    (microsoft.public.windows.server.networking)
  • RE: 2 x DC, 2 sites and NT4 servers same domain HELP
    ... Your understanding is correct that you can add second DC in another subnet ... as long as there is router can provide the route. ... subnet to provide DHCP function for 192.168.86.0 scope will be ... better than using the original DHCP server in 192.168.82.0 subnet. ...
    (microsoft.public.windows.server.migration)
  • Re: Issue when changing IP address from Static to DHCP
    ... - DHCP disabled ... - Subnet 255.255.255.0 ... I try to run the server on my desktop and the client on the pxa board and it ... >> it worked but it took forever to load. ...
    (microsoft.public.windowsce.platbuilder)