eth eth eth who’s got the eth
Monday 18 August 2008In the process of installing one of our new servers today I have yet again encountered the annoyance of linux’s arrangement of network cards. Why oh why is the default eth0 never the first network card in the machine. Well after snooping around and being scarred (yes mentally scarred) by talk of udev rules and messing around with the kernel it occured to me that as we use ubuntu and ubuntu is normally sensible there would probably already be a rule and there is, 30 seconds later of swapping around commands and the eth’s were in a sensible order once more. Hurrah!
P.S.
The required rule is:
SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address]==”insert_macaddress_of_eth0″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″
P.P.S
For those less scared by mentions of kernels and rules there is a useful site for writing udev rules over here.
