<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 10/24/2014 1:57 AM, Rajeev Bansal
      wrote:<br>
    </div>
    <blockquote
cite="mid:CALpSCk-ykx7xMnJddDTckhLB9gxi-=4C+cAUv0H1gmzakOGxYw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>Dear All,<br>
                <br>
              </div>
                 My name is Rajeev. I have a use case where I need to
              push the static route from a router to a client machine, I
              am running the Android in my router. I am using the dhcpd
              to assign the IP address along with the static route to
              the client. I found dhcpd is able to send the static route
              option when I run it on my Linux PC and the dhcp client is
              able to add the static route in its routing cache. However
              when I cross compiled the dhcpd for my target (ARM based
              android ) it doesn't send the static route options except
              that it sends rest all other options. I have tried with
              the dhcp-4.1-ESV-R3, dhcp-4.1-ESV-R10, and dhcp-4.2.7 and
              I found behaviour is same. Below is my dhcpd.conf <br>
              <br>
              "<br>
                 subnet 192.168.1.0 netmask 255.255.255.0
              {                      <br>
                
              authoritative;                                                   
              <br>
                 always-broadcast
              on;                                              <br>
                 range 192.168.1.2
              192.168.1.2;                              <br>
                 default-lease-time
              120;                                           <br>
                 max-lease-time
              120;                                               <br>
                 option routers
              192.168.1.1;                                    <br>
                 option ip-forwarding
              off;                                         <br>
                 option broadcast-address 100.65.168.243;    <br>
                 option subnet-mask 255.255.255.252;         <br>
                 option domain-name-servers 122.175.1.5, 203.145.160.6;<br>
                 option static-routes 192.168.5.1 192.168.1.10;<br>
              }      <br>
              "<br>
              <br>
            </div>
            Can someone point me out what is that I am missing on the
            target. Command which I uses to launch the dhcps is as
            follows:<br>
            <br>
          </div>
          <div>dhcpd -cf /tmp/dhcpd.conf -lf /tmp/dhcpd.lease<br>
          </div>
          <div><br>
          </div>
          Thanks,<br>
        </div>
        -Rajeev<br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
dhcp-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dhcp-users@lists.isc.org">dhcp-users@lists.isc.org</a>
<a class="moz-txt-link-freetext" href="https://lists.isc.org/mailman/listinfo/dhcp-users">https://lists.isc.org/mailman/listinfo/dhcp-users</a></pre>
    </blockquote>
    <br>
    <tt>You might try:</tt><tt><br>
    </tt><font color="#993300"><tt>option
        classless-static-routes          code 121 = array of unsigned
        integer 8; # for Windows Vista and other non Windows DHCP
        clients</tt><tt><br>
      </tt><tt>option classless-static-routes-ms       code 249 = array
        of unsigned integer 8; # for Windows 2000 and XP clients </tt><tt><br>
      </tt><tt><br>
      </tt><tt>subnet 192.168.1.0 netmask 255.255.255.0 {</tt><tt><br>
      </tt><tt>.</tt><tt><br>
      </tt><tt>.</tt><tt><br>
      </tt><tt>       option classless-static-routes         
        32,192,168,5,1, 192,168,1,10;</tt><tt><br>
      </tt><tt>       option classless-static-routes-ms      
        32,192,168,5,1, 192,168,1,10;</tt><tt><br>
      </tt><tt>
      </tt><tt>}</tt></font><br>
    <br>
    You could do a whole subnet  (192.168.5.0/24) with:<br>
    <font color="#993300"><tt>       option classless-static-routes    
             24,192,168,5, 192,168,1,10;</tt></font><br>
    <br>
    Bill<br>
    <br>
  </body>
</html>