1

I want to add a static route to 10.13.0.1/32 via 192.168.178.10 to my dhcpd.conf of my dhcpd server. Unfortunately this seems to be insanely complicated.

I tried the following:

option static-routes 10.13.0.1 192.168.178.10;

However this will add a route to 10.0.0.0/8 via 192.168.178.10 which is undesired. I also tried:

option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
option ms-classless-static-routes 32, 10, 13, 0, 1, 192, 168, 178, 10;

Which results in the dhcpd to no longer start:

Feb 13 20:49:30 csh-gw dhcpd[32042]: For info, please visit https://www.isc.org/software/dhcp/
Feb 13 20:49:30 csh-gw dhcpd[32042]: /var/lib/dhcp//etc/dhcpd.conf line 63: unknown option dhcp.ms-classless-static-routes
Feb 13 20:49:30 csh-gw dhcpd[32042]: option ms-classless-static-routes 32,
Feb 13 20:49:30 csh-gw dhcpd[32042]:         ^
Feb 13 20:49:30 csh-gw dhcpd[31870]: Starting ISC DHCPv4 Server
Feb 13 20:49:30 csh-gw dhcpd[31870]:   please see /var/log/rc.dhcpd.log for details ..failed

Googling for this issue did only yield results of adding routes to entire networks including a default gateway, which I do not want.

1 Answer 1

0

Did you ever try this?

option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
option rfc3442-classless-static-routes 32, 10, 13, 0, 1, 192, 168, 178, 10;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.