Network Address getting assigned to client and ping not working (ver 4.2.2)

Mukund Deshpande sai.mukund.sagar at
Tue Apr 24 13:30:36 UTC 2012

Hi All,

I am facing two issues when using ISC DHCP (Using version 4.2.2).

When I keep a network address like in range it gets assigned on
Is this correct behavior?

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.
Can any body please provide me with pointers as to why ping doesn't work?

# /etc/dhcpd.conf - DHCP Server Setup File.

# DHCP Pool sms
subnet netmask {
 option subnet-mask;
 default-lease-time 86400;
 max-lease-time 86400;
ddns-update-style none;

Running dhclient as

 [root at Marvell1 ~]#/usr/sbin/dhclient -4 -cf /etc/dhclient-eth1.conf -lf
/etc/dhclient-eth1.leases -pf /var/run/ eth1

Captured on Client

[root at Marvell1 ~]# tethereal -i eth1
Running as user "root" and group "root". This could be dangerous.
Capturing on eth1
  0.000000 -> DHCP DHCP Discover - Transaction
ID 0xf7d8ad21
  1.016566 ->      DHCP DHCP Offer    - Transaction ID
  1.016965 -> DHCP DHCP Request  - Transaction
ID 0xf7d8ad21
*  1.037018 ->      DHCP DHCP ACK      - Transaction
ID 0xf7d8ad21 *            <<<<<<<<<<<<< Assigning Network Address
^C4 packets captured
[root at Marvell1 ~]# ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 00:1B:21:52:AD:69
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::21b:21ff:fe52:ad69/64 Scope:Link
          RX packets:19583 errors:2 dropped:0 overruns:0 frame:2
          TX packets:66453 errors:11 dropped:0 overruns:0 carrier:11
          collisions:0 txqueuelen:1000
          RX bytes:1854865 (1.7 MiB)  TX bytes:5472310 (5.2 MiB)

*[root at Marvell1 ~]# ping   <<< This happens whenever dhclient is
*connect: Invalid argument*

Lease File

[root at Marvell1 etc]# cat dhclient-eth1.leases
lease {
  interface "eth1";
  option subnet-mask;
  option dhcp-lease-time 86400;
  option dhcp-message-type 5;
  option dhcp-server-identifier;
  renew 4 2012/04/26 21:10:20;
  rebind 5 2012/04/27 08:32:20;
  expire 5 2012/04/27 11:32:20;

Captured on Server
/mukund/home/zebos # /tcpdump -i ge1
device ge1 entered promiscuous mode
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ge1, link-type EN10MB (Ethernet), capture size 65535 bytes
16:57:39.482239 IP > BOOTP/DHCP, Request
from 000
16:57:40.498253 IP > BOOTP/DHCP, Reply, length 300
16:57:40.499162 IP > BOOTP/DHCP, Request
from 000
16:57:40.518704 IP > BOOTP/DHCP, Reply, length 300
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the dhcp-users mailing list