[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help needed with ethernet configuration - dhclient seems to ignore DHCPOFFER



Thanks for the help, David,

I managed to find your thread in the archives. I  get some weird packets
indeed, not arp though. Here's tcpdump's output (tcpdump -s 2000 -nXe -i
eth0):

tcpdump: WARNING: eth0: no IPv4 address assigned
tcpdump: listening on eth0

16:20:58.396095 0:e0:29:9a:6b:ec ff:ff:ff:ff:ff:ff 0800 342: 0.0.0.0.68 >
255.255.255.255.67:  xid:0xab353177 vend-rfc1048 DHCP:DISCOVER
CID:00:e0:29:9a:6b:ec PR:SM+BR+TZ+DG+DN+NS+HN [tos 0x10]
0x0000  4510 0148 0000 0000 1011 a996 0000 0000 E..H............
0x0010  ffff ffff 0044 0043 0134 fdda 0101 0600 .....D.C.4......
0x0020  ab35 3177 0000 0000 0000 0000 0000 0000 .51w............
0x0030  0000 0000 0000 0000 00e0 299a 6bec 0000 ..........).k...
0x0040  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0050  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0060  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0070  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0080  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0090  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00a0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00b0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00c0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00d0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00e0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00f0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0100  0000 0000 0000 0000 6382 5363 3501 013d ........c.Sc5..=
0x0110  0600 e029 9a6b ec37 0701 1c02 030f 060c ...).k.7........
0x0120  ff00 0000 0000 0000 0000 0000 0000 0000 ................
0x0130  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0140  0000 0000 0000 0000                     ........
16:20:58.686564 0:0:77:94:e1:a 0:e0:29:9a:6b:ec 0800 363: 213.222.163.254.67
> 213.222.161.211.68:  hops:1 xid:0xab353177 Y:213.222.161.211
G:80.98.96.254 vend-rfc1048 DHCP:OFFER SID:213.46.246.101 LT:3600
SM:255.255.252.0 BR:255.255.255.255 DG:213.222.163.254 DN:"chello.hu"
NS:213.46.246.84,213.46.246.92,212.83.64.138
ACKT:1.4.0.5.0.254.2.6.2.64.64.16.84.33.3.4.255.255.255.0 (DF) [tos 0x1]
0x0000  4501 015d f08b 4000 4011 5774 d5de a3fe E..]..@.@.Wt....
0x0010  d5de a1d3 0043 0044 0149 8be3 0201 0601 .....C.D.I......
0x0020  ab35 3177 0000 0000 0000 0000 d5de a1d3 .51w............
0x0030  0000 0000 5062 60fe 00e0 299a 6bec 0000 ....Pb`...).k...
0x0040  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0050  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0060  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0070  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0080  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0090  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00a0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00b0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00c0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00d0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00e0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00f0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0100  0000 0000 0000 0000 6382 5363 3501 0236 ........c.Sc5..6
0x0110  04d5 2ef6 6533 0400 000e 1001 04ff fffc ....e3..........
0x0120  001c 04ff ffff ff03 04d5 dea3 fe0f 0963 ...............c
0x0130  6865 6c6c 6f2e 6875 060c d52e f654 d52e hello.hu.....T..
0x0140  f65c d453 408a 5214 0104 0005 00fe 0206 .\.S@.R.........
0x0150  0240 4010 5421 0304 ffff ff00 ff        .@@.T!.......
16:21:02.139112 0:e0:29:9a:6b:ec ff:ff:ff:ff:ff:ff 0800 342: 0.0.0.0.68 >
255.255.255.255.67:  xid:0xab353177 vend-rfc1048 DHCP:REQUEST
SID:213.46.246.101 RQ:213.222.161.211 CID:00:e0:29:9a:6b:ec
PR:SM+BR+TZ+DG+DN+NS+HN [tos 0x10]
0x0000  4510 0148 0000 0000 1011 a996 0000 0000 E..H............
0x0010  ffff ffff 0044 0043 0134 ac2f 0101 0600 .....D.C.4./....
0x0020  ab35 3177 0000 0000 0000 0000 0000 0000 .51w............
0x0030  0000 0000 0000 0000 00e0 299a 6bec 0000 ..........).k...
0x0040  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0050  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0060  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0070  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0080  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0090  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00a0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00b0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00c0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00d0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00e0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00f0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0100  0000 0000 0000 0000 6382 5363 3501 0336 ........c.Sc5..6
0x0110  04d5 2ef6 6532 04d5 dea1 d33d 0600 e029 ....e2.....=...)
0x0120  9a6b ec37 0701 1c02 030f 060c ff00 0000 .k.7............
0x0130  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0140  0000 0000 0000 0000                     ........
16:21:05.134102 0:e0:29:9a:6b:ec ff:ff:ff:ff:ff:ff 0800 342: 0.0.0.0.68 >
255.255.255.255.67:  xid:0xab353177 vend-rfc1048 DHCP:REQUEST
SID:213.46.246.101 RQ:213.222.161.211 CID:00:e0:29:9a:6b:ec
PR:SM+BR+TZ+DG+DN+NS+HN [tos 0x10]
0x0000  4510 0148 0000 0000 1011 a996 0000 0000 E..H............
0x0010  ffff ffff 0044 0043 0134 ac2f 0101 0600 .....D.C.4./....
0x0020  ab35 3177 0000 0000 0000 0000 0000 0000 .51w............
0x0030  0000 0000 0000 0000 00e0 299a 6bec 0000 ..........).k...
0x0040  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0050  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0060  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0070  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0080  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0090  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00a0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00b0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00c0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00d0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00e0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00f0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0100  0000 0000 0000 0000 6382 5363 3501 0336 ........c.Sc5..6
0x0110  04d5 2ef6 6532 04d5 dea1 d33d 0600 e029 ....e2.....=...)
0x0120  9a6b ec37 0701 1c02 030f 060c ff00 0000 .k.7............
0x0130  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0140  0000 0000 0000 0000                     ........
16:21:11.135739 0:e0:29:9a:6b:ec ff:ff:ff:ff:ff:ff 0800 342: 0.0.0.0.68 >
255.255.255.255.67:  xid:0xab353177 vend-rfc1048 DHCP:REQUEST
SID:213.46.246.101 RQ:213.222.161.211 CID:00:e0:29:9a:6b:ec
PR:SM+BR+TZ+DG+DN+NS+HN [tos 0x10]
0x0000  4510 0148 0000 0000 1011 a996 0000 0000 E..H............
0x0010  ffff ffff 0044 0043 0134 ac2f 0101 0600 .....D.C.4./....
0x0020  ab35 3177 0000 0000 0000 0000 0000 0000 .51w............
0x0030  0000 0000 0000 0000 00e0 299a 6bec 0000 ..........).k...
0x0040  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0050  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0060  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0070  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0080  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0090  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00a0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00b0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00c0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00d0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00e0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00f0  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0100  0000 0000 0000 0000 6382 5363 3501 0336 ........c.Sc5..6
0x0110  04d5 2ef6 6532 04d5 dea1 d33d 0600 e029 ....e2.....=...)
0x0120  9a6b ec37 0701 1c02 030f 060c ff00 0000 .k.7............
0x0130  0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0140  0000 0000 0000 0000                     ........
16:21:22.708860 0:0:77:94:e1:a 0:e0:29:9a:6b:ec 0800 60: 64.12.28.182.5190 >
80.98.96.235.3730: . ack 4017040641 win 16384 (DF)
0x0000  4500 0028 fdd4 4000 6506 09ec 400c 1cb6 E..(..@.e...@...
0x0010  5062 60eb 1446 0e92 1f29 5294 ef6f 2d01 Pb`..F...)R..o-.
0x0020  5010 4000 b0be 0000 0000 0000 0000      P.@...........
16:21:23.136204 0:e0:29:9a:6b:ec ff:ff:ff:ff:ff:ff 0800 342: 0.0.0.0.68 >
255.255.255.255.67:  xid:0x61dad4a vend-rfc1048 DHCP:DISCOVER
CID:00:e0:29:9a:6b:ec PR:SM+BR+TZ+DG+DN+NS+HN [tos 0x10]
and so on

