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

Re: Determine order of network interfaces



On 2/23/06, Florian Kulzer <florian@molphys.leidenuniv.nl> wrote:

If you do not want to switch to udev, maybe the package 'ifrename' can
ensure a deterministic naming of your network interfaces. I always had
problems when using ethX (as Magnus has also pointed out in his mail)
which I avoided by assigning new names to all interfaces, e.g. "lan0",
"wlan0", "modem" etc. For a while I got lucky by simply determining the
order in which the modules are loaded in /etc/modules (the first one
gets eth0 in that case, etc.) but that does not seem to work anymore
with newer kernels (ca. 2.6.14 and up, I think).

Hi Florian,

Thanks for the tip. I installed ifrename, and after a bit of try-and-error I figured out that I could specify the device name from the driver loaded (I couldn't specify the MAC address of a firewire device, so I was stumbling for a minute). This appears to be my best solution so far. My only concern is this warning that I get:

Warning: Interface name is `eth0' at line 1, can't be mapped reliably.

So it's still not perfect. I'm actually amazed there's no reliable standard solution to this problem, this can be critical on boxes with multiple interfaces (picture a firewall letting everything in and nothing out, or a file server sharing files to the entire internet instead of the local network).

Cheers,
Ketil

Reply to: