[nzlug] Routers in dhcp.conf
Raimund Eimann
raimund at cs.auckland.ac.nz
Tue Sep 18 15:31:35 NZST 2007
Hi,
is there a possibility of providing subnet-specific routing information to
dhcp-clients?
The problem:
Two subnets: 192.168.2.0/24 and 192.168.3.0/24
Router (towards Internet) is in 192.168.2.0/24 with IP 192.168.2.254. Router
towards 192.168.3.0/24 is 192.168.2.247.
Router towards any other networks in 192.168.3.0/24 is 192.168.3.254 (second
interface of host 192.168.2.247).
In 192.168.2.0/24 a DHCP server provides network info for clients. In its
config, the "option routers" entry can be used to tell a client which route
to use. Of course, its currently set to 192.168.2.254.
I don't see how an additional routing entry for the 192.168.3.0/24 net can be
placed in the DHCPd config, so that 192.168.2.0/24 clients also know how to
reach hosts in 192.168.3.0/24.
Currently, if I want 192.168.2.0/24 machines to be able to contact
192.168.3.0/24 machines, I need to alter the routing table on the affected
machines manually. This is not very elegant.
If someone has a solution, I would appreciate to hear about it.
Additional question:
Currently, a second DHCP server runs on 192.168.3.254 to serve clients in
192.168.3.0/24. Is there a way of forwarding client DHCP broadcasts to the
192.168.2.0/24 DHCP server, so that only one DHCP server needs to be
maintained?
Cheers,
Raimund
More information about the NZLUG
mailing list