Skip to contentSkip to conversation

net detection failure with old kernel

DISCUSSION James Miller 2 participants 4 messages Dec 15, 2003 – Dec 16, 2003

lore
Share & tools
lore
#0 lore raw

On a Debian install I recently did, I ended up getting a newer kernel to replace the 2.2.20 kernel I initially installed on the system. But the old kernel remains on the system, and I can boot from it if I enter "LinuxOLD" at the command prompt. The problem is, when I boot using that older kernel, the network doesn't work (it used to work fine prior to updating kernels). The system loads the right driver for the card, but it somehow can't get a dhcp offer. I'm wondering why this is. Anyone have any ideas? Here's an excerpt from a log file that shows the failed dhcp attempt:

*********BEGIN boot.0 LOG FILE****************************
Mon Dec 15 06:20:36 2003: bootlogd.
Mon Dec 15 06:20:36 2003: Loading /etc/console/boottime.kmap.gz
Mon Dec 15 06:20:36 2003: Activating swap.
Mon Dec 15 06:20:36 2003: Checking root file system...
Mon Dec 15 06:20:36 2003: fsck 1.35-WIP (21-Aug-2003)
Mon Dec 15 06:20:36 2003: /dev/hda1: clean, 25955/219968 files, 160356/439480 blocks
Mon Dec 15 12:20:38 2003: System time was Mon Dec 15 18:20:38 UTC 2003.
Mon Dec 15 12:20:38 2003: Setting the System Clock using the Hardware Clock as reference... Mon Dec 15 12:20:40 2003: System Clock set. System local time is now Mon Dec 15 12:20:40 CST 2003. Mon Dec 15 12:20:40 2003: Calculating module dependencies... done.
Mon Dec 15 12:20:52 2003: Loading modules: unix af_packet smc-ultra nfs vfat smbfs usb-storage Mon Dec 15 12:20:56 2003: Checking all file systems...
Mon Dec 15 12:20:56 2003: fsck 1.35-WIP (21-Aug-2003)
Mon Dec 15 12:20:56 2003: Setting kernel variables..
Mon Dec 15 12:20:56 2003: /etc/init.d/rcS: line 17: [: =: unary operator expected
Mon Dec 15 12:20:56 2003: Mounting local filesystems...
Mon Dec 15 12:20:56 2003: nothing was mounted
Mon Dec 15 12:20:57 2003: Running 0dns-down to make sure resolv.conf is ok...done.
Mon Dec 15 12:20:58 2003: Cleaning: /etc/network/ifstate.
Mon Dec 15 12:20:58 2003: Setting up IP spoofing protection: rp_filter.
Mon Dec 15 12:20:58 2003: Configuring network interfaces...Internet Software Consortium DHCP Client 2.0pl5 Mon Dec 15 12:20:59 2003: Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. Mon Dec 15 12:20:59 2003: All rights reserved.
Mon Dec 15 12:20:59 2003:
Mon Dec 15 12:20:59 2003: Please contribute if you find this software useful.
Mon Dec 15 12:20:59 2003: For info, please visit http://www.isc.org/dhcp-contrib.html
Mon Dec 15 12:20:59 2003:
Mon Dec 15 12:21:00 2003: Listening on LPF/eth0/00:00:c0:1a:19:76
Mon Dec 15 12:21:00 2003: Sending on LPF/eth0/00:00:c0:1a:19:76
Mon Dec 15 12:21:00 2003: Sending on Socket/fallback/fallback-net
Mon Dec 15 12:21:00 2003: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Mon Dec 15 12:21:04 2003: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Mon Dec 15 12:21:08 2003: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Mon Dec 15 12:21:16 2003: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
Mon Dec 15 12:21:19 2003: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
Mon Dec 15 12:21:24 2003: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
Mon Dec 15 12:21:35 2003: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
Mon Dec 15 12:21:50 2003: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
Mon Dec 15 12:22:04 2003: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
Mon Dec 15 12:22:17 2003: No DHCPOFFERS received.
Mon Dec 15 12:22:17 2003: Trying recorded lease 192.168.254.4
Mon Dec 15 12:22:18 2003: PING 192.168.254.254 (192.168.254.254): 56 data bytes
Mon Dec 15 12:22:28 2003:
Mon Dec 15 12:22:28 2003: --- 192.168.254.254 ping statistics ---
Mon Dec 15 12:22:28 2003: 1 packets transmitted, 0 packets received, 100% packet loss
Mon Dec 15 12:22:28 2003: bound: renewal in 98438 seconds.
Mon Dec 15 12:22:28 2003: done.
Mon Dec 15 12:22:28 2003: Starting portmap daemon: portmap.
************END boot.0 LOG FILE*************************************

Here, on the other hand, is the log file for the newer kernel, showing the successful dhcp negotiation:

************BEGIN boot LOG FILE*************************************
Mon Dec 15 06:25:00 2003: bootlogd.
Mon Dec 15 06:25:00 2003: Loading /etc/console/boottime.kmap.gz
Mon Dec 15 06:25:00 2003: Activating swap.
Mon Dec 15 06:25:00 2003: Checking root file system...
Mon Dec 15 06:25:00 2003: fsck 1.35-WIP (21-Aug-2003)
Mon Dec 15 06:25:00 2003: /dev/hda1: clean, 25965/219968 files, 160424/439480 blocks
Mon Dec 15 12:25:02 2003: System time was Mon Dec 15 18:25:02 UTC 2003.
Mon Dec 15 12:25:02 2003: Setting the System Clock using the Hardware Clock as reference... Mon Dec 15 12:25:04 2003: System Clock set. System local time is now Mon Dec 15 12:25:04 CST 2003. Mon Dec 15 12:25:04 2003: Calculating module dependencies... done.
Mon Dec 15 12:25:30 2003: Loading modules: unix af_packet smc-ultra nfs vfat smbfs usb-storage Mon Dec 15 12:25:36 2003: Checking all file systems...
Mon Dec 15 12:25:36 2003: fsck 1.35-WIP (21-Aug-2003)
Mon Dec 15 12:25:36 2003: Setting kernel variables..
Mon Dec 15 12:25:37 2003: /etc/init.d/rcS: line 17: [: =: unary operator expected
Mon Dec 15 12:25:37 2003: Mounting local filesystems...
Mon Dec 15 12:25:37 2003: nothing was mounted
Mon Dec 15 12:25:37 2003: Running 0dns-down to make sure resolv.conf is ok...done.
Mon Dec 15 12:25:38 2003: Cleaning: /etc/network/ifstate.
Mon Dec 15 12:25:38 2003: Setting up IP spoofing protection: rp_filter.
Mon Dec 15 12:25:38 2003: Configuring network interfaces...Internet Software Consortium DHCP Client 2.0pl5 Mon Dec 15 12:25:39 2003: Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. Mon Dec 15 12:25:39 2003: All rights reserved.
Mon Dec 15 12:25:39 2003:
Mon Dec 15 12:25:39 2003: Please contribute if you find this software useful.
Mon Dec 15 12:25:39 2003: For info, please visit http://www.isc.org/dhcp-contrib.html
Mon Dec 15 12:25:39 2003:
Mon Dec 15 12:25:40 2003: Listening on LPF/eth0/00:00:c0:1a:19:76
Mon Dec 15 12:25:40 2003: Sending on LPF/eth0/00:00:c0:1a:19:76
Mon Dec 15 12:25:40 2003: Sending on Socket/fallback/fallback-net
Mon Dec 15 12:25:40 2003: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Mon Dec 15 12:25:40 2003: DHCPACK from 192.168.254.254
Mon Dec 15 12:25:40 2003: bound to 192.168.254.4 -- renewal in 129600 seconds.
Mon Dec 15 12:25:40 2003: done.
Mon Dec 15 12:25:41 2003: Starting portmap daemon: portmap.
************END boot.0 LOG FILE*************************************

Feedback will be appreciated.

James
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#1 lore raw
Quoted 9 lines · James Miller

On a Debian install I recently did, I ended up getting a newer kernel to replace the 2.2.20 kernel I initially installed on the system. But the old kernel remains on the system, and I can boot from it if I enter "LinuxOLD" at the command prompt. The problem is, when I boot using that older kernel, the network doesn't work (it used to work fine prior to updating kernels). The system loads the right driver for the card, but it somehow can't get a dhcp offer. I'm wondering why this is. Anyone have any ideas? Here's an excerpt from a log file that shows the failed dhcp attempt:

The log shows more than an inability to get a DHCP lease. After that fails, it tries to use the old lease's IP address and ping the gateway (I assume it is the gateway, anyway ... it is the DHCP server, at least). These are the relevant lines:

Quoted 7 lines

Mon Dec 15 12:22:17 2003: No DHCPOFFERS received.
Mon Dec 15 12:22:17 2003: Trying recorded lease 192.168.254.4
Mon Dec 15 12:22:18 2003: PING 192.168.254.254 (192.168.254.254): 56 data bytes Mon Dec 15 12:22:28 2003:
Mon Dec 15 12:22:28 2003: --- 192.168.254.254 ping statistics ---
Mon Dec 15 12:22:28 2003: 1 packets transmitted, 0 packets received, 100% packet loss Mon Dec 15 12:22:28 2003: bound: renewal in 98438 seconds.

After the system has booted with this kernel, try the following:

ifconfig -a
ping 192.168.254.254
(CTRL-C after about 10 seconds).
ifconfig -a

Check the packet counts in the 2 ifconfig results. See if the TX count is incremented. If not, the pings are not going out of the system. If yes, the replies are not arriving. You might also see what the DHCP server is logging about all of this, if you can.

This won't tell you the source of the problem, but it will pin the actual problem down a bit. As to the source ... I'm assuming that the 2.2.20 kernel did get a DHCP lease from this server before you switched to 2.4.something_or_other and that you made no changes to the hardware or the BIOS settings after you switched kernels. If those assumptions hold, the only thing I can think of that is left is a corrupted NIC driver ... you might check timestamps to make sure the module you are loading is the same one you used to use.

Sorry I can't suggest anything more specific. Oh, one long shot ... what system is acting as a DHCP server here? Is there any chance it has some security capability that causes it to notice that a different OS is requesting a lease using a known MAC address? (I'm *really* reaching here ... I've never heard of a DHCP server doing this, but it would be a neat anti-spoofing trick if one did.)

[log details deleted]

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw
Quoted 8 lines · Ray Olszewski

problem down a bit. As to the source ... I'm assuming that the 2.2.20 kernel did get a DHCP lease from this server before you switched to 2.4.something_or_other and that you made no changes to the hardware or the BIOS settings after you switched kernels. If those assumptions hold, the only thing I can think of that is left is a corrupted NIC driver ... you might check timestamps to make sure the module you are loading is the same one you used to use.

Your assumption (about hardware/BIOS) was wrong. Since I was starting to have some trouble with IDE channels in the machine I did the original installation on, I decided to just remove the HD and place it in another machine with essentially the same peripherals (NIC, video card, CD drive etc.) but a somewhat different mobo and processor. I was a bit surprised that it worked as well as it did - even the networking (with the 2.4.x kernel, as you know). I've since fixed the problem with the IDE stuff, and have just now placed the drive back in the machine I initially did the Debian install on. And, when I boot the 2.2.20 kernel - voila! networking works fine. So, the problem was somehow hardware related, as you opined for one of the remote possibilities. Still curious to me though why networking did work with the 2.4.x kernel while the drive was in that temporary host, but not with the 2.2.20 kernel. Anyway, it's working now. If you'd care to offer any further speculations on why the problem cropped up with the change in hardware using the older kernel (but not with the new), I would gladly listen/read.

Thanks, James
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#3 lore raw
Quoted 11 lines · James Miller
Quoted 8 lines · Ray Olszewski

problem down a bit. As to the source ... I'm assuming that the 2.2.20 kernel did get a DHCP lease from this server before you switched to 2.4.something_or_other and that you made no changes to the hardware or the BIOS settings after you switched kernels. If those assumptions hold, the only thing I can think of that is left is a corrupted NIC driver ... you might check timestamps to make sure the module you are loading is the same one you used to use.

Your assumption (about hardware/BIOS) was wrong.

Yeah. That's why I always *try* to make the assumptions explicit ... to detect important details that the poster left out of the problem description.

Quoted 8 lines

Since I was starting to
have some trouble with IDE channels in the machine I did the original installation on, I decided to just remove the HD and place it in another machine with essentially the same peripherals (NIC, video card, CD drive etc.) but a somewhat different mobo and processor. I was a bit surprised that it worked as well as it did - even the networking (with the 2.4.x kernel, as you know). I've since fixed the problem with the IDE stuff, and have just now placed the drive back in the machine I initially did the

Quoted 8 lines

Debian install on. And, when I boot the 2.2.20 kernel - voila! networking works fine. So, the problem was somehow hardware related, as you opined for one of the remote possibilities. Still curious to me though why networking did work with the 2.4.x kernel while the drive was in that temporary host, but not with the 2.2.20 kernel. Anyway, it's working now. If you'd care to offer any further speculations on why the problem cropped up with the change in hardware using the older kernel (but not with the new), I would gladly listen/read.

At a guess, you hit an IRQ problem. I forget the details of the evolution of the IRQ-sharing kernel code, but I'd expect 2.4.x to be better at it than 2.2.x. And your 2.2.20 symptoms match the classic problem of a NIC and a serial port (or onboard Winmodem) sharing an IRQ in the days before the kernel supported IRQ sharing. Did you happen to look at /proc/interrupts on the temporary setup with 2.2.20? If so, did it differ from the current, working setup?

The other possibility that comes to mind is that the mobo switch fouled up PnP initialization of the NIC, and that 2.2.20 doesn't cope with this as well as 2.4.x ... though I have no details to offer in support of this blue-sky speculation.

This is all pretty vague because I don't know the hardware involved, even if (for example) the NIC is ISA or PCI.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs