Bryan Kadzban wrote: > xinglp wrote: >> 2013/1/10 Bruce Dubbs <bruce.du...@gmail.com>: >>> Bruce Dubbs wrote:
>>>>> It was named to eth0 when I use udev 196. >>>> See >>>> http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames >>>> >>>> >>>> We're going to need to figure this out. The init-net-rules.sh may go >>>> away completely. I'm just reading this now. > > It should either go away completely, or we should disable the new setup. > :-) Looking at the script, I thought creating 70-persistent-net.rules did disable the new setup. > For the record, the new default setup only works if (IIRC from the > thread on systemd-devel) the BIOS exports the slot number for the card. > Not all do (mine definitely does not -- the NIC sysfs directories do not > have a acpi_index or index attributes, and there are no entries in > /sys/bus/pci/slots at all). I've tried six systems and /sys/bus/pci/slots is empty or missing on all six. > From the wiki page, that eliminates 1) and 2). > > 3) is the same old by-path persistence, and because it's encoded into > the NIC name, it has the same length limit of 15 bytes. So anything on > a USB bus just isn't going to work, both because it changes when you > change hub ports, and because too many hubs between the PCI device and > the NIC will make the name too long. A usb network connection doesn't make a lot of sense to me, but we did have network cards via pcmcia at one time. > That leaves 4), by-mac, which only works for NICs that have unique MACs. But is not enabled by default. > (FWIW I do think we should get rid of the NIC rename stuff, but I think > we should replace it with a shell script to look up an arbitrarily-long > identifier from the udev database instead, and translate that into an > eth* or wlan* or whatever name. That ID can be a storage-style path, a > MAC, or any other unique identifier that the script knows how to > dereference by mapping to a udev property. I threw something together a > few months back, but never submitted it to contrib/ or anything like > that.) I'd like to see what you came up with. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page