[lug] how can I configure custom routes through dhcpd

Ferdinand Schmid fschmid at archenergy.com
Wed Mar 17 16:06:53 MST 2004

--On Wednesday, March 17, 2004 03:58:49 PM -0700 Warren Sanders
<warren at sandersonline.org> wrote:

>| I would like to configure dhcpd to define different routers for various
>| networks.
>| example:
>| my network is
>| router connects to network
>| router connects to network
>| router is the default route
>| I have experimented with the subnet definitions but can't figure out what
>| directive I will need to use to do the above described job.  I can do it
>| manually by using route add -net -gw but I
> would
>| really like to do this configuration through dhcp.
> Hope I'm not too far off the mark.  In your dhcpd.conf I use something
> like this:
> ~    group {
> ~        host VPN1      { hardware ethernet <mac address>;
> ~    fixed-address; option routers; }
> ~    }

Thanks for trying to understand my question...  My problem description wasn't
very exact:

Your suggestion helps control another subnet with my dhcpd.  That's not what I
am trying to do.  I just want to tell the clients on my one dhcpd controlled
network ( to go through different routers, depending on the
destination network.


Ferdinand Schmid
Architectural Energy Corporation
Celebrating over 20 Years of Improving Building Energy Performance

More information about the LUG mailing list