Replacement motherboard, renumbered NICs and dvd drives?
Adam Funk
a24061 at ducksburg.com
Wed Feb 27 16:09:22 UTC 2008
On 2008-02-25, NoOp wrote:
> On 02/25/2008 07:23 AM, Leo Cacciari wrote:
>> Il giorno lun, 25/02/2008 alle 13.56 +0000, Adam Funk ha scritto:
>>> The computer store has replaced my faulty motherboard twice recently,
>>> and each time the number of the on-board LAN (the only ethernet device
>>> present) has gone up (eth0 -> eth1, and now eth2). Does anyone know
>>> why, and is it possible to reset it?
>>>
>> I belive this is due to the old NIC being included
>> into /etc/udev/rules.d/70-persistent-net.rules. AFAIK, each time the
>> system sees a NIC, it inserts a entry there, thus recording a 'static'
>> name ethN for the card, thus allowing per-card configuration. I _think_
>> you can safely remove the entries referring to the older cards and
>> rename the one you have now (the last one) as eth0, but check the
>> udev(7) man page to be sure.
Yes, there are three entries there. Thanks for the pointer --- I had
no idea where to look for this configuration.
> Leo is right. I remember this one as I had the same problem awhile back.
> Previously it was /etc/iftab in older releases:
> https://bugs.launchpad.net/ubuntu/+source/udev/+bug/102336
>
> You can safely edit and/or delete in
> /etc/udev/rules.d/70-persistent-net.rules
Since udev automatically adds things to the 70-persistent-cd.rules and
70-persistent-net.rules files, could I just delete all the entries and
let it automatically re-introduce the current devices with the
"zeroth" names (eth0, cdrom, dvdrw, etc.)?
Would I need to restart udev or otherwise nudge it?
Thanks,
Adam
More information about the ubuntu-users
mailing list