I want for the devices which belong to different VLANs to have different routers. For instance:
- The device 10.0.10.84 inside a VLAN 10.0.10.0/24 would have its router set to 10.0.10.1, whereas:
- The device 10.0.11.6 belonging to 10.0.11.0/24 should use the router 10.0.11.1.
I configured ISC DHCP server like this:
subnet 10.0.10.0 netmask 255.255.255.0 {
option subnet-mask 255.255.0.0;
option routers 10.0.10.1;
...
pool {
failover peer "dhcp-primary";
max-lease-time 1800;
range 10.0.10.200 10.0.10.210;
}
}
subnet 10.0.11.0 netmask 255.255.255.0 {
option subnet-mask 255.255.0.0;
option routers 10.0.11.1;
...
pool {
failover peer "dhcp-primary";
max-lease-time 1800;
range 10.0.11.200 10.0.11.210;
}
}
host nmap-tests {
hardware ethernet de:ad:c0:de:ca:fe;
fixed-address 10.0.11.6;
}
Unfortunately, this doesn't work. When I run nmap --script broadcast-dhcp-discover
, the dump from tcpdump -n -i eth0 port bootps or port bootpc -v
shows the original request:
0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from de:ad:c0:de:ca:fe ...
and the response:
10.0.10.5.67 > 255.255.255.255.68: BOOTP/DHCP, Reply, ...
Your-IP 192.168.1.205
Client-Ethernet-Address de:ad:c0:de:ca:fe
Given the configuration, I would expect the DHCP server to respond with the fixed address 10.0.11.6, and not an IP address from the pool.
What's wrong with the configuration?