Tue - Oct 16, 2007 : 10:22 am
Gentoo udev NIC Bug
Something I thought I'd write down, because it took me forever to figure out, has been a bug for at least a year, and nobody seems to be doing anything about it.
The bug is quite simple really, and once you know where to look for it, it pretty much stops being a bug due to an extremely easy work-around.
The bug is concerning network cards plugged into a computer.
Usually, when you install gentoo, your network card is attached to a node which is controlled by the file /etc/init.d/net.eth0. Easy enough, right?
Well.. Let's say you remove your NIC (Network Interface Card) and replace it with a better one. You then try to fire it up by issuing a "/etc/init.d/net.eth0 start"
Your computer would then tell you, through cryptic language of course, that it can't find any hardware which can be controlled by net.eth0.
It has changed to net.eth1
The bug is, basically, that the net.lo never resets itself back to zero when a NIC is removed or replaced. So........
If you plug 20 NICs into your computer, one after another, removing the last, booting each one, the next nic you plug in will have to be initiated by controlling the net.eth21 file.
Nothing huge, but if you don't know about it, it can cause some serious headache.