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

Re: upgrading kernel 2.6.8-12 to 2.6.8-13 changed eth0 to eth1



Apparently, _Jerome R. Acks_, on 13/02/05 17:54,typed:
Upgrading kernel-image-2.6.8-2-k7 from 2.6.8-12 to 2.6.8-13 left me
with no connection to internet. After researching the problem, I
finally realized that booting 2.6.8-13 (and the 2.6.10 kernels I have
tried) give me eth1 mapped to my NIC and eth0 now mapped to eth1394
whereas booting my other installed kernels map my NIC to eth0.
/etc/network/interfaces reads:

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback

# first network card
auto eth0
iface eth0 inet static
      address    192.168.1.52
      netmask    255.255.255.0
      network    192.168.1.0
      broadcast  192.168.1.255
      gateway    192.168.1.1

I could just change eth0 to eth1 to fix the problem with 2.6.8-13, but
the interface wouldn't work if I booted an earlier kernel.

A script to map my NIC to eth0 or eth1 depending on the kernel that is
booted is a better solution, but it is not clear to me how to do this.

Could someone advise me as to changes needed to
/etc/network/interfaces and script I would need?

TIA


This happens if you upgrade hotplug or something like that which changes the order of detected devices. I once had similar problem and got this response:
http://groups.google.ca/groups?q=eth0+eth1+modules+%22/etc/modprobe%22+aliases+load+2.6&hl=en&lr=&selm=3dEmi-8qF-49%40gated-at.bofh.it&rnum=1

This link is of my post on this list with subject: "discover seems to have changed my NICs", date: 2004-12-20 15h59.

HTH,
->HS

--
Please remove the underscores ( the '_' symbols) from my email address to obtain the correct one. Apologies, but the fudging is to remove spam.



Reply to: