Debian Network Interface Name (May 05, 2005)

It is quite annoying in Linux that the name of a network interface is unpredictable. I added wireless support on my laptop. The wired interface changed from eth0to eth1and caused all sorts of problem.

The package ifrenamesolves the problem nicely.

apt-get install ifrename

Next add the the mac address of each network card in /etc/iftab:

wire mac 00:40:45:24:A0:DC
wifi mac 00:0C:F1:09:2B:27

You'll need to reference you card as wire and wifi in /etc/network/interfaces. Things will break when you change network card, but that's a small price to pay for some sanity in network interface names.

back