Weird Debian

Today Im moving a harddisk contain Linux server (Debian) from one computer to another computer, everything is working fine, except one thing, the network can’t be up again.. This is fatal, what is a server without network.. What the world will say? (Apa kata dunia?)

My first guess, it’s a driver problem, since different ethernet card used on the new computer, but I look at the dmesg and system log, the driver is loaded perfectly, so what happen? So I install discover and lspci to investigate it deeper..

# apt-get install discover pcitool

From that tools, I’m more confident that the correct driver has been loaded, I’m also trying to load it again using modprobe, and that didn’t work out either..

After almost recompile the kernel for my last effort, I found something interesting, I found that Debian cached the mac address of the old ethernet card, the cached file can be found on /ets/udev/rules.d/z25_persistent-net.rules

I’m also looking on my Kubuntu that I use on my desktop computer and found the same fact, only it lies in the different file name: /etc/udev/rules.d/70-persistent-net.rules

So the problem lies in the fact that ethernet MAC addresses are cached. So I only need to remove the file to clear the cached value, run this command as root or using sudo:

# rm /ets/udev/rules.d/z25_persistent-net.rules

After I restart the server, the networking is back again, that simple! I Hope this will help, if you have the same problem..

Leave a comment

Your email address will not be published. Required fields are marked *