Philip Ashmore wrote:
> I've tried setting these to eth0 and wlan0 but I'm getting console
> messages like "device not found" for wlan0 - they're not logged
> anywhere I can find them.
> 
> Eth0 isn't so important for now, but I'd like to know, where does
> Debian get these magic names from?

This is a linux/udev (perhaps mis-)feature.  When the system boots it
records every lan device that it finds here:

  /etc/udev/rules.d/70-persistent-net.rules

It means that your system has previously seen an eth0 and an eth1 and
is now up to eth2.  It will by default keep collecting those forever.

The idea was that for systems with multiple devices that the linux
kernel may discover then in a different order on different reboots.  I
have never seen that myself but it was widely reported.  By caching
the previously seen values and making them sticky it avoids having
interfaces change names from reboot to reboot.

The simplest thing is to remote that file and reboot.  At boot time it
will populate a new file with the current devices it finds.

  rm -f /etc/udev/rules.d/70-persistent-net.rules
  shutdown -r now

Alternatively you may edit that file with a text editor.  It is plain
text such as it is.  You can adjust the name associated with that
ethernet address.

Bob

Attachment: signature.asc
Description: Digital signature

Reply via email to