I have only One dhcp server which has only one interface with ip address 10.0.0.1/24. The dhcpd.conf are like:
subnet 10.0.0.0 netmask 255.255.255.0 { <-------working
host yyy {
hardware ethernet BB:BB:BB:BB:BB:BB;
fixed-address 10.0.0.53;
}
}
subnet 192.168.0.0 netmask 255.255.255.0 { <--------not working, why?
host xxx {
hardware ethernet AA:AA:AA:AA:AA;
fixed-address 192.168.0.53;
}
}
When the host xxx try to request a dhcp, the dhcp server shows error: DHCPDISCOVER from AA:AA:AA:AA:AA via eth0: network 10.0.0.1/24: no free leases.
But when the host yyy ask for a ip address, the dhcp server do give out a DHCP offer.
Can I assign 192.168.0.0/24 address within a dhcp server only have 10.0.0.0/24 interface? How can I configure to make it work?