Difference between revisions of "ISC DHCP Server (non kea)"

From Michael's Information Zone
Jump to navigation Jump to search
Line 4: Line 4:
 
==Classless static routes==
 
==Classless static routes==
 
This one was interesting in how the data was formatted. You first specify the subnet, then the destination, then the router.
 
This one was interesting in how the data was formatted. You first specify the subnet, then the destination, then the router.
option  
+
In the global options define the classless route option
 +
option classless-routes code 121 = array of unsigned integer 8;
 +
Then in the subnet options set your classless route
 +
option classless-routes 24, 192, 168, 100, 192, 168, 1, 2;
 +
*24, = Defines this as a /24 subnet
 +
*192, 168, 100, = Defines the subnet as 192.168.100.0
 +
*192, 168, 1, 2 = Defines the gateway
 +
 
 
<ref>https://tools.ietf.org/html/rfc3442</ref><ref>https://ercpe.de/blog/pushing-static-routes-with-isc-dhcp-server</ref><ref>https://gauvain.pocentek.net/docs/dhcpd-push-routes/</ref><ref>https://tmgblog.richardhicks.com/2009/01/08/using-dhcp-to-assign-static-routes/</ref><ref>https://forums.freebsd.org/threads/40584/</ref>
 
<ref>https://tools.ietf.org/html/rfc3442</ref><ref>https://ercpe.de/blog/pushing-static-routes-with-isc-dhcp-server</ref><ref>https://gauvain.pocentek.net/docs/dhcpd-push-routes/</ref><ref>https://tmgblog.richardhicks.com/2009/01/08/using-dhcp-to-assign-static-routes/</ref><ref>https://forums.freebsd.org/threads/40584/</ref>

Revision as of 09:54, 31 March 2017

Various options I have used

Mitel

Classless static routes

This one was interesting in how the data was formatted. You first specify the subnet, then the destination, then the router. In the global options define the classless route option

option classless-routes code 121 = array of unsigned integer 8;

Then in the subnet options set your classless route

option classless-routes 24, 192, 168, 100, 192, 168, 1, 2;
  • 24, = Defines this as a /24 subnet
  • 192, 168, 100, = Defines the subnet as 192.168.100.0
  • 192, 168, 1, 2 = Defines the gateway

[1][2][3][4][5]