2010-01-09 23:09

Under Arch Linux, your network cards are sometimes named differently between two reboot. Configuring your network connection is hard if you don’t know if you card will be called eth0 or eth1.

A file /etc/udev/rules.d/75-persistent-net-generator.rules.optional can be used to tell udev to generate persistent network rules.

It’s very simple:

mv /etc/udev/rules.d/75-persistent-net-generator.rules.optional /etc/udev/rules.d/75-persistent-net-generator.rules

Reboot your system. A /etc/udev/rules.d/70-persistent-net.rules file has been generated. Now you can disable the generator:

mv /etc/udev/rules.d/75-persistent-net-generator.rules /etc/udev/rules.d/75-persistent-net-generator.rules.optional

Link:

2010-01-09 23:09 · Tags: , ,

3 Comments

  1. I had an issue with interface renaming right after Fedora 14
    installation.
    The funny thing is :

    arch-x86-2.cisco.com:2> pwd
    /etc/udev/rules.d
    arch-x86-2.cisco.com:3> ls
    40-hplip.rules
    70-persistent-cd.rules
    90-hal.rules
    56-hpmud_support.rules
    70-persistent-net.rules
    91-drm-modeset.rules
    60-fprint-autosuspend.rules 85-pcscd_ccid.rules 97-bluetooth-serial.rules
    60-sysprof.rules 90-alsa-tools-firmware.rules 99-fuse.rules
    arch-x86-2.cisco.com:4>

    70-persistent-net.riules exists
    70-persistent-netgenerator.rules DOES NOT!!!!!
    Why ? Who created the former file?

    Reply

    • In some Linux distros, the net generator file is at
      /lib/udev/rules.d/75-persistent-net-generator.rules

      Reply

  2. I don’t really know.

    It must have been generated during your first archlinux install ?

    You should look at the content of your persistent-net.rules file.
    Apparently there is a bug in it if after your fedora install the interfaces where renamed.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>