Hi, It's not always desirable to request option 121 by default. Some ISPs explicitly demand not to request option 121; therefore it's better to specify the option explicitly in the reqopts parameter if needed.
Bye, Hans On Wed, Nov 18, 2015 at 12:33 AM, Baptiste Jonglez < bapti...@bitsofnetworks.org> wrote: > From: Baptiste Jonglez <g...@bitsofnetworks.org> > > This option is very useful when the gateway configured by DHCP cannot > be in the same subnet as the client. This happens, for instance, when > using DHCP to hand out addresses in /32 subnets. > > Signed-off-by: Baptiste Jonglez <g...@bitsofnetworks.org> > --- > package/network/config/netifd/files/lib/netifd/proto/dhcp.sh | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh > b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh > index 0e88af9..1eb8010 100755 > --- a/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh > +++ b/package/network/config/netifd/files/lib/netifd/proto/dhcp.sh > @@ -38,6 +38,8 @@ proto_dhcp_setup() { > append dhcpopts "-x $opt" > done > > + # Classless route option, see RFC 3442 > + append dhcpopts "-O 121" > [ "$broadcast" = 1 ] && broadcast="-B" || broadcast= > [ -n "$clientid" ] && clientid="-x 0x3d:${clientid//:/}" || > clientid="-C" > [ -n "$iface6rd" ] && proto_export "IFACE6RD=$iface6rd" > -- > 1.9.1 > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel >
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel