Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Kernel (http://www.linux-archive.org/debian-kernel/)
-   -   Bug#584583: initramfs-tools: configure_networking function: repeatedly makes DHCP requests (http://www.linux-archive.org/debian-kernel/381669-bug-584583-initramfs-tools-configure_networking-function-repeatedly-makes-dhcp-requests.html)

Vagrant Cascadian 06-04-2010 08:18 PM

Bug#584583: initramfs-tools: configure_networking function: repeatedly makes DHCP requests
 
Package: initramfs-tools
Version: 0.95.1
Severity: normal

i've been testing the newest initramfs-tools network booting support, though it
seems to make 10 DHCP requests in rapid sucession. fortunately, the last DHCP
request does work. switching back to hard-coded DEVICE=eth0 in
/etc/initramfs-tools/initramfs.conf doesn't trigger this issue, oddly enough.

it think something in the following code is the issue:

for ROUNDTTT in 2 3 4 6 9 16 25 36 64 100; do

# The NIC is to be configured if this file does not exist.
# Ip-Config tries to create this file and when it succeds
# creating the file, ipconfig is not run again.
if [ -e /tmp/net-"${DEVICE}".conf ]; then
break;
fi

case ${IP} in
none|off)
# Do nothing
;;
""|on|any)
# Bring up device
ipconfig -t ${ROUNDTTT} "${DEVICE}"
;;
dhcp|bootp|rarp|both)
ipconfig -t ${ROUNDTTT} -c ${IP} -d "${DEVICE}"
;;
*)
ipconfig -t ${ROUNDTTT} -d $IP

it loops through all of the ROUNDTTT's in 1 second, which doesn't seem like the
intended behavior.

so either "ipconfig -t" is broken, or initramfs-tools is expecting the wrong
behavior from ipconfig.

an alternate possibility is that i've been testing with qemu and qemu-kvm,
which may have strange timing issues. i will attempt to test with real hardware
and follow up with that...

live well,
vagrant



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100604201804.GN12505@claws.fglan">http://lists.debian.org/20100604201804.GN12505@claws.fglan

Michael Prokop 06-08-2010 01:45 PM

Bug#584583: initramfs-tools: configure_networking function: repeatedly makes DHCP requests
 
tags 584583 + moreinfo
thanks

* Vagrant Cascadian <vagrant+debianbugs@freegeek.org> [Fre Jun 04, 2010 at 01:18:04 -0700]:

> i've been testing the newest initramfs-tools network booting support, though it
> seems to make 10 DHCP requests in rapid sucession. fortunately, the last DHCP
> request does work. switching back to hard-coded DEVICE=eth0 in
> /etc/initramfs-tools/initramfs.conf doesn't trigger this issue, oddly enough.

> it think something in the following code is the issue:

> for ROUNDTTT in 2 3 4 6 9 16 25 36 64 100; do
[...]

> it loops through all of the ROUNDTTT's in 1 second, which doesn't seem like the
> intended behavior.

> so either "ipconfig -t" is broken, or initramfs-tools is expecting the wrong
> behavior from ipconfig.

> an alternate possibility is that i've been testing with qemu and qemu-kvm,
> which may have strange timing issues. i will attempt to test with real hardware
> and follow up with that...

Can you please provide output of:

dpkg --list klibc-utils module-init-tools udev busybox*

?

Which qemu/kvm cmdline are you using? Is the e1000 module involved?

regards,
-mika-

Vagrant Cascadian 06-08-2010 10:40 PM

Bug#584583: initramfs-tools: configure_networking function: repeatedly makes DHCP requests
 
On Tue, Jun 08, 2010 at 03:45:09PM +0200, Michael Prokop wrote:
> * Vagrant Cascadian <vagrant+debianbugs@freegeek.org> [Fre Jun 04, 2010 at 01:18:04 -0700]:

> > an alternate possibility is that i've been testing with qemu and qemu-kvm,
> > which may have strange timing issues. i will attempt to test with real hardware
> > and follow up with that...
>
> Can you please provide output of:
>
> dpkg --list klibc-utils module-init-tools udev busybox*

ltsp-chroot dpkg --list klibc-utils module-init-tools udev 'busybox*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii busybox 1:1.14.2-2 Tiny utilities for small and embedded system
un busybox-initra <none> (no description available)
un busybox-static <none> (no description available)
ii klibc-utils 1.5.18-1 small utilities built with klibc for early b
ii module-init-to 3.12~pre2-3 tools for managing Linux kernel modules
ii udev 154-1 /dev/ and hotplug management daemon

> Which qemu/kvm cmdline are you using? Is the e1000 module involved?

qemu -enable-kvm -name ltsp-client -net nic,vlan=1,model=pcnet -net tap,vlan=1,ifname=ltsp1,script=no -boot n -soundhw es1370 -usb

same behavior with model=virtio, model=ne2k_pci. e1000 doesn't even boot far enough to test...

live well,
vagrant



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100608224012.GD4049@claws.fglan">http://lists.debian.org/20100608224012.GD4049@claws.fglan

Michael Prokop 06-09-2010 09:48 AM

Bug#584583: initramfs-tools: configure_networking function: repeatedly makes DHCP requests
 
* Vagrant Cascadian <vagrant@freegeek.org> [Tue Jun 08, 2010 at 03:40:12PM -0700]:
> On Tue, Jun 08, 2010 at 03:45:09PM +0200, Michael Prokop wrote:
> > * Vagrant Cascadian <vagrant+debianbugs@freegeek.org> [Fre Jun 04, 2010 at 01:18:04 -0700]:

> > Can you please provide output of:

> > dpkg --list klibc-utils module-init-tools udev busybox*

> ltsp-chroot dpkg --list klibc-utils module-init-tools udev 'busybox*'
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> ||/ Name Version Description
> +++-==============-==============-============================================
> ii busybox 1:1.14.2-2 Tiny utilities for small and embedded system
> un busybox-initra <none> (no description available)
> un busybox-static <none> (no description available)
> ii klibc-utils 1.5.18-1 small utilities built with klibc for early b
> ii module-init-to 3.12~pre2-3 tools for managing Linux kernel modules

That's fine.

> ii udev 154-1 /dev/ and hotplug management daemon

Upgrading to udev 157-1 doesn't change anything, right?

> > Which qemu/kvm cmdline are you using? Is the e1000 module involved?

> qemu -enable-kvm -name ltsp-client -net nic,vlan=1,model=pcnet -net tap,vlan=1,ifname=ltsp1,script=no -boot n -soundhw es1370 -usb
> same behavior with model=virtio, model=ne2k_pci.

Ok thanks, I'll try to reproduce on my own (ASAP, busy days...).

> e1000 doesn't even boot far enough to test...

Ok.

regards,
-mika-

maximilian attems 07-06-2010 12:14 PM

Bug#584583: initramfs-tools: configure_networking function: repeatedly makes DHCP requests
 
On Fri, 04 Jun 2010, Vagrant Cascadian wrote:

> Package: initramfs-tools
> Version: 0.95.1
> Severity: normal
>
> i've been testing the newest initramfs-tools network booting support, though it
> seems to make 10 DHCP requests in rapid sucession. fortunately, the last DHCP
> request does work. switching back to hard-coded DEVICE=eth0 in
> /etc/initramfs-tools/initramfs.conf doesn't trigger this issue, oddly enough.
>

could you compile klibc ipconfig with debug on,
although it is possible to pass it on the command line it seems
dash breaks the klibc build with global debug on, thus this is easiest:

# you may skip first step if you have already current klibc sources
cd ~/src && git clone git://git.kernel.org/pub/scm/libs/klibc/klibc.git && cd klibc
~/src/klibc$ echo "EXTRA_KLIBCCFLAGS := -DDEBUG=1" >> usr/kinit/ipconfig/Kbuild
~/src/klibc$ make KLIBCKERNELSRC=`pwd`/../linux-2.6

third step assumes built ~/src/linux-2.6 aka make defconfig, make there.

now you need to put that debug ipconfig in the initramfs of where
you are seeing that loop. it be interested in the log that ipconfig
outputs.

thanks.



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100706121432.GB4143@stro.at">http://lists.debian.org/20100706121432.GB4143@stro.at

Taisuke Yamada 07-07-2010 12:41 PM

Bug#584583: initramfs-tools: configure_networking function: repeatedly makes DHCP requests
 
I'm seeing similar (probably the same) issue with klibc ipconfig
failing to obtain DHCP address. Due to this, I cannot boot NFS-root
system using newly-generated initrd image.

I have recompiled ipconfig with -DDEBUG=1, and it seems ipconfig
is failing to use DHCP OFFER response from the server. I tried
both source from 'git' and 'apt-get source (of klibc_1.5.18-1)'.

I have attached debug output of ipconfig and tshark dump taken
at DHCP server. Hope this helps to resove the problem.

Best Regards,
Taisuke Yamada

(initramfs) ipconfig.git -t 3 -c dhcp -d eth0
IP-Config: parse_device: "eth0"
IP-Config: eth0 hardware address 00:16:3e:16:ac:c5 mtu 1500 DHCP
eth0: state = 2
timeout
-> dhcp discover xid 5e901c7e secs 0 vendor_class_identifier "Linux ipconfig"
udp src 68 dst 67
ip src 0.0.0.0 dst 255.255.255.255
bytes 299
<- bytes 342
ip src 10.253.0.9 dst 10.253.0.235
udp src 67 dst 68
dhcp xid 5e901c7e
dhcp offer
-> dhcp request xid 5e901c7e secs 0 vendor_class_identifier "Linux ipconfig"
udp src 68 dst 67
ip src 0.0.0.0 dst 255.255.255.255
bytes 311
eth0: state = 3
<- bytes 342
ip src 10.253.0.9 dst 10.253.0.235
udp src 1 dst 68 freed
eth0: state = 5

Delta: 2 ms

Delta: 0 ms
eth0: state = 5

IP-Config: no response after 3 secs - giving up
(initramfs)
# tshark -V port 67 or port 68
Running as user "root" and group "root". This could be dangerous.
Capturing on eth0
Frame 1 (313 bytes on wire, 313 bytes captured)
Arrival Time: Jul 7, 2010 12:37:31.534192000
[Time delta from previous captured frame: 0.000000000 seconds]
[Time delta from previous displayed frame: 0.000000000 seconds]
[Time since reference or first frame: 0.000000000 seconds]
Frame Number: 1
Frame Length: 313 bytes
Capture Length: 313 bytes
[Frame is marked: False]
[Protocols in frame: eth:ip:udp:bootp]
Ethernet II, Src: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Destination: Broadcast (ff:ff:ff:ff:ff:ff)
Address: Broadcast (ff:ff:ff:ff:ff:ff)
.... ...1 .... .... .... .... = IG bit: Group address (multicast/broadcast)
.... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
Source: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5)
Address: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Type: IP (0x0800)
Internet Protocol, Src: 0.0.0.0 (0.0.0.0), Dst: 255.255.255.255 (255.255.255.255)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 299
Identification: 0x0000 (0)
Flags: 0x02 (Don't Fragment)
0.. = Reserved bit: Not Set
.1. = Don't fragment: Set
..0 = More fragments: Not Set
Fragment offset: 0
Time to live: 64
Protocol: UDP (0x11)
Header checksum: 0x39c3 [correct]
[Good: True]
[Bad : False]
Source: 0.0.0.0 (0.0.0.0)
Destination: 255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67)
Source port: bootpc (68)
Destination port: bootps (67)
Length: 279
Checksum: 0x0000 (none)
Good Checksum: False
Bad Checksum: False
Bootstrap Protocol
Message type: Boot Request (1)
Hardware type: Ethernet
Hardware address length: 6
Hops: 0
Transaction ID: 0x7e1c905e
Seconds elapsed: 0
Bootp flags: 0x0000 (Unicast)
0... .... .... .... = Broadcast flag: Unicast
.000 0000 0000 0000 = Reserved flags: 0x0000
Client IP address: 0.0.0.0 (0.0.0.0)
Your (client) IP address: 0.0.0.0 (0.0.0.0)
Next server IP address: 0.0.0.0 (0.0.0.0)
Relay agent IP address: 0.0.0.0 (0.0.0.0)
Client MAC address: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5)
Client hardware address padding: 00000000000000000000
Server host name not given
Boot file name not given
Magic cookie: (OK)
Option: (t=53,l=1) DHCP Message Type = DHCP Discover
Option: (53) DHCP Message Type
Length: 1
Value: 01
Option: (t=55,l=9) Parameter Request List
Option: (55) Parameter Request List
Length: 9
Value: 0103060C0F111A1C28
1 = Subnet Mask
3 = Router
6 = Domain Name Server
12 = Host Name
15 = Domain Name
17 = Root Path
26 = Interface MTU
28 = Broadcast Address
40 = Network Information Service Domain
Option: (t=60,l=14) Vendor class identifier = "Linux ipconfig"
Option: (60) Vendor class identifier
Length: 14
Value: 4C696E7578206970636F6E666967
End Option

Frame 2 (313 bytes on wire, 313 bytes captured)
Arrival Time: Jul 7, 2010 12:37:31.534214000
[Time delta from previous captured frame: 0.000022000 seconds]
[Time delta from previous displayed frame: 0.000022000 seconds]
[Time since reference or first frame: 0.000022000 seconds]
Frame Number: 2
Frame Length: 313 bytes
Capture Length: 313 bytes
[Frame is marked: False]
[Protocols in frame: eth:ip:udp:bootp]
Ethernet II, Src: Giga-Byt_0a:fb:e8 (00:1f:d0:0a:fb:e8), Dst: HewlettP_11:45:e0 (00:23:7d:11:45:e0)
Destination: HewlettP_11:45:e0 (00:23:7d:11:45:e0)
Address: HewlettP_11:45:e0 (00:23:7d:11:45:e0)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: Giga-Byt_0a:fb:e8 (00:1f:d0:0a:fb:e8)
Address: Giga-Byt_0a:fb:e8 (00:1f:d0:0a:fb:e8)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Type: IP (0x0800)
Internet Protocol, Src: 10.253.0.9 (10.253.0.9), Dst: 10.253.0.3 (10.253.0.3)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 299
Identification: 0xe3f9 (58361)
Flags: 0x00
0.. = Reserved bit: Not Set
.0. = Don't fragment: Not Set
..0 = More fragments: Not Set
Fragment offset: 0
Time to live: 64
Protocol: UDP (0x11)
Header checksum: 0x7fc3 [correct]
[Good: True]
[Bad : False]
Source: 10.253.0.9 (10.253.0.9)
Destination: 10.253.0.3 (10.253.0.3)
User Datagram Protocol, Src Port: bootps (67), Dst Port: bootps (67)
Source port: bootps (67)
Destination port: bootps (67)
Length: 279
Checksum: 0x968d [validation disabled]
[Good Checksum: False]
[Bad Checksum: False]
Bootstrap Protocol
Message type: Boot Request (1)
Hardware type: Ethernet
Hardware address length: 6
Hops: 1
Transaction ID: 0x7e1c905e
Seconds elapsed: 0
Bootp flags: 0x0000 (Unicast)
0... .... .... .... = Broadcast flag: Unicast
.000 0000 0000 0000 = Reserved flags: 0x0000
Client IP address: 0.0.0.0 (0.0.0.0)
Your (client) IP address: 0.0.0.0 (0.0.0.0)
Next server IP address: 0.0.0.0 (0.0.0.0)
Relay agent IP address: 10.253.0.9 (10.253.0.9)
Client MAC address: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5)
Client hardware address padding: 00000000000000000000
Server host name not given
Boot file name not given
Magic cookie: (OK)
Option: (t=53,l=1) DHCP Message Type = DHCP Discover
Option: (53) DHCP Message Type
Length: 1
Value: 01
Option: (t=55,l=9) Parameter Request List
Option: (55) Parameter Request List
Length: 9
Value: 0103060C0F111A1C28
1 = Subnet Mask
3 = Router
6 = Domain Name Server
12 = Host Name
15 = Domain Name
17 = Root Path
26 = Interface MTU
28 = Broadcast Address
40 = Network Information Service Domain
Option: (t=60,l=14) Vendor class identifier = "Linux ipconfig"
Option: (60) Vendor class identifier
Length: 14
Value: 4C696E7578206970636F6E666967
End Option

