I've started using the classless-static-route option in dhcpd(8). This
was not as painless as possible because I missed some important
information from the underlying RFC to understand how the option is
used by clients and how it should be configured on the server.

The patch below tries to add this information to dhcp-options(5),
without beeing too verbose.

While there, I also noted that the classful routes are obsolete. I was
wondering if we could just remove this option from the doc (and maybe
tedu the code ?) instead.

Ok, corrections, ... ?

Index: dhcp-options.5
RCS file: /cvs/OpenBSD/src/usr.sbin/dhcpd/dhcp-options.5,v
retrieving revision 1.22
diff -u -p -u -r1.22 dhcp-options.5
--- dhcp-options.5      14 Sep 2015 20:06:59 -0000      1.22
+++ dhcp-options.5      28 Feb 2018 16:16:34 -0000
@@ -171,6 +171,10 @@ RFC 1122.
 .It Ic option classless-static-routes Ar ip/prefix ip Oo , Ar ip/prefix ip ... 
Oc ;
 This option specifies a list of static routes in CDIR notation, which
 should be sent to the client.
+This option is specified in RFC3442.
+Note that, since the RFC says that clients supporting this option must ignore 
+.Ic Routers option when both are present, the default route
+needs to be included in the list of routes specified here.
 .It Ic option classless-ms-static-routes Ar ip/prefix ip Oo , Ar ip/prefix ip 
... Oc ;
 This option does the same as
 .Ic classless-static-routes ,
@@ -517,6 +521,8 @@ The default route ( is an illega
 To specify the default route, use the
 .Ic routers
+Note that this option is obsolete and should be replaced by the
+.Ic classless-static-routes option.
 .It Ic option streettalk-directory-assistance-server Ar ip-address Oo , Ar 
ip-address ... Oc ;
 The StreetTalk Directory Assistance (STDA) server option specifies a
 list of STDA servers available to the client.

Matthieu Herrb

Reply via email to