<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 04/24/12 08:30, Mukund Deshpande wrote:
    <blockquote
cite="mid:CAP+-6dad3PP+RUJRw=-aDKFm340dRm_CHMvFQfrqg+i00kNDRg@mail.gmail.com"
      type="cite">Hi All,
      <div><br>
      </div>
      <div>I am facing two issues when using ISC DHCP (Using version
        4.2.2). </div>
      <div><br>
      </div>
      <div>When I keep a network address like 7.7.7.0 in range it gets
        assigned on client.</div>
      <div>Is this correct behavior?</div>
      <div><br>
      </div>
      <div>Also when i try to ping on the address assigned by dhclient
        on an interface i get error "connect: Invalid Argument" , even
        when i have host addresses in range.</div>
      <div>Can any body please provide me with pointers as to why ping
        doesn't work?</div>
      <div><br>
      </div>
      <div>
        <div><br>
        </div>
        <div>#</div>
        <div># /etc/dhcpd.conf - DHCP Server Setup File.</div>
        <div>#</div>
        <div><br>
        </div>
        <div># DHCP Pool sms</div>
        <div>subnet 7.7.7.0 netmask 255.255.255.0 {</div>
        <div> option subnet-mask 255.255.255.0;</div>
        <div> range 7.7.7.0;</div>
        <div> default-lease-time 86400;</div>
        <div> max-lease-time 86400;</div>
        <div>}</div>
        <div>ddns-update-style none;</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Running dhclient as </div>
        <div><br>
        </div>
        <div>
           [root@Marvell1 ~]#/usr/sbin/dhclient -4 -cf
          /etc/dhclient-eth1.conf -lf /etc/dhclient-eth1.leases -pf
          /var/run/dhclient-eth1.pid eth1</div>
        <div><br>
        </div>
        <div>Captured on Client</div>
        <div>--------------------------------</div>
        <div><br>
        </div>
        <div>
          <div>[root@Marvell1 ~]# tethereal -i eth1</div>
          <div>Running as user "root" and group "root". This could be
            dangerous.</div>
          <div>Capturing on eth1</div>
          <div>  0.000000      0.0.0.0 -> 255.255.255.255 DHCP DHCP
            Discover - Transaction ID 0xf7d8ad21</div>
          <div>  1.016566      7.7.7.1 -> 7.7.7.0      DHCP DHCP
            Offer    - Transaction ID 0xf7d8ad21</div>
          <div>  1.016965      0.0.0.0 -> 255.255.255.255 DHCP DHCP
            Request  - Transaction ID 0xf7d8ad21</div>
          <div><b>  1.037018      7.7.7.1 -> 7.7.7.0      DHCP DHCP
              ACK      - Transaction ID 0xf7d8ad21 </b>           
            <<<<<<<<<<<<<
            Assigning Network Address</div>
          <div>
            <div>^C4 packets captured</div>
            <div>[root@Marvell1 ~]# ifconfig eth1</div>
            <div>eth1      Link encap:Ethernet  HWaddr 00:1B:21:52:AD:69</div>
            <div>          inet addr:7.7.7.0  Bcast:7.7.7.255
               Mask:255.255.255.0</div>
            <div>
                        inet6 addr: fe80::21b:21ff:fe52:ad69/64
              Scope:Link</div>
            <div>          UP BROADCAST RUNNING MULTICAST  MTU:1500
               Metric:1</div>
            <div>          RX packets:19583 errors:2 dropped:0
              overruns:0 frame:2</div>
            <div>          TX packets:66453 errors:11 dropped:0
              overruns:0 carrier:11</div>
            <div>          collisions:0 txqueuelen:1000</div>
            <div>          RX bytes:1854865 (1.7 MiB)  TX bytes:5472310
              (5.2 MiB)</div>
            <div><br>
            </div>
            <div><b>[root@Marvell1 ~]# ping 7.7.7.0   <<< This
                happens whenever dhclient is running...</b></div>
            <div><b>connect: Invalid argument</b></div>
          </div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Lease File</div>
        <div>-------------------</div>
        <div><br>
        </div>
        <div>
          <div>[root@Marvell1 etc]# cat dhclient-eth1.leases</div>
          <div>lease {</div>
          <div>  interface "eth1";</div>
          <div>  fixed-address 7.7.7.0;</div>
          <div>  option subnet-mask 255.255.255.0;</div>
          <div>  option dhcp-lease-time 86400;</div>
          <div>  option dhcp-message-type 5;</div>
          <div>  option dhcp-server-identifier 7.7.7.1;</div>
          <div>  renew 4 2012/04/26 21:10:20;</div>
          <div>  rebind 5 2012/04/27 08:32:20;</div>
          <div>  expire 5 2012/04/27 11:32:20;</div>
          <div>}</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Captured on Server</div>
        <div>--------------------------------</div>
        <div>
          <div>/mukund/home/zebos # /tcpdump -i ge1</div>
          <div>device ge1 entered promiscuous mode</div>
          <div>tcpdump: verbose output suppressed, use -v or -vv for
            full protocol decode</div>
          <div>listening on ge1, link-type EN10MB (Ethernet), capture
            size 65535 bytes</div>
          <div>16:57:39.482239 IP 0.0.0.0.68 > 255.255.255.255.67:
            BOOTP/DHCP, Request from 000</div>
          <div>16:57:40.498253 IP 7.7.7.1.67 > 7.7.7.0.68:
            BOOTP/DHCP, Reply, length 300</div>
          <div>16:57:40.499162 IP 0.0.0.0.68 > 255.255.255.255.67:
            BOOTP/DHCP, Request from 000</div>
          <div>16:57:40.518704 IP 7.7.7.1.67 > 7.7.7.0.68:
            BOOTP/DHCP, Reply, length 300</div>
        </div>
        -- <br>
        Regards,
        <div>Mukund</div>
        <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>
    1) Range = Subnet in your config.  Results will be indeterminate
    because of that.  It has also been suggested that using .0 or .255
    in the last octet of an IPv4 address can be problematic because of
    assumptions/bugs in IPv4 implementations in various OS/devices.<br>
    <br>
    2) Newer windows OS's block icmp packets by default.  Make sure the
    target OS is not firewalling ping packets.<br>
    <br>
    Lyle Giese<br>
    LCR Computer Services, Inc.<br>
    <br>
  </body>
</html>