Frame 3 (356 bytes on wire, 356 bytes captured)
Arrival Time: Jul 7, 2010 12:37:31.534464000
[Time delta from previous captured frame: 0.000250000 seconds]
[Time delta from previous displayed frame: 0.000250000 seconds]
[Time since reference or first frame: 0.000272000 seconds]
Frame Number: 3
Frame Length: 356 bytes
Capture Length: 356 bytes
[Frame is marked: False]
[Protocols in frame: eth:ip:udp:bootp]
Ethernet II, Src: HewlettP_11:45:e0 (00:23:7d:11:45:e0), Dst: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5)
Destination: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5)
Address: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HewlettP_11:45:e0 (00:23:7d:11:45:e0)
Address: HewlettP_11:45:e0 (00:23:7d:11:45:e0)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Type: IP (0x0800)
Internet Protocol, Src: 10.253.0.3 (10.253.0.3), Dst: 10.253.0.235 (10.253.0.235)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 342
Identification: 0x5a1f (23071)
Flags: 0x00
0.. = Reserved bit: Not Set
.0. = Don't fragment: Not Set
..0 = More fragments: Not Set
Fragment offset: 0
Time to live: 64
Protocol: UDP (0x11)
Header checksum: 0x0891 [correct]
[Good: True]
[Bad : False]
Source: 10.253.0.3 (10.253.0.3)
Destination: 10.253.0.235 (10.253.0.235)
User Datagram Protocol, Src Port: bootps (67), Dst Port: bootpc (68)
Source port: bootps (67)
Destination port: bootpc (68)
Length: 322
Checksum: 0x183b [validation disabled]
[Good Checksum: False]
[Bad Checksum: False]
Bootstrap Protocol
Message type: Boot Reply (2)
Hardware type: Ethernet
Hardware address length: 6
Hops: 0
Transaction ID: 0x7e1c905e
Seconds elapsed: 0
Bootp flags: 0x0000 (Unicast)
0... .... .... .... = Broadcast flag: Unicast
.000 0000 0000 0000 = Reserved flags: 0x0000
Client IP address: 0.0.0.0 (0.0.0.0)
Your (client) IP address: 10.253.0.235 (10.253.0.235)
Next server IP address: 10.253.0.9 (10.253.0.9)
Relay agent IP address: 0.0.0.0 (0.0.0.0)
Client MAC address: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5)
Client hardware address padding: 00000000000000000000
Server host name: h
Boot file name: /pxelinux.0
Magic cookie: (OK)
Option: (t=53,l=1) DHCP Message Type = DHCP Offer
Option: (53) DHCP Message Type
Length: 1
Value: 02
Option: (t=54,l=4) DHCP Server Identifier = 10.253.0.3
Option: (54) DHCP Server Identifier
Length: 4
Value: 0AFD0003
Option: (t=51,l=4) IP Address Lease Time = 1 hour
Option: (51) IP Address Lease Time
Length: 4
Value: 00000E10
Option: (t=58,l=4) Renewal Time Value = 30 minutes
Option: (58) Renewal Time Value
Length: 4
Value: 00000708
Option: (t=59,l=4) Rebinding Time Value = 52 minutes, 30 seconds
Option: (59) Rebinding Time Value
Length: 4
Value: 00000C4E
Option: (t=1,l=4) Subnet Mask = 255.255.255.0
Option: (1) Subnet Mask
Length: 4
Value: FFFFFF00
Option: (t=28,l=4) Broadcast Address = 10.253.0.255
Option: (28) Broadcast Address
Length: 4
Value: 0AFD00FF
Option: (t=15,l=14) Domain Name = "h.rakugaki.org"
Option: (15) Domain Name
Length: 14
Value: 682E72616B7567616B692E6F7267
Option: (t=6,l=4) Domain Name Server = 10.253.0.3
Option: (6) Domain Name Server
Length: 4
Value: 0AFD0003
Option: (t=3,l=4) Router = 10.253.0.1
Option: (3) Router
Length: 4
Value: 0AFD0001
Option: (t=150,l=4) TFTP server address
Option: (150) TFTP server address
Length: 4
Value: 0AFD0009
End Option

Frame 4 (356 bytes on wire, 356 bytes captured)
Arrival Time: Jul 7, 2010 12:37:31.534589000
[Time delta from previous captured frame: 0.000125000 seconds]
[Time delta from previous displayed frame: 0.000125000 seconds]
[Time since reference or first frame: 0.000397000 seconds]
Frame Number: 4
Frame Length: 356 bytes
Capture Length: 356 bytes
[Frame is marked: False]
[Protocols in frame: eth:ip:udp:bootp]
Ethernet II, Src: HewlettP_11:45:e0 (00:23:7d:11:45:e0), Dst: Giga-Byt_0a:fb:e8 (00:1f:d0:0a:fb:e8)
Destination: Giga-Byt_0a:fb:e8 (00:1f:d0:0a:fb:e8)
Address: Giga-Byt_0a:fb:e8 (00:1f:d0:0a:fb:e8)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HewlettP_11:45:e0 (00:23:7d:11:45:e0)
Address: HewlettP_11:45:e0 (00:23:7d:11:45:e0)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Type: IP (0x0800)
Internet Protocol, Src: 10.253.0.3 (10.253.0.3), Dst: 10.253.0.9 (10.253.0.9)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 342
Identification: 0x15fa (5626)
Flags: 0x00
0.. = Reserved bit: Not Set
.0. = Don't fragment: Not Set
..0 = More fragments: Not Set
Fragment offset: 0
Time to live: 64
Protocol: UDP (0x11)
Header checksum: 0x4d98 [correct]
[Good: True]
[Bad : False]
Source: 10.253.0.3 (10.253.0.3)
Destination: 10.253.0.9 (10.253.0.9)
User Datagram Protocol, Src Port: bootps (67), Dst Port: bootps (67)
Source port: bootps (67)
Destination port: bootps (67)
Length: 322
Checksum: 0x1759 [validation disabled]
[Good Checksum: False]
[Bad Checksum: False]
Bootstrap Protocol
Message type: Boot Reply (2)
Hardware type: Ethernet
Hardware address length: 6
Hops: 1
Transaction ID: 0x7e1c905e
Seconds elapsed: 0
Bootp flags: 0x0000 (Unicast)
0... .... .... .... = Broadcast flag: Unicast
.000 0000 0000 0000 = Reserved flags: 0x0000
Client IP address: 0.0.0.0 (0.0.0.0)
Your (client) IP address: 10.253.0.235 (10.253.0.235)
Next server IP address: 10.253.0.9 (10.253.0.9)
Relay agent IP address: 10.253.0.9 (10.253.0.9)
Client MAC address: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5)
Client hardware address padding: 00000000000000000000
Server host name: h
Boot file name: /pxelinux.0
Magic cookie: (OK)
Option: (t=53,l=1) DHCP Message Type = DHCP Offer
Option: (53) DHCP Message Type
Length: 1
Value: 02
Option: (t=54,l=4) DHCP Server Identifier = 10.253.0.3
Option: (54) DHCP Server Identifier
Length: 4
Value: 0AFD0003
Option: (t=51,l=4) IP Address Lease Time = 1 hour
Option: (51) IP Address Lease Time
Length: 4
Value: 00000E10
Option: (t=58,l=4) Renewal Time Value = 30 minutes
Option: (58) Renewal Time Value
Length: 4
Value: 00000708
Option: (t=59,l=4) Rebinding Time Value = 52 minutes, 30 seconds
Option: (59) Rebinding Time Value
Length: 4
Value: 00000C4E
Option: (t=1,l=4) Subnet Mask = 255.255.255.0
Option: (1) Subnet Mask
Length: 4
Value: FFFFFF00
Option: (t=28,l=4) Broadcast Address = 10.253.0.255
Option: (28) Broadcast Address
Length: 4
Value: 0AFD00FF
Option: (t=15,l=14) Domain Name = "h.rakugaki.org"
Option: (15) Domain Name
Length: 14
Value: 682E72616B7567616B692E6F7267
Option: (t=6,l=4) Domain Name Server = 10.253.0.3
Option: (6) Domain Name Server
Length: 4
Value: 0AFD0003
Option: (t=3,l=4) Router = 10.253.0.1
Option: (3) Router
Length: 4
Value: 0AFD0001
Option: (t=150,l=4) TFTP server address
Option: (150) TFTP server address
Length: 4
Value: 0AFD0009
End Option

Frame 5 (325 bytes on wire, 325 bytes captured)
Arrival Time: Jul 7, 2010 12:37:31.539627000
[Time delta from previous captured frame: 0.005038000 seconds]
[Time delta from previous displayed frame: 0.005038000 seconds]
[Time since reference or first frame: 0.005435000 seconds]
Frame Number: 5
Frame Length: 325 bytes
Capture Length: 325 bytes
[Frame is marked: False]
[Protocols in frame: eth:ip:udp:bootp]
Ethernet II, Src: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
Destination: Broadcast (ff:ff:ff:ff:ff:ff)
Address: Broadcast (ff:ff:ff:ff:ff:ff)
.... ...1 .... .... .... .... = IG bit: Group address (multicast/broadcast)
.... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
Source: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5)
Address: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Type: IP (0x0800)
Internet Protocol, Src: 0.0.0.0 (0.0.0.0), Dst: 255.255.255.255 (255.255.255.255)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 311
Identification: 0x0000 (0)
Flags: 0x02 (Don't Fragment)
0.. = Reserved bit: Not Set
.1. = Don't fragment: Set
..0 = More fragments: Not Set
Fragment offset: 0
Time to live: 64
Protocol: UDP (0x11)
Header checksum: 0x39b7 [correct]
[Good: True]
[Bad : False]
Source: 0.0.0.0 (0.0.0.0)
Destination: 255.255.255.255 (255.255.255.255)
User Datagram Protocol, Src Port: bootpc (68), Dst Port: bootps (67)
Source port: bootpc (68)
Destination port: bootps (67)
Length: 291
Checksum: 0x0000 (none)
Good Checksum: False
Bad Checksum: False
Bootstrap Protocol
Message type: Boot Request (1)
Hardware type: Ethernet
Hardware address length: 6
Hops: 0
Transaction ID: 0x7e1c905e
Seconds elapsed: 0
Bootp flags: 0x0000 (Unicast)
0... .... .... .... = Broadcast flag: Unicast
.000 0000 0000 0000 = Reserved flags: 0x0000
Client IP address: 0.0.0.0 (0.0.0.0)
Your (client) IP address: 10.253.0.235 (10.253.0.235)
Next server IP address: 0.0.0.0 (0.0.0.0)
Relay agent IP address: 0.0.0.0 (0.0.0.0)
Client MAC address: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5)
Client hardware address padding: 00000000000000000000
Server host name not given
Boot file name not given
Magic cookie: (OK)
Option: (t=53,l=1) DHCP Message Type = DHCP Request
Option: (53) DHCP Message Type
Length: 1
Value: 03
Option: (t=54,l=4) DHCP Server Identifier = 10.253.0.3
Option: (54) DHCP Server Identifier
Length: 4
Value: 0AFD0003
Option: (t=50,l=4) Requested IP Address = 10.253.0.235
Option: (50) Requested IP Address
Length: 4
Value: 0AFD00EB
Option: (t=55,l=9) Parameter Request List
Option: (55) Parameter Request List
Length: 9
Value: 0103060C0F111A1C28
1 = Subnet Mask
3 = Router
6 = Domain Name Server
12 = Host Name
15 = Domain Name
17 = Root Path
26 = Interface MTU
28 = Broadcast Address
40 = Network Information Service Domain
Option: (t=60,l=14) Vendor class identifier = "Linux ipconfig"
Option: (60) Vendor class identifier
Length: 14
Value: 4C696E7578206970636F6E666967
End Option

Frame 6 (325 bytes on wire, 325 bytes captured)
Arrival Time: Jul 7, 2010 12:37:31.539641000
[Time delta from previous captured frame: 0.000014000 seconds]
[Time delta from previous displayed frame: 0.000014000 seconds]
[Time since reference or first frame: 0.005449000 seconds]
Frame Number: 6
Frame Length: 325 bytes
Capture Length: 325 bytes
[Frame is marked: False]
[Protocols in frame: eth:ip:udp:bootp]
Ethernet II, Src: Giga-Byt_0a:fb:e8 (00:1f:d0:0a:fb:e8), Dst: HewlettP_11:45:e0 (00:23:7d:11:45:e0)
Destination: HewlettP_11:45:e0 (00:23:7d:11:45:e0)
Address: HewlettP_11:45:e0 (00:23:7d:11:45:e0)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: Giga-Byt_0a:fb:e8 (00:1f:d0:0a:fb:e8)
Address: Giga-Byt_0a:fb:e8 (00:1f:d0:0a:fb:e8)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Type: IP (0x0800)
Internet Protocol, Src: 10.253.0.9 (10.253.0.9), Dst: 10.253.0.3 (10.253.0.3)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 311
Identification: 0xe3fa (58362)
Flags: 0x00
0.. = Reserved bit: Not Set
.0. = Don't fragment: Not Set
..0 = More fragments: Not Set
Fragment offset: 0
Time to live: 64
Protocol: UDP (0x11)
Header checksum: 0x7fb6 [correct]
[Good: True]
[Bad : False]
Source: 10.253.0.9 (10.253.0.9)
Destination: 10.253.0.3 (10.253.0.3)
User Datagram Protocol, Src Port: bootps (67), Dst Port: bootps (67)
Source port: bootps (67)
Destination port: bootps (67)
Length: 291
Checksum: 0x980e [validation disabled]
[Good Checksum: False]
[Bad Checksum: False]
Bootstrap Protocol
Message type: Boot Request (1)
Hardware type: Ethernet
Hardware address length: 6
Hops: 1
Transaction ID: 0x7e1c905e
Seconds elapsed: 0
Bootp flags: 0x0000 (Unicast)
0... .... .... .... = Broadcast flag: Unicast
.000 0000 0000 0000 = Reserved flags: 0x0000
Client IP address: 0.0.0.0 (0.0.0.0)
Your (client) IP address: 10.253.0.235 (10.253.0.235)
Next server IP address: 0.0.0.0 (0.0.0.0)
Relay agent IP address: 10.253.0.9 (10.253.0.9)
Client MAC address: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5)
Client hardware address padding: 00000000000000000000
Server host name not given
Boot file name not given
Magic cookie: (OK)
Option: (t=53,l=1) DHCP Message Type = DHCP Request
Option: (53) DHCP Message Type
Length: 1
Value: 03
Option: (t=54,l=4) DHCP Server Identifier = 10.253.0.3
Option: (54) DHCP Server Identifier
Length: 4
Value: 0AFD0003
Option: (t=50,l=4) Requested IP Address = 10.253.0.235
Option: (50) Requested IP Address
Length: 4
Value: 0AFD00EB
Option: (t=55,l=9) Parameter Request List
Option: (55) Parameter Request List
Length: 9
Value: 0103060C0F111A1C28
1 = Subnet Mask
3 = Router
6 = Domain Name Server
12 = Host Name
15 = Domain Name
17 = Root Path
26 = Interface MTU
28 = Broadcast Address
40 = Network Information Service Domain
Option: (t=60,l=14) Vendor class identifier = "Linux ipconfig"
Option: (60) Vendor class identifier
Length: 14
Value: 4C696E7578206970636F6E666967
End Option