161 packets received by filter
0 packets dropped by kernel

Eszter Komaromi


----- Original Message ----- 
From: "David Fokkema" <dfokkema@ileos.nl>
To: <debian-user@lists.debian.org>
Sent: Saturday, August 16, 2003 11:22 PM
Subject: Re: Help needed with ethernet configuration - dhclient seems to
ignore DHCPOFFER


> On Sat, Aug 16, 2003 at 09:03:36PM +0200, Komáromi Eszter wrote:
> > I use SMC EtherEZ (8416) card on i486, Woody, kernel 2.4.18. ISA, pnp is
> > disabled and the driver (smc-ultra) loads fine. The problem is, while I
got
> > several DHCPOFFERs, I never get an IP address.  Here're a few lines from
my
> > daemon.log while dhclient  is running:
> >
> > Aug 16 12:40:21 teknoc dhclient-2.2.x: DHCPREQUEST on eth0 to
> <snip>
> > Aug 16 12:41:37 teknoc dhclient-2.2.x: DHCPOFFER from 213.222.163.254
> > Aug 16 12:41:40 teknoc dhclient-2.2.x: DHCPREQUEST on eth0 to
> > 255.255.255.255 port 67
> > Aug 16 12:41:48 teknoc dhclient-2.2.x: DHCPREQUEST on eth0 to
> > 255.255.255.255 port 67
> > Aug 16 12:42:00 teknoc dhclient-2.2.x: DHCPDISCOVER on eth0 to
> > 255.255.255.255 port 67 interval 5
> <snip>
> > and this goes on until i shut down dhclient.
>
> I think only this part is interesting. What I see here is an offer, and
> then a request. Nothing happens, until dhclient decides to do another
> discover. That discover yields another offer, etc. What I'd like to see
> is output from tcpdump. I would not be surprised a bit if your card does
> a request and recieves an ARP packet from the server checking your IP
> address. Since your interface hasn't been configured yet, that packet is
> dropped and the server won't send the acknowledge to you. This is what
> happened to me, some months ago.
>
> HTH,
> David
>
> -- 
> Happy Birthday, Debian!
> August 16, 1993
>
> http://www.linuxplanet.com/linuxplanet/print/4959/
>
>
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
>
>
>
>
>




Reply to: