Linux dhcp and dhcp forwarding
Posted on 2006-04-05
I have a question concerning the configuration of dhcp in a situation where there will need to be multiple subnets and dhcp forwarders.
Lets say I have a network 10.0.0.0. I place a linux based dhcp server at IP 10.0.0.1. It needs to be set up to deliver ip addresses in the 10.0.2.0 255.255.255.0 range. The clients will all be part of the same class a domain, but this is just an example.
However an additional situation applies. Another device, which acts as a dhcp forwarder is sitting on the 10.0.0.0 network at 10.0.0.2. Currently lets say that device is forwarding its dhcp packets to the gateway router which is acting as a dhcp server. I want to change it so that the device forwards the 10.0.0.1 linux dhcp server. (I know you cant run two dhcp servers at the same time... so the gateway router dhcp service will be shut off before the Linux DHCP service is started.) Changing the forwarding device's settings is simple. The problem (at least for me) is that the devices behind the dhcp forwarder need their ips assigned in a specific stretch of the class b 172.16.0.0 range.
It may be simple but how would I configure the dhcp server to meet this situation... I've seen situations where the linux dhcp is acting as the router for both subnets, but this is not the case, and its not actually sending the dhcp info to a subnet in the second case, its sending the dhcp info to the single ip address.