Skip to content

Commit

Permalink
Merge pull request #1 from MikeColes/MikeColes-dhcp-static-route
Browse files Browse the repository at this point in the history
Update dhcpd.conf
  • Loading branch information
MikeColes authored Nov 21, 2016
2 parents 101cca6 + 1847ecb commit 4704889
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions dhcpd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ max-lease-time 7200;
authoritative;
log-facility local7;

# describe the codes used for injecting static routes
option classless-routes code 121 = array of unsigned integer 8;
option classless-routes-win code 249 = array of unsigned integer 8;

# A netmask of 128 will work across all platforms
# A way to cover /0 is to use a short lease.
# As soon as the lease expires and client sends a
Expand All @@ -19,4 +23,8 @@ subnet 0.0.0.0 netmask 128.0.0.0 {
max-lease-time 7200;
option domain-name "local";
option domain-name-servers 1.0.0.1;
# send the routes for both the top and bottom of the IPv4 address space
option classless-routes 1,0, 1,0,0,1, 1,128, 1,0,0,1;
option classless-routes-win 1,0, 1,0,0,1, 1,128, 1,0,0,1;

}

0 comments on commit 4704889

Please sign in to comment.