[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 10.0.0.0/24
>|
>| router 10.0.0.100 connects to network 192.168.0.0/24
>| router 10.0.0.101 connects to network 192.168.100.0/24
>| router 10.0.0.1 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 192.168.0.0/24 -gw 10.0.0.100 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 192.168.1.2; option routers 192.168.1.1; }
> ~ }
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 (10.0.0.0/24) to go through different routers, depending on the
destination network.
Ferdinand
--
Ferdinand Schmid
Architectural Energy Corporation
Celebrating over 20 Years of Improving Building Energy Performance
http://www.archenergy.com
More information about the LUG
mailing list