could you please give my some insight what to look for with this problem:
I am trying to use dhcpcd. I have a 3Com 3C589D, LAN Card Ver. 2a in a
Thinkpad 380D and I am using pcmcia-cs-3.0.7 (my Kernel-version: 2.0.36) to
operate it. This works when I use a fixed IP, i.e.:
ifconfig eth0 MY_IP netmask 255.255.255.0 up
route add -net MY_NET netmask 255.255.255.0 eth0
route add default gw MY_GATEWAY eth0
Now I would like to use dhcpcd (version 0.70): I have tried to use either
RFC2131 or RFC1541 (with option -r), to specify my fully qualified hostname
with the -h option. It is always invane: "no DHCPOFFER messages". ifconfig
shows that eth0 is up, but the associated IP is 0.0.0.0. I can see (using
tcpdump from another machine) that running dhcpcd from the command line
leads to packets being sent from 0.0.0.0 to 255.255.255.255 (thats the way it
should be?). I can't see whether I get anything back (Is it possible to
filter for the mac-address somehow?). In /proc/net/dev I see few packets
being sent (commensurate with what tcpdump shows) and lots more packets
being received (commensurate with the interface being in promiscuous mode?).
netstat never shows any connections during these tries.
Doing an strace on dhcpcd, I see the following happen (I hope, I picked the
relevant part):
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
ioctl(3, SIOCGIFHWADDR, 0xbffffc48) = 0
ioctl(3, SIOCSIFADDR, 0xbffffc48) = 0
ioctl(3, SIOCSIFBRDADDR, 0xbffffc48) = 0
ioctl(3, SIOCSIFNETMASK, 0xbffffc48) = 0
ioctl(3, SIOCSIFFLAGS, 0xbffffc48) = 0
ioctl(3, SIOCADDRT, 0xbffffbf4) = 0
close(3) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
ioctl(3, SIOCGIFHWADDR, 0xbffffc18) = 0
ioctl(3, SIOCGIFADDR, 0xbffffc18) = 0
ioctl(3, SIOCGIFBRDADDR, 0xbffffc18) = 0
ioctl(3, SIOCGIFNETMASK, 0xbffffc18) = 0
ioctl(3, SIOCGIFFLAGS, 0xbffffc18) = 0
close(3) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
setsockopt(3, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0
bind(3, {sin_family=AF_INET, sin_port=htons(68),
sin_addr=inet_addr("0.0.0.0")}, 16) = 0
open("/var/run/dhcpcd-cache.eth0", O_RDONLY) = -1 ENOENT (No such file or
directory)
nanosleep(0xbffffc30, 0xbffffc30, 0x400a5b4c, 0x2, 0x804915c) = 0
time([915740904]) = 915740904
sendto(3, "\1\1\6\0\1n\257P\0\0\0\0\0\0\0\0"..., 548, 0,
{sin_family=AF_INET, sin_port=htons(67),
sin_addr=inet_addr("255.255.255.255")}, 16) = 548
After having attempted to use dhcpcd, it is impossible for me to get the
connection going manually with a fixed IP be doing ifconfig eth0 down and
then setting interface and routes as above. I have to reboot to get this
working again.
Unfortunately, I am running out of ideas, what to try out here and what
symptoms to look for in order to get a handle on what's going on. Any help
would be warmely appreciated.
TIA
Rolf
Rolf Mueller rolf.mueller@yale.edu
Intelligent Sensors Lab, EE Dept.
Yale University, New Haven, CT 06520-8284
Phone 203 432 4297 Fax 203 432 7769