Frame 7 (356 bytes on wire, 356 bytes captured)
Arrival Time: Jul 7, 2010 12:37:31.540178000
[Time delta from previous captured frame: 0.000537000 seconds]
[Time delta from previous displayed frame: 0.000537000 seconds]
[Time since reference or first frame: 0.005986000 seconds]
Frame Number: 7
Frame Length: 356 bytes
Capture Length: 356 bytes
[Frame is marked: False]
[Protocols in frame: eth:ip:udp:bootp]
Ethernet II, Src: HewlettP_11:45:e0 (00:23:7d:11:45:e0), Dst: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5)
Destination: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5)
Address: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HewlettP_11:45:e0 (00:23:7d:11:45:e0)
Address: HewlettP_11:45:e0 (00:23:7d:11:45:e0)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Type: IP (0x0800)
Internet Protocol, Src: 10.253.0.3 (10.253.0.3), Dst: 10.253.0.235 (10.253.0.235)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 342
Identification: 0x5a20 (23072)
Flags: 0x00
0.. = Reserved bit: Not Set
.0. = Don't fragment: Not Set
..0 = More fragments: Not Set
Fragment offset: 0
Time to live: 64
Protocol: UDP (0x11)
Header checksum: 0x0890 [correct]
[Good: True]
[Bad : False]
Source: 10.253.0.3 (10.253.0.3)
Destination: 10.253.0.235 (10.253.0.235)
User Datagram Protocol, Src Port: bootps (67), Dst Port: bootpc (68)
Source port: bootps (67)
Destination port: bootpc (68)
Length: 322
Checksum: 0x183b [validation disabled]
[Good Checksum: False]
[Bad Checksum: False]
Bootstrap Protocol
Message type: Boot Reply (2)
Hardware type: Ethernet
Hardware address length: 6
Hops: 0
Transaction ID: 0x7e1c905e
Seconds elapsed: 0
Bootp flags: 0x0000 (Unicast)
0... .... .... .... = Broadcast flag: Unicast
.000 0000 0000 0000 = Reserved flags: 0x0000
Client IP address: 0.0.0.0 (0.0.0.0)
Your (client) IP address: 10.253.0.235 (10.253.0.235)
Next server IP address: 10.253.0.9 (10.253.0.9)
Relay agent IP address: 0.0.0.0 (0.0.0.0)
Client MAC address: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5)
Client hardware address padding: 00000000000000000000
Server host name: h
Boot file name: /pxelinux.0
Magic cookie: (OK)
Option: (t=53,l=1) DHCP Message Type = DHCP ACK
Option: (53) DHCP Message Type
Length: 1
Value: 05
Option: (t=54,l=4) DHCP Server Identifier = 10.253.0.3
Option: (54) DHCP Server Identifier
Length: 4
Value: 0AFD0003
Option: (t=51,l=4) IP Address Lease Time = 1 hour
Option: (51) IP Address Lease Time
Length: 4
Value: 00000E10
Option: (t=58,l=4) Renewal Time Value = 30 minutes
Option: (58) Renewal Time Value
Length: 4
Value: 00000708
Option: (t=59,l=4) Rebinding Time Value = 52 minutes, 30 seconds
Option: (59) Rebinding Time Value
Length: 4
Value: 00000C4E
Option: (t=1,l=4) Subnet Mask = 255.255.255.0
Option: (1) Subnet Mask
Length: 4
Value: FFFFFF00
Option: (t=28,l=4) Broadcast Address = 10.253.0.255
Option: (28) Broadcast Address
Length: 4
Value: 0AFD00FF
Option: (t=15,l=14) Domain Name = "h.rakugaki.org"
Option: (15) Domain Name
Length: 14
Value: 682E72616B7567616B692E6F7267
Option: (t=6,l=4) Domain Name Server = 10.253.0.3
Option: (6) Domain Name Server
Length: 4
Value: 0AFD0003
Option: (t=3,l=4) Router = 10.253.0.1
Option: (3) Router
Length: 4
Value: 0AFD0001
Option: (t=150,l=4) TFTP server address
Option: (150) TFTP server address
Length: 4
Value: 0AFD0009
End Option

Frame 8 (356 bytes on wire, 356 bytes captured)
Arrival Time: Jul 7, 2010 12:37:31.540572000
[Time delta from previous captured frame: 0.000394000 seconds]
[Time delta from previous displayed frame: 0.000394000 seconds]
[Time since reference or first frame: 0.006380000 seconds]
Frame Number: 8
Frame Length: 356 bytes
Capture Length: 356 bytes
[Frame is marked: False]
[Protocols in frame: eth:ip:udp:bootp]
Ethernet II, Src: HewlettP_11:45:e0 (00:23:7d:11:45:e0), Dst: Giga-Byt_0a:fb:e8 (00:1f:d0:0a:fb:e8)
Destination: Giga-Byt_0a:fb:e8 (00:1f:d0:0a:fb:e8)
Address: Giga-Byt_0a:fb:e8 (00:1f:d0:0a:fb:e8)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HewlettP_11:45:e0 (00:23:7d:11:45:e0)
Address: HewlettP_11:45:e0 (00:23:7d:11:45:e0)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Type: IP (0x0800)
Internet Protocol, Src: 10.253.0.3 (10.253.0.3), Dst: 10.253.0.9 (10.253.0.9)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 342
Identification: 0x15fb (5627)
Flags: 0x00
0.. = Reserved bit: Not Set
.0. = Don't fragment: Not Set
..0 = More fragments: Not Set
Fragment offset: 0
Time to live: 64
Protocol: UDP (0x11)
Header checksum: 0x4d97 [correct]
[Good: True]
[Bad : False]
Source: 10.253.0.3 (10.253.0.3)
Destination: 10.253.0.9 (10.253.0.9)
User Datagram Protocol, Src Port: bootps (67), Dst Port: bootps (67)
Source port: bootps (67)
Destination port: bootps (67)
Length: 322
Checksum: 0x1759 [validation disabled]
[Good Checksum: False]
[Bad Checksum: False]
Bootstrap Protocol
Message type: Boot Reply (2)
Hardware type: Ethernet
Hardware address length: 6
Hops: 1
Transaction ID: 0x7e1c905e
Seconds elapsed: 0
Bootp flags: 0x0000 (Unicast)
0... .... .... .... = Broadcast flag: Unicast
.000 0000 0000 0000 = Reserved flags: 0x0000
Client IP address: 0.0.0.0 (0.0.0.0)
Your (client) IP address: 10.253.0.235 (10.253.0.235)
Next server IP address: 10.253.0.9 (10.253.0.9)
Relay agent IP address: 10.253.0.9 (10.253.0.9)
Client MAC address: Xensourc_16:ac:c5 (00:16:3e:16:ac:c5)
Client hardware address padding: 00000000000000000000
Server host name: h
Boot file name: /pxelinux.0
Magic cookie: (OK)
Option: (t=53,l=1) DHCP Message Type = DHCP ACK
Option: (53) DHCP Message Type
Length: 1
Value: 05
Option: (t=54,l=4) DHCP Server Identifier = 10.253.0.3
Option: (54) DHCP Server Identifier
Length: 4
Value: 0AFD0003
Option: (t=51,l=4) IP Address Lease Time = 1 hour
Option: (51) IP Address Lease Time
Length: 4
Value: 00000E10
Option: (t=58,l=4) Renewal Time Value = 30 minutes
Option: (58) Renewal Time Value
Length: 4
Value: 00000708
Option: (t=59,l=4) Rebinding Time Value = 52 minutes, 30 seconds
Option: (59) Rebinding Time Value
Length: 4
Value: 00000C4E
Option: (t=1,l=4) Subnet Mask = 255.255.255.0
Option: (1) Subnet Mask
Length: 4
Value: FFFFFF00
Option: (t=28,l=4) Broadcast Address = 10.253.0.255
Option: (28) Broadcast Address
Length: 4
Value: 0AFD00FF
Option: (t=15,l=14) Domain Name = "h.rakugaki.org"
Option: (15) Domain Name
Length: 14
Value: 682E72616B7567616B692E6F7267
Option: (t=6,l=4) Domain Name Server = 10.253.0.3
Option: (6) Domain Name Server
Length: 4
Value: 0AFD0003
Option: (t=3,l=4) Router = 10.253.0.1
Option: (3) Router
Length: 4
Value: 0AFD0001
Option: (t=150,l=4) TFTP server address
Option: (150) TFTP server address
Length: 4
Value: 0AFD0009
End Option

^C8 packets captured

Vagrant Cascadian 08-20-2010 07:40 PM

Bug#584583: initramfs-tools: configure_networking function: repeatedly makes DHCP requests
 
thanks to Petter Reinholdtsen, i think i've figured out the initramfs-tools
portion of this problem (there may still be outstanding issues with ipconfig).

tested the attached patch, which seems to address the issue for me at least.

live well,
vagrant

maximilian attems 08-25-2010 07:44 PM

Bug#584583: initramfs-tools: configure_networking function: repeatedly makes DHCP requests
 
On Fri, 20 Aug 2010, Vagrant Cascadian wrote:

> thanks to Petter Reinholdtsen, i think i've figured out the initramfs-tools
> portion of this problem (there may still be outstanding issues with ipconfig).
>
> tested the attached patch, which seems to address the issue for me at least.
>
> live well,
> vagrant

thanks a lot applied, waiting for review, but this looks like
a candidate for 0.98.1 to me.

concerning ipconfig preparing klibc 1.5.20, which should be much better
behaved as it will feature several ipconfig fixes.





--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100825194431.GB22010@stro.at">http://lists.debian.org/20100825194431.GB22010@stro.at


All times are GMT. The time now is 10:32 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.