[lug] how can I configure custom routes through dhcpd

Warren Sanders warren at sandersonline.org
Wed Mar 17 15:58:49 MST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ferdinand Schmid wrote:

|HI,
|
|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; }
~    }


- --
Warren Sanders
Family Photo Galleries
http://SandersOnline.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQFAWNgp2/99byU+bbQRAr0XAJ44SsAWTdAWMnym3s+weUosopHx4ACePmnB
IeMqqD8HZ9m7iEHwD2OVNFs=
=mh1D
-----END PGP SIGNATURE-----




More information about the LUG mailing list